설명 없음
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CommonDeprecated.hlsl 613B

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