mirror of
https://github.com/Relintai/material-maker.git
synced 2025-01-09 05:39:38 +01:00
Merge pull request #37 from Calinou/preview-material-double-sided
Make the preview material double-sided for better visibility
This commit is contained in:
commit
5e81f9d616
@ -151,6 +151,10 @@ func get_generated_texture(slot, file_prefix = null):
|
|||||||
|
|
||||||
func update_spatial_material(m, file_prefix = null):
|
func update_spatial_material(m, file_prefix = null):
|
||||||
var texture
|
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_color = parameters.albedo_color
|
||||||
m.albedo_texture = get_generated_texture("albedo", file_prefix)
|
m.albedo_texture = get_generated_texture("albedo", file_prefix)
|
||||||
m.metallic = parameters.metallic
|
m.metallic = parameters.metallic
|
||||||
|
Loading…
Reference in New Issue
Block a user