Graphics/Material: Fix missing reflection initialization

This commit is contained in:
Lynix
2017-10-31 00:14:50 +01:00
parent 8dab3bf341
commit 786a11fc78
3 changed files with 4 additions and 2 deletions

View File

@@ -387,6 +387,7 @@ namespace Nz
m_ambientColor = Color(128, 128, 128);
m_diffuseColor = Color::White;
m_diffuseSampler = TextureSampler();
m_reflectionMode = ReflectionMode_Skybox;
m_shadowCastingEnabled = true;
m_shininess = 50.f;
m_specularColor = Color::White;
@@ -394,6 +395,7 @@ namespace Nz
m_pipelineInfo = MaterialPipelineInfo();
m_pipelineInfo.depthBuffer = true;
m_pipelineInfo.faceCulling = true;
m_reflectionSize = 256;
SetShader("Basic");