暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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