Ocular Engine
UniformPerObject.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_GRAPHICS_SHADER_UNIFORMS_PER_OBJECT__H__
19 #define __H__OCULAR_GRAPHICS_SHADER_UNIFORMS_PER_OBJECT__H__
20 
21 #include "Math/Matrix4x4.hpp"
22 
23 //------------------------------------------------------------------------------------------
24 
29 namespace Ocular
30 {
35  namespace Graphics
36  {
42  {
43  Math::Matrix4x4 modelMatrix;
44  Math::Matrix4x4 modelViewMatrix; //< Model * View matrix
45  Math::Matrix4x4 modelViewProjMatrix; //< Model * View * Projection matrix
46  Math::Matrix4x4 normalMatrix; //< Inverse-Transpose of the Model-View matrix
47 
48  static uint32_t Size() { return 256; }
49  };
50  }
54 }
59 //------------------------------------------------------------------------------------------
60 
61 #endif
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
The fixed struct for all Uniform data for Objects.
Definition: UniformPerObject.hpp:41
A 4x4 column-major float matrix.
Definition: Matrix4x4.hpp:64