diff --git a/Assets/VRMShaders/VRM10/MToon10/Resources/VRM10/vrmc_materials_mtoon_shadowcaster_vertex.hlsl b/Assets/VRMShaders/VRM10/MToon10/Resources/VRM10/vrmc_materials_mtoon_shadowcaster_vertex.hlsl index d156fa266..28311104a 100644 --- a/Assets/VRMShaders/VRM10/MToon10/Resources/VRM10/vrmc_materials_mtoon_shadowcaster_vertex.hlsl +++ b/Assets/VRMShaders/VRM10/MToon10/Resources/VRM10/vrmc_materials_mtoon_shadowcaster_vertex.hlsl @@ -41,10 +41,9 @@ Varyings MToonShadowCasterVertex(const Attributes v) float3 normalWS = TransformObjectToWorldNormal(v.normalOS); const VertexPositionInfo position = MToon_GetShadowCasterVertex(v.vertex.xyz, normalWS); + output.pos = position.positionCS; - output.positionWS = position.positionWS.xyz; - output.normalWS = TransformObjectToWorldNormal(normalWS); - output.viewDirWS = MToon_GetWorldSpaceNormalizedViewDir(output.positionWS); + output.uv = v.texcoord0; return output; }