浏览代码

Fixed compilation error (Disable wind for Velocity because of the known Normal Attribute issue)

/main
Julien Ignace 7 年前
当前提交
c024c281
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 4
      ScriptableRenderPipeline/HDRenderPipeline/ShaderPass/VertMesh.hlsl

4
ScriptableRenderPipeline/HDRenderPipeline/ShaderPass/VertMesh.hlsl


vertexColor = input.color;
#endif
#ifdef _VERTEX_WIND
// This code is disabled for velocity pass for now because at the moment we cannot have Normals with the velocity pass (this attributes holds last frame data)
// TODO: Remove the velocity pass test when velocity is properly handled.
#if defined(_VERTEX_WIND) && (SHADERPASS != SHADERPASS_VELOCITY)
float3 rootWP = mul(GetObjectToWorldMatrix(), float4(0, 0, 0, 1)).xyz;
ApplyWind(positionWS, normalWS, rootWP, _Stiffness, _Drag, _ShiverDrag, _ShiverDirectionality, _InitialBend, input.color.a, _Time);
#endif

正在加载...
取消
保存