Shader
clay.Resource → clay.graphics.Shader (Class) → backend.ShaderImpl
Instance Members
vertSource: StringSource code of vertex shader (glsl language on GL targets)
fragSource: StringSource code of fragment shader (glsl language on GL targets)
A list of ordered attribute names that will be assigned indexes in the order of the array. (GL.bindAttribLocation() or similar)
A list of ordered texture uniform names that will be assigned indexes in the order of the array. (GL.uniform1i() or similar)
uniforms: UniformsShader uniforms / named parameters.
gpuShader: clay.GpuShaderReference to the actual GPU shader
init(): VoidCall init() after you have set vertSource and fragSource properties.
(and optionally: attributes and textures properties)
activate(): Voiddestroy(): Voidnew(): Void