浏览代码

Fixed warning about uninitialized vertex output in Particles shader.

/tag-1.1.4-preview
Felipe Lira 6 年前
当前提交
52ae77ba
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
      ScriptableRenderPipeline/LightweightPipeline/LWRP/Shaders/LightweightStandardParticles.shader

1
ScriptableRenderPipeline/LightweightPipeline/LWRP/Shaders/LightweightStandardParticles.shader


o.posWS.w = ComputeFogFactor(o.clipPos.z);
o.clipPos = TransformWorldToHClip(o.posWS.xyz);
o.viewDirShininess.xyz = VertexViewDirWS(GetCameraPositionWS() - o.posWS.xyz);
o.viewDirShininess.w = 0.0;
vertTexcoord(v, o);
vertFading(o, o.posWS, o.clipPos);
return o;

正在加载...
取消
保存