Skip to content

Commit

Permalink
Merge pull request #1 from Vinc3r/master
Browse files Browse the repository at this point in the history
default spec & roughness values
  • Loading branch information
eliemichel authored Apr 2, 2019
2 parents ab46868 + a5e1abe commit 04590d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blender/MapsModelsImporter/google_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def addImageMaterial(name, obj, img):
obj.data.materials.append(mat)
nodes = mat.node_tree.nodes
principled = nodes["Principled BSDF"]
principled.inputs["Specular"].default_value = 0.0
principled.inputs["Roughness"].default_value = 1.0
texture_node = nodes.new(type="ShaderNodeTexImage")
texture_node.image = img
links = mat.node_tree.links
Expand Down

0 comments on commit 04590d5

Please sign in to comment.