ModelParameters no longer contains shaderName field

Instead it will now set the shaderName field of the material field to
PhongLighting


Former-commit-id: 55b7f5500c7dc2c147f32a7c214a8e75ea434ff1
This commit is contained in:
Lynix 2014-03-01 12:25:11 +01:00
parent 5018787e3e
commit 4cd0ece11e
2 changed files with 7 additions and 1 deletions

View File

@ -17,12 +17,13 @@
struct NAZARA_API NzModelParameters
{
NzModelParameters();
bool loadAnimation = true;
bool loadMaterials = true;
NzAnimationParams animation;
NzMaterialParams material;
NzMeshParams mesh;
NzString shaderName = "PhongLighting";
bool IsValid() const;
};

View File

@ -12,6 +12,11 @@
#include <memory>
#include <Nazara/Graphics/Debug.hpp>
NzModelParameters::NzModelParameters()
{
material.shaderName = "PhongLighting";
}
bool NzModelParameters::IsValid() const
{
if (loadAnimation && !animation.IsValid())