summaryrefslogtreecommitdiff
path: root/servers/rendering/renderer_viewport.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-11-12 12:37:04 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-11-13 17:46:22 +0100
commitbad74311dbfd01359a947b3afed28f0a7a725d04 (patch)
tree55e91cbbc35103b80fe08b0268c9bf2f21265f2d /servers/rendering/renderer_viewport.cpp
parent55b49dc71b687b9edf640ae2264879852f0b0503 (diff)
Set roughness/metallic to 1 when assigning a texture in BaseMaterial3D
This makes material setup faster and avoids mistakes, especially with the metallic channel which defaults to 0. The value is only changed when adding a texture when none was previously assigned, not when assigning a different texture.
Diffstat (limited to 'servers/rendering/renderer_viewport.cpp')
0 files changed, 0 insertions, 0 deletions