C# Class Fusion.Engine.Graphics.SkyModel

Mostrar archivo Open project: demiurghg/FusionEngine

Public Methods

Method Description
YxyToRGB ( System.Vector3 Yxy ) : System.Vector3
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

Private Methods

Method Description
acos ( float x ) : float
dot ( System.Vector3 a, System.Vector3 b ) : float
dot ( System.Vector4 a, System.Vector4 b ) : float
exp ( float x ) : float
perezZenith ( float t, float thetaSun ) : System.Vector3
tan ( float x ) : float

Method Details

YxyToRGB() public static method

public static YxyToRGB ( System.Vector3 Yxy ) : System.Vector3
Yxy System.Vector3
return System.Vector3

perezFunc() public static method

public static perezFunc ( float t, float cosTheta, float cosGamma ) : System.Vector3
t float
cosTheta float
cosGamma float
return System.Vector3

perezSky() public static method

public static perezSky ( float t, System.Vector3 viewDir, System.Vector3 sunDir ) : System.Vector3
t float Turbidity
viewDir System.Vector3 Normalized (!) view direction
sunDir System.Vector3 Normalized (!) sun direction
return System.Vector3

perezSky() public static method

public static perezSky ( float t, float cosTheta, float cosGamma, float cosThetaSun ) : System.Vector3
t float Turbidity
cosTheta float cosine of view angle
cosGamma float cosine of angle between view dir and sun dir
cosThetaSun float cosine of sun angle
return System.Vector3

perezSun() public static method

public static perezSun ( float t, float cosThetaSun, float boost = 100 ) : System.Vector3
t float
cosThetaSun float
boost float
return System.Vector3