flaw-visual-0.1.0.0

LicenseMIT
Safe HaskellNone
LanguageHaskell2010

Flaw.Visual.Pipeline.Shadow

Description

 
Synopsis

Documentation

shadowPipelineInput Source #

Arguments

:: Node Float4x4

Transform from eye view space to shadow proj space.

-> Node Float3

View-space position.

-> Int

Shadow map sampler index.

-> Program (Node Float, Node Float) 

Sample shadow depth from sampler and return (depth from shadow map, light-space position z)

data ShadowBlurPipeline d Source #

Pipeline for blurring shadows. Includes two 1-float rendertargets.

data ShadowBlurerESM d Source #

Helper object doing blurring using Exponential Shadow Maps method. See "Rendering Filtered Shadows with Exponential Shadow Maps", ShaderX 6, by Marco Salvi.

newShadowBlurerESM Source #

Arguments

:: Device d 
=> d

Device.

-> Int

Half count of gaussian taps.

-> (Node Float -> Node Float)

Function to convert homogeneous depth to linear depth.

-> IO (ShadowBlurerESM d, IO ()) 

shadowBlurerESMInput Source #

Arguments

:: Node Float4x4

Transform from eye view space to shadow proj space.

-> Node Float3

View-space position.

-> Int

Shadow map sampler index.

-> (Node Float4 -> Node Float)

Function getting linear depth from proj coord.

-> Program (Node Float)