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:
parent
5018787e3e
commit
4cd0ece11e
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -12,6 +12,11 @@
|
|||
#include <memory>
|
||||
#include <Nazara/Graphics/Debug.hpp>
|
||||
|
||||
NzModelParameters::NzModelParameters()
|
||||
{
|
||||
material.shaderName = "PhongLighting";
|
||||
}
|
||||
|
||||
bool NzModelParameters::IsValid() const
|
||||
{
|
||||
if (loadAnimation && !animation.IsValid())
|
||||
|
|
|
|||
Loading…
Reference in New Issue