]> git.tdb.fi Git - libs/gl.git/commitdiff
Set a default value for the tint property in PbrMaterial
authorMikko Rasa <tdb@tdb.fi>
Wed, 5 Oct 2022 11:35:04 +0000 (14:35 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 5 Oct 2022 22:32:39 +0000 (01:32 +0300)
source/materials/pbrmaterial.cpp

index b153a2cbeb32b890aec9cb9219725d73fd18f92a..4a5f0a419d370ef1bc935bdf15fc3ff0cd0929d5 100644 (file)
@@ -27,6 +27,7 @@ PbrMaterial::PbrMaterial():
        fresnel_sampler(Resources::get_global().get<Sampler>("_linear_clamp.samp"))
 {
        set_base_color(0.8f);
+       set_tint(1.0f);
        set_metalness(0.0f);
        set_roughness(0.5f);
        set_emission(0.0f);