Thanks,
M
Material Declarataion
Code: Select all
material DepthMap {
technique
{
pass
{
lighting off
vertex_program_ref DepthMapVS
{
}
fragment_program_ref DepthMapFS
{
}
}
}
}
Code: Select all
vertex_program DepthMapVS glsl
{
source depthMap.vs
default_params
{
// param_named_auto worldMat world_matrix
}
}
fragment_program DepthMapFS glsl
{
source depthMap.fs
default_params
{
// param_named_auto camPos camera_position
}
}
Code: Select all
void main() {
gl_FragColor = vec4(1, 1, 1, 1);
}
Code: Select all
void main() {
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}