Skip to content

Commit 773d03a

Browse files
committed
check bump map for pbr gaming
1 parent bdab939 commit 773d03a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

3ds Max/Max2Babylon/Scripts/PHYSICAL_MATERIAL_CAT_DEF.ms

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ version:2
5252
on BumpBtn pressed do
5353
(
5454
local activMaterial = sme.GetMtlInParamEditor()
55-
checkBumpMap(activMaterial.bump_map)
55+
-- for PhysicalMaterial
56+
if( hasProperty activMaterial "bump_map" ) then checkBumpMap(activMaterial.bump_map)
57+
-- for PBRMetalRough and PBRSpecGloss
58+
if( hasProperty activMaterial "norm_map" ) then checkBumpMap(activMaterial.norm_map)
5659
)
5760
)
5861
)

0 commit comments

Comments
 (0)