Skip to content

Commit

Permalink
Import_3ds: Improved gradient mapping
Browse files Browse the repository at this point in the history
Multiply in math node gets a better result
  • Loading branch information
Sebastian Sille committed May 9, 2024
1 parent d132dd0 commit 731eae0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion io_scene_3ds/import_3ds.py
Original file line number Diff line number Diff line change
Expand Up @@ -980,12 +980,14 @@ def read_track_angle(track_chunk):
conversion.location = (-740, 20)
layerweight.location = (-940, 100)
normalnode.location = (-1140, 180)
conversion.operation = 'MULTIPLY_ADD'
conversion.label = "Multiply"
gradientnode.label = "Gradient"
coordinate.label = "Coordinate"
conversion.operation = 'POWER'
links.new(conversion.outputs[0], gradientnode.inputs[0])
links.new(layerweight.outputs[1], conversion.inputs[0])
links.new(layerweight.outputs[0], conversion.inputs[1])
links.new(normalnode.outputs[1], conversion.inputs[2])
links.new(normalnode.outputs[0], layerweight.inputs[1])
links.new(normalnode.outputs[1], layerweight.inputs[0])
if not coordinate:
Expand Down

0 comments on commit 731eae0

Please sign in to comment.