io_scene_3ds: Moved specular color texture to specular tint #104918
@ -739,15 +739,15 @@ def process_next_chunk(context, file, previous_chunk, imported_objects, CONSTRAI
|
|||||||
context.scene.world = contextWorld
|
context.scene.world = contextWorld
|
||||||
else:
|
else:
|
||||||
contextWorld.use_nodes = True
|
contextWorld.use_nodes = True
|
||||||
links = newWorld.node_tree.links
|
links = contextWorld.node_tree.links
|
||||||
nodes = newWorld.node_tree.nodes
|
nodes = contextWorld.node_tree.nodes
|
||||||
context.view_layer.use_pass_mist = False
|
context.view_layer.use_pass_mist = False
|
||||||
layerfog = nodes.new(type='ShaderNodeVolumeScatter')
|
layerfog = nodes.new(type='ShaderNodeVolumeScatter')
|
||||||
layerfog.label = "Layer Fog"
|
layerfog.label = "Layer Fog"
|
||||||
layerfog.location = (300, 100)
|
layerfog.location = (300, 100)
|
||||||
links.new(layerfog.outputs['Volume'], nodes['World Output'].inputs['Volume'])
|
links.new(layerfog.outputs['Volume'], nodes['World Output'].inputs['Volume'])
|
||||||
world.mist_settings.start = read_float(new_chunk)
|
contextWorld.mist_settings.start = read_float(new_chunk)
|
||||||
world.mist_settings.depth = read_float(new_chunk)
|
contextWorld.mist_settings.depth = read_float(new_chunk)
|
||||||
layerfog.inputs[1].default_value = read_float(new_chunk)
|
layerfog.inputs[1].default_value = read_float(new_chunk)
|
||||||
layerfogflag = read_long(new_chunk)
|
layerfogflag = read_long(new_chunk)
|
||||||
read_chunk(file, temp_chunk)
|
read_chunk(file, temp_chunk)
|
||||||
|
Loading…
Reference in New Issue
Block a user