diff --git a/index.html b/index.html index 95b8b82..a9feef5 100644 --- a/index.html +++ b/index.html @@ -198,33 +198,60 @@
+ type Vec4
+ -- Four dimensional vector type
+
+ vec4 : Float -> Float -> Float -> Float -> Vec4
+ -- Creates a new 4-element vector with the given x, y, z, and w values.
+
+ type Mat4
+ -- 4x4 matrix type
+
+ makeFromList : List Float -> Maybe Mat4
+ -- Creates a matrix from a list of elements. Returns Nothing if the length of the list is not exactly 16 (4x4).
+
+ makePerspective : Float -> Float -> Float -> Float -> Mat4
+ -- Creates a matrix for a perspective projection with fov-y, aspect, z-near, z-far
+
+ makeRotate : Float -> Vec3 -> Mat4
+ -- Creates a matrix for rotation in radians about the 3-element vector axis.
+
+ makeScale : Vec3 -> Mat4
+ -- Creates a matrix for scaling each of the x, y, and z axes.
+
+ makeTranslate : Vec3 -> Mat4
+ -- Creates a matrix for translating each of the x, y, and z axes.
+
+
Uses Language.GLSL.Parser
to parse and compile glsl shaders from Elm source code
Uses Haskell's Language.GLSL.Parser
to parse and compile glsl shaders from Elm source code for type checking
- fragmentShader : Shader {} {} {}
+ fragmentShader : Shader Attributes Uniforms Varyings
fragmentShader =
[glsl|