shady-graphics-0.5.0: Functional GPU programming - DSEL & compiler

Stabilityexperimental
Maintainerconal@conal.net

Shady.CompileSurface

Contents

Description

Assemble shaders and display an image

Synopsis

Documentation

type EyePosE = R3ESource

Eye position as a single expression. See also EyePos.

type FullSurf = (Lighter Color, EyePosE -> View, SurfD, Image Color)Source

Renderable surface

type SurfB = T -> FullSurfSource

3D animation

surfBProg :: EyePosE -> SurfB -> GLSL R1 R2Source

Surface shader program

wrapSurf :: forall u'. EyePosE -> SurfWrapper u'Source

unused but exported to suppress unused warning

wrapSurfExact :: forall u'. EyePosE -> SurfWrapper u'Source

Wrap up a parameterized surface for compiling. Computes normals and lighting per pixel -- sometimes called exact shading.

wrapSurfIN :: forall u'. EyePosE -> SurfWrapper u'Source

Wrap up a parameterized surface for compiling. This variant interpolates normals, as in Phong shading.

wrapSurfIC :: forall u'. EyePosE -> SurfWrapper u'Source

Wrap up a parameterized surface for compiling. This variant interpolates normals, as in Phong shading.