Firstborn/Library/PackageCache/com.unity.render-pipelines..../ShaderLibrary/CommonDeprecated.hlsl
Schaken-Mods 9092858a58 updated to the latest editor
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
2023-05-07 17:43:11 -05:00

19 lines
648 B
HLSL

#ifndef UNITY_COMMON_DEPRECATED_INCLUDED
#define UNITY_COMMON_DEPRECATED_INCLUDED
// Function that are in this file shouldn't be use. they are obsolete and could be removed in the future
// they are here to keep compatibility with previous version
#if !defined(SHADER_API_GLES)
// Please use void LODDitheringTransition(uint2 fadeMaskSeed, float ditherFactor)
void LODDitheringTransition(uint3 fadeMaskSeed, float ditherFactor)
{
ditherFactor = ditherFactor < 0.0 ? 1 + ditherFactor : ditherFactor;
float p = GenerateHashedRandomFloat(fadeMaskSeed);
p = (ditherFactor >= 0.5) ? p : 1 - p;
clip(ditherFactor - p);
}
#endif
#endif