From: Mikko Rasa Date: Wed, 5 Oct 2022 11:35:04 +0000 (+0300) Subject: Set a default value for the tint property in PbrMaterial X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=01113149a4f70b590e6817aa4ba04062f7db4771;p=libs%2Fgl.git Set a default value for the tint property in PbrMaterial --- diff --git a/source/materials/pbrmaterial.cpp b/source/materials/pbrmaterial.cpp index b153a2cb..4a5f0a41 100644 --- a/source/materials/pbrmaterial.cpp +++ b/source/materials/pbrmaterial.cpp @@ -27,6 +27,7 @@ PbrMaterial::PbrMaterial(): fresnel_sampler(Resources::get_global().get("_linear_clamp.samp")) { set_base_color(0.8f); + set_tint(1.0f); set_metalness(0.0f); set_roughness(0.5f); set_emission(0.0f);