ombra-0.3.1.0: Render engine.

Safe HaskellNone
LanguageHaskell2010

Graphics.Rendering.Ombra.Shader.Default3D

Synopsis

Documentation

type Geometry3D = '[Position3, UV, Normal3] Source #

A 3D geometry.

data Texture2 Source #

Constructors

Texture2 GSampler2D 

Instances

Generic Texture2 Source # 

Associated Types

type Rep Texture2 :: * -> * #

Methods

from :: Texture2 -> Rep Texture2 x #

to :: Rep Texture2 x -> Texture2 #

type Rep Texture2 Source # 
type Rep Texture2 = D1 (MetaData "Texture2" "Graphics.Rendering.Ombra.Shader.Default3D" "ombra-0.3.1.0-I8WL6jt4qyYKc1kCNwFK7w" False) (C1 (MetaCons "Texture2" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GSampler2D)))

data Transform3 Source #

Constructors

Transform3 GMat4 

Instances

Generic Transform3 Source # 

Associated Types

type Rep Transform3 :: * -> * #

type Rep Transform3 Source # 
type Rep Transform3 = D1 (MetaData "Transform3" "Graphics.Rendering.Ombra.Shader.Default3D" "ombra-0.3.1.0-I8WL6jt4qyYKc1kCNwFK7w" False) (C1 (MetaCons "Transform3" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GMat4)))

data View3 Source #

Constructors

View3 GMat4 

Instances

Generic View3 Source # 

Associated Types

type Rep View3 :: * -> * #

Methods

from :: View3 -> Rep View3 x #

to :: Rep View3 x -> View3 #

type Rep View3 Source # 
type Rep View3 = D1 (MetaData "View3" "Graphics.Rendering.Ombra.Shader.Default3D" "ombra-0.3.1.0-I8WL6jt4qyYKc1kCNwFK7w" False) (C1 (MetaCons "View3" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GMat4)))

data Project3 Source #

Constructors

Project3 GMat4 

Instances

Generic Project3 Source # 

Associated Types

type Rep Project3 :: * -> * #

Methods

from :: Project3 -> Rep Project3 x #

to :: Rep Project3 x -> Project3 #

type Rep Project3 Source # 
type Rep Project3 = D1 (MetaData "Project3" "Graphics.Rendering.Ombra.Shader.Default3D" "ombra-0.3.1.0-I8WL6jt4qyYKc1kCNwFK7w" False) (C1 (MetaCons "Project3" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GMat4)))

data Position3 Source #

Constructors

Position3 GVec3 

Instances

Generic Position3 Source # 

Associated Types

type Rep Position3 :: * -> * #

type Rep Position3 Source # 
type Rep Position3 = D1 (MetaData "Position3" "Graphics.Rendering.Ombra.Shader.Default3D" "ombra-0.3.1.0-I8WL6jt4qyYKc1kCNwFK7w" False) (C1 (MetaCons "Position3" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GVec3)))

data UV Source #

Constructors

UV GVec2 

Instances

Generic UV Source # 

Associated Types

type Rep UV :: * -> * #

Methods

from :: UV -> Rep UV x #

to :: Rep UV x -> UV #

type Rep UV Source # 
type Rep UV = D1 (MetaData "UV" "Graphics.Rendering.Ombra.Shader" "ombra-0.3.1.0-I8WL6jt4qyYKc1kCNwFK7w" False) (C1 (MetaCons "UV" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GVec2)))

data Normal3 Source #

Constructors

Normal3 GVec3 

Instances

Generic Normal3 Source # 

Associated Types

type Rep Normal3 :: * -> * #

Methods

from :: Normal3 -> Rep Normal3 x #

to :: Rep Normal3 x -> Normal3 #

type Rep Normal3 Source # 
type Rep Normal3 = D1 (MetaData "Normal3" "Graphics.Rendering.Ombra.Shader.Default3D" "ombra-0.3.1.0-I8WL6jt4qyYKc1kCNwFK7w" False) (C1 (MetaCons "Normal3" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 GVec3)))

vertexShader :: VertexShader '[Project3, View3, Transform3] Geometry3D '[Position3, UV, Normal3] Source #

The output position and normal are in view space.