Anim 0.1
Loading...
Searching...
No Matches
vertex_colour_unlit_shader.h
1#ifndef _VERTEX_COLOUR_UNLIT_SHADER_H_
2#define _VERTEX_COLOUR_UNLIT_SHADER_H_
3
4#include <graphics/shader.h>
5#include <gef.h>
6#include <maths/matrix44.h>
7
8constexpr int MAX_NUM_POINT_LIGHTS = 4;
9
10namespace gef
11{
12 class MeshInstance;
13 class Material;
14}
15
16namespace GefExtensions
17{
18 class VertexColourUnlitShader : public gef::Shader
19 {
20 public:
22 {
23 float x;
24 float y;
25 float z;
26 float r;
27 float g;
28 float b;
29 float a;
30 };
31
32 VertexColourUnlitShader(gef::Platform const & platform);
33 ~VertexColourUnlitShader() override;
34
35 void SetSceneData(gef::Matrix44 const & view_matrix, gef::Matrix44 const & projection_matrix);
36 void SetMeshData(gef::Matrix44 const & transform) override;
37 protected:
39
40 Int32 wvp_matrix_variable_index_;
41 gef::Matrix44 view_projection_matrix_;
42 };
43}
44
45
46#endif /* _VERTEX_COLOUR_UNLIT_SHADER_H_ */
Definition: vertex_colour_unlit_shader.h:19
Definition: vertex_colour_unlit_shader.h:22