From c8723daf52da508e7c00993cb34d2821db8388c1 Mon Sep 17 00:00:00 2001 From: amamagi Date: Thu, 3 Apr 2025 11:15:11 +0900 Subject: [PATCH] use g channel for outline width tex to match the specification --- .../MToon10/Shaders/vrmc_materials_mtoon_geometry_vertex.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_geometry_vertex.hlsl b/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_geometry_vertex.hlsl index 5fee56b43..f67314367 100644 --- a/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_geometry_vertex.hlsl +++ b/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_geometry_vertex.hlsl @@ -16,7 +16,7 @@ inline half MToon_GetOutlineVertex_OutlineWidth(const float2 uv) { if (MToon_IsParameterMapOn()) { - return _OutlineWidth * UNITY_SAMPLE_TEX2D_LOD(_OutlineWidthTex, uv, 0).x; + return _OutlineWidth * UNITY_SAMPLE_TEX2D_LOD(_OutlineWidthTex, uv, 0).g; } else {