From 01113149a4f70b590e6817aa4ba04062f7db4771 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 5 Oct 2022 14:35:04 +0300 Subject: [PATCH] Set a default value for the tint property in PbrMaterial --- source/materials/pbrmaterial.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- 2.45.2