浏览代码

Merge pull request #151 from Unity-Technologies/POM-cleanup

Disable tile object scale when using influence mode on layered shader
/Branch_Batching2
GitHub 7 年前
当前提交
94c7ab25
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 6
      Assets/ScriptableRenderLoop/HDRenderPipeline/Material/Lit/LitData.hlsl

6
Assets/ScriptableRenderLoop/HDRenderPipeline/Material/Lit/LitData.hlsl


#endif
ComputeLayerTexCoord0( texCoord0, float2(0.0, 0.0), float2(0.0, 0.0), float2(0.0, 0.0),
positionWS, normalWS, _UVMappingPlanar0 > 0.0, isTriplanar, _TexWorldScale0, layerTexCoord, _LayerTiling0 * tileObjectScale);
positionWS, normalWS, _UVMappingPlanar0 > 0.0, isTriplanar, _TexWorldScale0, layerTexCoord, _LayerTiling0
#if !defined(_MAIN_LAYER_INFLUENCE_MODE)
* tileObjectScale // We only affect layer0 in case we are not in influence mode (i.e we should not change the base object)
#endif
);
isTriplanar = false;
#ifdef _LAYER_MAPPING_TRIPLANAR_1

正在加载...
取消
保存