Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type VertexShader g i o = Shader g i (VertexShaderOutput : o)
- type ValidVertex g i o = (Valid g i o, IsMember VertexShaderOutput o ~ False)
- type FragmentShader g i = Shader g i (FragmentShaderOutput : [])
- newtype VertexShaderOutput = Vertex Vec4
- newtype FragmentShaderOutput = Fragment Vec4
Documentation
type VertexShader g i o = Shader g i (VertexShaderOutput : o) Source
A Shader
with a VertexShaderOutput
output.
type ValidVertex g i o = (Valid g i o, IsMember VertexShaderOutput o ~ False) Source
The condition for a valid VertexShader
.
type FragmentShader g i = Shader g i (FragmentShaderOutput : []) Source
A Shader
with only a FragmentShaderOutput
output.
newtype VertexShaderOutput Source
The position of the vertex.
newtype FragmentShaderOutput Source
The RGBA color of the fragment (1.0 = #FF).