C# Class DeferredDemo.Sky

Inheritance: GameService
Afficher le fichier Open project: demiurghg/FusionEngine

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode 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 méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetAmbientLevel() public méthode

Gets average sky color.
public GetAmbientLevel ( ) : Color4
Résultat Color4

GetSunDirection() public méthode

Gets current Sun direction.
public GetSunDirection ( ) : System.Vector3
Résultat System.Vector3

GetSunGlowColor() public méthode

Gets Sun color.
public GetSunGlowColor ( ) : Color4
Résultat Color4

GetSunLightColor() public méthode

Gets Sun color.
public GetSunLightColor ( ) : Color4
Résultat Color4

Initialize() public méthode

public Initialize ( ) : void
Résultat void

Render() public méthode

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
Résultat void

RenderFogTable() public méthode

Renders fog look-up table
public RenderFogTable ( ) : void
Résultat void

Sky() public méthode

Constructor
public Sky ( Game game ) : System
game Game
Résultat System

Update() public méthode

Does nothing
public Update ( Fusion.GameTime gameTime ) : void
gameTime Fusion.GameTime
Résultat void