浏览代码

HDRenderPipeline: Fix Copy/paste failure.... with fix on tessellation

/Add-support-for-light-specular-color-tint
sebastienlagarde 7 年前
当前提交
55a34e3a
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/LitData.hlsl

6
ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/LitData.hlsl


#if defined(_HEIGHTMAP1)
maxDisplacement = max( abs(_HeightAmplitude1)
#if defined(_MAIN_LAYER_INFLUENCE_MODE)
+_abs(HeightAmplitude0) * _InheritBaseHeight1
+ abs(_HeightAmplitude0) * _InheritBaseHeight1
#endif
, maxDisplacement);
#endif

maxDisplacement = max( abs(_HeightAmplitude2)
#if defined(_MAIN_LAYER_INFLUENCE_MODE)
+ abs(HeightAmplitude0) * _InheritBaseHeight2
+ abs(_HeightAmplitude0) * _InheritBaseHeight2
#endif
, maxDisplacement);
#endif

#if defined(_HEIGHTMAP3)
maxDisplacement = max( abs(_HeightAmplitude3)
#if defined(_MAIN_LAYER_INFLUENCE_MODE)
+ abs(HeightAmplitude0) * _InheritBaseHeight3
+ abs(_HeightAmplitude0) * _InheritBaseHeight3
#endif
, maxDisplacement);
#endif

正在加载...
取消
保存