mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-10 04:49:28 -05:00
ground metallic/roughness
This commit is contained in:
@@ -36,7 +36,10 @@ namespace UniVRM10.VRM10Viewer
|
||||
{
|
||||
if (_urpMaterialForGrayscale != null)
|
||||
{
|
||||
visual.GetComponent<Renderer>().material = Instantiate(_urpMaterialForGrayscale);
|
||||
var m = Instantiate(_urpMaterialForGrayscale);
|
||||
m.SetFloat("_Metallic", 0);
|
||||
m.SetFloat("_Roughness", 1);
|
||||
visual.GetComponent<Renderer>().material = m;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user