Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type Uniforms = `[View2, Image, Depth, Transform2]`
- type Attributes = `[Position2, UV]`
- newtype Image = Image Sampler2D
- newtype Depth = Depth Float
- newtype Transform2 = Transform2 M3
- newtype View2 = View2 M3
- newtype Position2 = Position2 V2
- newtype UV = UV V2
- vertexShader :: VertexShader `[Transform2, View2, Depth]` `[Position2, UV]` `[UV]`
- fragmentShader :: FragmentShader `[Image]` `[UV]`
Documentation
type Uniforms = `[View2, Image, Depth, Transform2]`
type Attributes = `[Position2, UV]`
newtype Image
An uniform that represents the texture used in the default 2D shader.
newtype Depth
An uniform that represents the depth used in the default 2D shader.
newtype Transform2
An uniform that represents the transformation matrix used in the default 2D shader.
newtype View2
An uniform that represents the view matrix used in the default 2D shader.
newtype Position2
vertexShader :: VertexShader `[Transform2, View2, Depth]` `[Position2, UV]` `[UV]`
fragmentShader :: FragmentShader `[Image]` `[UV]`