CreateShader()
Syntax
Result = CreateShader(ShaderID, VertexProgram$, FragmentProgram$)Description
Creates a new shader using the specified vertex and fragment programs.
Parameters
ShaderID A number between 0 and 65536 to identify the new shader. To select one of the predefined shader, use one of the following values as 'ShaderID' (VertexProgram$ and FragmentProgram$ values will be ignored): #PB_Material_ColorShader #PB_Material_PerpixelShader #PB_Material_BumpShader #PB_Material_SkyShader #PB_Material_WaterShader #PB_Material_WaterShaderRTT #PB_Material_OceanShader #PB_Material_PointSpriteSphereShaderVertexProgram$ The GLSL program to use for vertices. FragmentProgram$ The GLSL program to use for fragments.
Return value
Nonzero if the shader was successfully created, zero otherwise.
Supported OS
All