register_shader
- register_shader(name: unicode, stream: bool, parameters: list(ShaderParam), programs: list(ShaderProgram)) None
Register a new hardware shader.
Hardware shader parameters are passed by a static hardware buffer. The shader must be registered with the description of those parameters. The shader can use up to 4 texture files. The textures are registered in the order of the different binding slots, starting at the binding slot 7. OpenGL Programs are passed in the programs argument. Programs can be raw OpenGL programs or a simplified surface fragment program. In that case, a geometry and vertex programs are provided by the system, the first texture slot, named “normalmap”, is automatically reserved for a normalmap.
- Parameters
stream (bool) – The shader’s name
parameters (list(ShaderParam)) – true if the shader’s parameter buffer is updated many times.
programs (list(ShaderProgram)) – The shader’s parameter list The shader’s program list
- Return type
None