From 8e19303fd78ede496177c4cecd0acae329207418 Mon Sep 17 00:00:00 2001 From: LMW Date: Sat, 24 Aug 2024 16:24:26 +0800 Subject: [PATCH] export material ao/roughness strengths --- addons/material_maker/nodes/material.mmg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/material_maker/nodes/material.mmg b/addons/material_maker/nodes/material.mmg index 3a046c6ad..2e8aa23e8 100644 --- a/addons/material_maker/nodes/material.mmg +++ b/addons/material_maker/nodes/material.mmg @@ -2797,11 +2797,11 @@ " - _Glossiness: 0", " - _GlossyReflections: 0", " - _Metallic: 0", - " - _OcclusionStrength: 1", + " - _OcclusionStrength: $(param:ao)", " - _Parallax: $(expr:0.005+(0.08-0.005)*$(param:depth_scale))", " - _QueueOffset: 0", " - _ReceiveShadows: 1", - " - _Smoothness: 0.5", + " - _Smoothness: $(expr:1.0-$(param:roughness))", " - _SmoothnessTextureChannel: 0", " - _SpecularHighlights: 1", " - _SrcBlend: 1",