2 #ifndef __BL_GPUSHADER_H__
3 #define __BL_GPUSHADER_H__
6 #include "GPU_material.h"
9 #include "MT_Matrix4x4.h"
10 #include "MT_Matrix3x3.h"
11 #include "MT_Tuple2.h"
12 #include "MT_Tuple3.h"
13 #include "MT_Tuple4.h"
15 #include "RAS_IPolygonMaterial.h"
20 #define BL_MAX_ATTRIB 16
24 * Blender GPU shader material
26 class BL_BlenderShader
36 BL_BlenderShader(struct Material *ma, int lightlayer);
37 virtual ~BL_BlenderShader();
40 void SetProg(bool enable);
43 void SetAttribs(class RAS_IRasterizer* ras, const BL_Material *mat);
44 void Update(const class KX_MeshSlot & ms, class RAS_IRasterizer* rasty);
46 bool Equals(BL_BlenderShader *blshader);
49 #endif//__BL_GPUSHADER_H__