Safe Haskell | None |
---|---|
Language | Haskell2010 |
FWGL.Shader.Default2D
- type Uniforms = `[View2, Image, Depth, Transform2]`
- type Attributes = `[Position2, UV]`
- newtype Image = Image Sampler2D
- newtype Depth = Depth Float
- newtype Transform2 = Transform2 Mat3
- newtype View2 = View2 Mat3
- newtype Position2 = Position2 Vec2
- newtype UV = UV Vec2
- vertexShader :: VertexShader `[Transform2, View2, Depth]` `[Position2, UV]` `[UV]`
- fragmentShader :: FragmentShader `[Image]` `[UV]`
Documentation
type Attributes = `[Position2, UV]` Source
An uniform that represents the texture used in the default 2D shader.
Instances
An uniform that represents the depth used in the default 2D shader.
Instances
newtype Transform2 Source
An uniform that represents the transformation matrix used in the default 2D shader.
Constructors
Transform2 Mat3 |
Instances
An uniform that represents the view matrix used in the default 2D shader.
Instances
Instances
Instances
ShaderType UV | |
Typeable * UV | |
GLES => AttributeCPU CVec2 UV |
vertexShader :: VertexShader `[Transform2, View2, Depth]` `[Position2, UV]` `[UV]` Source
fragmentShader :: FragmentShader `[Image]` `[UV]` Source