mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
Make the preview material double-sided for better visibility
This makes the material still render if the camera "enters" the preview mesh. This can reduce disorientation when moving the camera around.
This commit is contained in:
parent
80f8071d7b
commit
a249ebb5f4
@ -132,6 +132,10 @@ func get_generated_texture(slot, file_prefix = null):
|
||||
|
||||
func update_spatial_material(m, file_prefix = null):
|
||||
var texture
|
||||
|
||||
# Make the material double-sided for better visiblity in the preview
|
||||
m.params_cull_mode = SpatialMaterial.CULL_DISABLED
|
||||
|
||||
m.albedo_color = parameters.albedo_color
|
||||
m.albedo_texture = get_generated_texture("albedo", file_prefix)
|
||||
m.metallic = parameters.metallic
|
||||
|
Loading…
Reference in New Issue
Block a user