|
|
|
|
|
|
output.vmesh.positionWS = positionWS; |
|
|
|
#endif |
|
|
|
|
|
|
|
// Not required for meta pass but to silent the shader compiler warning in case it is declare |
|
|
|
output.vmesh.normalWS = float3(0.0, 0.0, 0.0); |
|
|
|
output.vmesh.tangentWS = float4(0.0, 0.0, 0.0, 0.0); |
|
|
|
// Normal is required for triplanar mapping |
|
|
|
output.vmesh.normalWS = TransformObjectToWorldNormal(inputMesh.normalOS); |
|
|
|
// Not required but assign to silent compiler warning |
|
|
|
output.vmesh.tangentWS = float4(1.0, 0.0, 0.0, 0.0); |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef VARYINGS_NEED_TEXCOORD0 |
|
|
|