summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2018-08-07 17:00:56 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2018-08-07 17:04:30 +0200
commit31c12f05c42f4ce63f82e429a2698d675a3c0c7e (patch)
tree04f0c90d428b3cb6573bc780d626d0ed5cc7d825 /scene
parent619ba76f46544b3e8f449177830032fec3f129e9 (diff)
Tweak the default SpatialMaterial properties
Roughness is now set to 1 by default and albedo is now white, even on meshes that do not have any materials defined. This means there is no longer a visual difference between a mesh with no materials defined and a mesh with a default SpatialMaterial defined.
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/material.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp
index df5bbe9e6c..875b72159a 100644
--- a/scene/resources/material.cpp
+++ b/scene/resources/material.cpp
@@ -2106,10 +2106,10 @@ void SpatialMaterial::_bind_methods() {
SpatialMaterial::SpatialMaterial() :
element(this) {
- //initialize to right values
+ // Initialize to the same values as the shader
set_albedo(Color(1.0, 1.0, 1.0, 1.0));
set_specular(0.5);
- set_roughness(0.0);
+ set_roughness(1.0);
set_metallic(0.0);
set_emission(Color(0, 0, 0));
set_emission_energy(1.0);