1
0
forked from 0ad/0ad
0ad/source/renderer/RenderPathVertexShader.h
prefect 875cb3bca1 Add ARB_vertex_shader specific functions to glext_funcs.h
Add an "instancing" model renderer to improve rendering of
non-transparent,
unanimated models. This renderer is used when the vertexshader path is
rendering path is used.

This was SVN commit r3052.
2005-10-30 00:22:22 +00:00

33 lines
733 B
C++

#ifndef __RENDERPATHVERTEXSHADER_H__
#define __RENDERPATHVERTEXSHADER_H__
class RenderPathVertexShader
{
public:
RenderPathVertexShader();
~RenderPathVertexShader();
// Initialize this render path.
bool Init();
// Call once per frame to update program stuff
void BeginFrame();
public:
Handle m_ModelLight;
GLint m_ModelLight_SHCoefficients;
Handle m_InstancingLight;
GLint m_InstancingLight_SHCoefficients;
GLint m_InstancingLight_Instancing1; // matrix rows
GLint m_InstancingLight_Instancing2;
GLint m_InstancingLight_Instancing3;
Handle m_Instancing;
GLint m_Instancing_Instancing1; // matrix rows
GLint m_Instancing_Instancing2;
GLint m_Instancing_Instancing3;
};
#endif // __RENDERPATHVERTEXSHADER_H__