From 21082a1b05649a8db3f0cdec84f76988b3015980 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 27 Feb 2025 16:24:05 +0900 Subject: [PATCH] ground metallic/roughness --- Assets/VRM10_Samples/VRM10Viewer/VRM10VisualPrimitive.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10VisualPrimitive.cs b/Assets/VRM10_Samples/VRM10Viewer/VRM10VisualPrimitive.cs index f6bc44257..b87a30f79 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10VisualPrimitive.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10VisualPrimitive.cs @@ -36,7 +36,10 @@ namespace UniVRM10.VRM10Viewer { if (_urpMaterialForGrayscale != null) { - visual.GetComponent().material = Instantiate(_urpMaterialForGrayscale); + var m = Instantiate(_urpMaterialForGrayscale); + m.SetFloat("_Metallic", 0); + m.SetFloat("_Roughness", 1); + visual.GetComponent().material = m; } } }