Skip to content

Commit c2a84ab

Browse files
committed
fix specluar and emission properties for office pack
1 parent b297ba2 commit c2a84ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

POLYGON_Office.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def fix_materials():
258258
# https://blender.stackexchange.com/a/129014
259259
bsdf = material.node_tree.nodes["Principled BSDF"]
260260
bsdf.inputs["Metallic"].default_value = 0.0
261-
bsdf.inputs["Specular"].default_value = 0.2
261+
bsdf.inputs["Specular IOR Level"].default_value = 0.2
262262
bsdf.inputs["Roughness"].default_value = 0.8
263263

264264
tex_emissive = material.node_tree.nodes.new('ShaderNodeTexImage')
@@ -291,7 +291,7 @@ def fix_materials():
291291
"//SourceFiles/Textures/PolygonOffice_Texture_Sceen_Arcade_01.png"
292292
))
293293
material.node_tree.links.new(bsdf.inputs['Base Color'], tex_albedo.outputs['Color'])
294-
material.node_tree.links.new(bsdf.inputs['Emission'], tex_albedo.outputs['Color'])
294+
material.node_tree.links.new(bsdf.inputs['Emission Color'], tex_albedo.outputs['Color'])
295295

296296
# Set up the 5 Screen materials
297297
for i in range(1, 4):
@@ -304,7 +304,7 @@ def fix_materials():
304304
"//SourceFiles/Textures/PolygonOffice_Texture_Sceen_0" + str(i) + ".png"
305305
))
306306
material.node_tree.links.new(bsdf.inputs['Base Color'], tex_albedo.outputs['Color'])
307-
material.node_tree.links.new(bsdf.inputs['Emission'], tex_albedo.outputs['Color'])
307+
material.node_tree.links.new(bsdf.inputs['Emission Color'], tex_albedo.outputs['Color'])
308308

309309

310310

0 commit comments

Comments
 (0)