Merge pull request #37 from Calinou/preview-material-double-sided

Make the preview material double-sided for better visibility
This commit is contained in:
Rodz Labs 2019-10-20 23:01:04 +02:00 committed by GitHub
commit 5e81f9d616
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,6 +151,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