Пример шейдера:

shader1 = ShaderCreate();
MaterialSetShader(mat2,shader1);
ShaderLoadVertexProgram(shader1,"media/shaders/shader_vp.txt");
ShaderVPSetParameter(shader1,1, 0,1,0,1);
ShaderLoadFragmentProgram(shader1,"media/shaders/shader_fp.txt");
ShaderFPSetParameter(shader1,1, 1,0,1,1);

