diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-08-08 09:44:31 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-08 09:44:31 -0300 |
commit | 913a7dbd8fcaea9de183d8af9f9b2429f83131ef (patch) | |
tree | 89b65f85a22734d466ad5da3aec128ed3f7f46c0 /scene/resources | |
parent | 9bd5315d30be8cb162bd7fee6a7db17f65b5057d (diff) | |
parent | 31c12f05c42f4ce63f82e429a2698d675a3c0c7e (diff) |
Merge pull request #20787 from Calinou/tweak-default-material-properties
Tweak the default SpatialMaterial properties
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/material.cpp | 4 |
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); |