Safe Haskell | None |
---|---|
Language | Haskell2010 |
Graphics.Rendering.Ombra.Shader.Default3D
- type Uniforms = '[Project3, View3, Transform3, Texture2]
- type Geometry3D = '[Position3, UV, Normal3]
- data Texture2 = Texture2 GSampler2D
- data Transform3 = Transform3 GMat4
- data View3 = View3 GMat4
- data Project3 = Project3 GMat4
- data Position3 = Position3 GVec3
- data UV = UV GVec2
- data Normal3 = Normal3 GVec3
- vertexShader :: VertexShader '[Project3, View3, Transform3] Geometry3D '[Position3, UV, Normal3]
- fragmentShader :: FragmentShader '[Texture2] '[Position3, UV, Normal3]
Documentation
Constructors
Texture2 GSampler2D |
data Transform3 Source #
Constructors
Transform3 GMat4 |
Instances
Generic Transform3 Source # | |
type Rep Transform3 Source # | |
vertexShader :: VertexShader '[Project3, View3, Transform3] Geometry3D '[Position3, UV, Normal3] Source #
The output position and normal are in view space.
fragmentShader :: FragmentShader '[Texture2] '[Position3, UV, Normal3] Source #