Fix an argument name of "MTOON_TRANSFER_FOG_AND_LIGHTING"

This commit is contained in:
tsgcpp
2025-06-09 19:39:17 +09:00
parent 933f01fdc6
commit efa6666757

View File

@@ -85,22 +85,22 @@
#ifdef MTOON_URP
#if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR)
#define MTOON_TRANSFER_FOG_AND_LIGHTING(o, outpos, coord, vertex) \
#define MTOON_TRANSFER_FOG_AND_LIGHTING(output, outpos, coord, vertex) \
OUTPUT_LIGHTMAP_UV(coord.xy, unity_LightmapST, output.lightmapUV); \
OUTPUT_SH(output.normalWS.xyz, output.vertexSH); \
output.fogFactorAndVertexLight = half4(ComputeFogFactor(outpos.z), VertexLighting(output.positionWS, output.normalWS)); \
output.shadowCoord = GetShadowCoord(GetVertexPositionInputs(vertex.xyz));
#else
#define MTOON_TRANSFER_FOG_AND_LIGHTING(o, outpos, coord, vertex) \
#define MTOON_TRANSFER_FOG_AND_LIGHTING(output, outpos, coord, vertex) \
OUTPUT_LIGHTMAP_UV(coord.xy, unity_LightmapST, output.lightmapUV); \
OUTPUT_SH(output.normalWS.xyz, output.vertexSH); \
output.fogFactorAndVertexLight = half4(ComputeFogFactor(outpos.z), VertexLighting(output.positionWS, output.normalWS));
#endif
#else
#define MTOON_TRANSFER_FOG_AND_LIGHTING(o, outpos, coord, vertex) \
UNITY_TRANSFER_FOG(o, outpos); \
UNITY_TRANSFER_LIGHTING(o, coord.xy);
#define MTOON_TRANSFER_FOG_AND_LIGHTING(output, outpos, coord, vertex) \
UNITY_TRANSFER_FOG(output, outpos); \
UNITY_TRANSFER_LIGHTING(output, coord.xy);
#endif
// SampleSH