flat textures are getting added
This commit is contained in:
parent
4113f62b0a
commit
6599b225d3
4
addon.py
4
addon.py
@ -687,6 +687,7 @@ class BlenderMCPServer:
|
|||||||
|
|
||||||
mapping = nodes.new(type='ShaderNodeMapping')
|
mapping = nodes.new(type='ShaderNodeMapping')
|
||||||
mapping.location = (-600, 0)
|
mapping.location = (-600, 0)
|
||||||
|
mapping.vector_type = 'TEXTURE' # Changed from default 'POINT' to 'TEXTURE'
|
||||||
links.new(tex_coord.outputs['UV'], mapping.inputs['Vector'])
|
links.new(tex_coord.outputs['UV'], mapping.inputs['Vector'])
|
||||||
|
|
||||||
# Position offset for texture nodes
|
# Position offset for texture nodes
|
||||||
@ -915,8 +916,7 @@ class BlenderMCPServer:
|
|||||||
|
|
||||||
mapping = nodes.new(type='ShaderNodeMapping')
|
mapping = nodes.new(type='ShaderNodeMapping')
|
||||||
mapping.location = (-600, 0)
|
mapping.location = (-600, 0)
|
||||||
# Set a smaller scale to make the texture more visible
|
mapping.vector_type = 'TEXTURE' # Changed from default 'POINT' to 'TEXTURE'
|
||||||
mapping.inputs['Scale'].default_value = (0.5, 0.5, 0.5)
|
|
||||||
links.new(tex_coord.outputs['UV'], mapping.inputs['Vector'])
|
links.new(tex_coord.outputs['UV'], mapping.inputs['Vector'])
|
||||||
|
|
||||||
# Position offset for texture nodes
|
# Position offset for texture nodes
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user