浏览代码

Fixed compiler error when using _NORMALMAP with standard particles.

/Add-support-for-light-specular-color-tint
Felipe Lira 7 年前
当前提交
61a02f4b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardParticles.shader

2
ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardParticles.shader


float4 clipPosition = UnityObjectToClipPos(v.vertex);
#if _NORMALMAP
OutputTangentSpace(v.tangent, v.normal, o.tangent, o.binormal, o.normal);
OutputTangentToWorld(v.tangent, v.normal, o.tangent, o.binormal, o.normal);
#else
o.normal = normalize(UnityObjectToWorldNormal(v.normal));
#endif

正在加载...
取消
保存