Graphics/Material: Fix missing reflection initialization
This commit is contained in:
parent
8dab3bf341
commit
786a11fc78
|
|
@ -1258,7 +1258,7 @@ namespace Nz
|
|||
/*!
|
||||
* \brief Changes reflection mode of the material
|
||||
*
|
||||
* When reflections are enable, the material will render reflections from the object environment according to the reflection mode.
|
||||
* When reflections are enabled, the material will render reflections from the object environment according to the reflection mode.
|
||||
* This function does change the reflection mode used by the material.
|
||||
*
|
||||
* Skyboxes reflections are the cheapest but are static and thus can't reflect other objects.
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue