C# Class DeferredDemo.Sky

Inheritance: GameService
Exibir arquivo Open project: demiurghg/FusionEngine

Private Properties

Property Type Description
ApplyColorSpace void
EnumFunc void
LoadContent void
SunColor Color4
YxyToRGB System.Vector3
acos float
dot float
dot float
exp float
perezFunc System.Vector3
perezSky System.Vector3
perezSky System.Vector3
perezSun System.Vector3
perezZenith System.Vector3
tan float

Public Methods

Method Description
GetAmbientLevel ( ) : Color4

Gets average sky color.

GetSunDirection ( ) : System.Vector3

Gets current Sun direction.

GetSunGlowColor ( ) : Color4

Gets Sun color.

GetSunLightColor ( ) : Color4

Gets Sun color.

Initialize ( ) : void

Render ( Fusion.GameTime gameTime, Fusion.Graphics.DepthStencilSurface depthBuffer, Fusion.Graphics.RenderTargetSurface hdrTarget, System.Matrix view, System.Matrix projection ) : void

Renders sky with specified technique

RenderFogTable ( ) : void

Renders fog look-up table

Sky ( Game game ) : System

Constructor

Update ( Fusion.GameTime gameTime ) : void

Does nothing

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
ApplyColorSpace ( SkyFlags &flags ) : void
EnumFunc ( Fusion.Graphics.PipelineState ps, SkyFlags flags ) : void

LoadContent ( ) : void

SunColor ( System.Vector3 dir ) : Color4
YxyToRGB ( System.Vector3 Yxy ) : System.Vector3
acos ( float x ) : float
dot ( System.Vector3 a, System.Vector3 b ) : float
dot ( System.Vector4 a, System.Vector4 b ) : float
exp ( float x ) : float
perezFunc ( float t, float cosTheta, float cosGamma ) : System.Vector3
perezSky ( float t, System.Vector3 viewDir, System.Vector3 sunDir ) : System.Vector3

perezSky ( float t, float cosTheta, float cosGamma, float cosThetaSun ) : System.Vector3

perezSun ( float t, float cosThetaSun, float boost = 100 ) : System.Vector3
perezZenith ( float t, float thetaSun ) : System.Vector3
tan ( float x ) : float

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetAmbientLevel() public method

Gets average sky color.
public GetAmbientLevel ( ) : Color4
return Color4

GetSunDirection() public method

Gets current Sun direction.
public GetSunDirection ( ) : System.Vector3
return System.Vector3

GetSunGlowColor() public method

Gets Sun color.
public GetSunGlowColor ( ) : Color4
return Color4

GetSunLightColor() public method

Gets Sun color.
public GetSunLightColor ( ) : Color4
return Color4

Initialize() public method

public Initialize ( ) : void
return void

Render() public method

Renders sky with specified technique
public Render ( Fusion.GameTime gameTime, Fusion.Graphics.DepthStencilSurface depthBuffer, Fusion.Graphics.RenderTargetSurface hdrTarget, System.Matrix view, System.Matrix projection ) : void
gameTime Fusion.GameTime
depthBuffer Fusion.Graphics.DepthStencilSurface
hdrTarget Fusion.Graphics.RenderTargetSurface
view System.Matrix
projection System.Matrix
return void

RenderFogTable() public method

Renders fog look-up table
public RenderFogTable ( ) : void
return void

Sky() public method

Constructor
public Sky ( Game game ) : System
game Game
return System

Update() public method

Does nothing
public Update ( Fusion.GameTime gameTime ) : void
gameTime Fusion.GameTime
return void