A game about forced loneliness, made by TACStudios
1#ifndef UNITY_COMMON_DEPRECATED_INCLUDED
2#define UNITY_COMMON_DEPRECATED_INCLUDED
3
4// Function that are in this file shouldn't be used. they are obsolete and could be removed in the future
5// they are here to keep compatibility with previous version
6
7// Please use void LODDitheringTransition(uint2 fadeMaskSeed, float ditherFactor)
8void LODDitheringTransition(uint3 fadeMaskSeed, float ditherFactor)
9{
10 ditherFactor = ditherFactor < 0.0 ? 1 + ditherFactor : ditherFactor;
11
12 float p = GenerateHashedRandomFloat(fadeMaskSeed);
13 p = (ditherFactor >= 0.5) ? p : 1 - p;
14 clip(ditherFactor - p);
15}
16
17#endif