createShader
fun <T : ContextListener> T.createShader(vertexShader: VertexShader = DefaultVertexShader(), fragmentShader: FragmentShader = DefaultFragmentShader()): ShaderProgram<VertexShader, FragmentShader>
Creates a new ShaderProgram for the specified shaders.
Parameters
vertexShader
the vertex shader to use. Defaults to DefaultVertexShader.
fragmentShader
the fragment shader to use. Defaults to DefaultFragmentShader.