C# Класс DeferredDemo.Sky

Наследование: GameService
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
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

Описание методов

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

GetAmbientLevel() публичный Метод

Gets average sky color.
public GetAmbientLevel ( ) : Color4
Результат Color4

GetSunDirection() публичный Метод

Gets current Sun direction.
public GetSunDirection ( ) : System.Vector3
Результат System.Vector3

GetSunGlowColor() публичный Метод

Gets Sun color.
public GetSunGlowColor ( ) : Color4
Результат Color4

GetSunLightColor() публичный Метод

Gets Sun color.
public GetSunLightColor ( ) : Color4
Результат Color4

Initialize() публичный Метод

public Initialize ( ) : void
Результат void

Render() публичный Метод

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
Результат void

RenderFogTable() публичный Метод

Renders fog look-up table
public RenderFogTable ( ) : void
Результат void

Sky() публичный Метод

Constructor
public Sky ( Game game ) : System
game Game
Результат System

Update() публичный Метод

Does nothing
public Update ( Fusion.GameTime gameTime ) : void
gameTime Fusion.GameTime
Результат void