Graphics.Rendering.Ombra.Shader

Types

type Shader gs is os

type VertexShader g i o

type FragmentShader g i

data VertexShaderOutput

data FragmentShaderOutput

type ShaderVars

type VOShaderVars o

class Uniform s g

class Attribute s g

class Generic a

data SVList

GPU types

data Bool

data Float

data Int

data Sampler2D

data SamplerCube

data Vec2

data Vec3

data Vec4

data BVec2

data BVec3

data BVec4

data IVec2

data IVec3

data IVec4

data Mat2

data Mat3

data Mat4

data Array n t

Functions

loop

store

texture2D

texture2DBias

texture2DProj

texture2DProjBias

texture2DProj4

texture2DProjBias4

texture2DLod

texture2DProjLod

texture2DProjLod4

arrayLength

Math functions

radians

degrees

sin

cos

tan

asin

acos

atan

atan2

exp

log

exp2

log2

sqrt

inversesqrt

abs

sign

floor

ceil

fract

mod

min

max

clamp

mix

step

smoothstep

length

distance

dot

cross

normalize

faceforward

reflect

refract

matrixCompMult

Vector relational functions

class VecOrd a

class VecEq a

lessThan

lessThanEqual

greaterThan

greaterThanEqual

equal

notEqual

class BoolVector a

anyB

allB

notB

Constructors

true

false

class ToBool t

bool

class ToInt t

int

class ToFloat t

float

type family Components (t :: *) :: Nat where ...

data CompList count

class ToCompList x n

(#)

class ToVec2 t

vec2

class ToVec3 t

vec3

class ToVec4 t

vec4

class ToBVec2 t

bvec2

class ToBVec3 t

bvec3

class ToBVec4 t

bvec4

class ToIVec2 t

ivec2

class ToIVec3 t

ivec3

class ToIVec4 t

ivec4

class ToMat2 t

mat2

class ToMat3 t

mat3

class ToMat4 t

mat4

Operators

(*)

(/)

(+)

(-)

(^)

(&&)

(||)

(==)

(>=)

(<=)

(<)

(>)

(!)

Rebinding functions

fromInteger

fromRational

ifThenElse

negate

Prelude functions

(.)

id

const

flip

($)

fst

snd

Variables

position

fragData

fragCoord

fragFrontFacing