C# Class ShaderToy.ShaderToyFor

Afficher le fichier Open project: Patapom/GodComplex

Méthodes publiques

Свойство Type Description
m_AverageFrameTime float
m_CurrentGameTime float
m_StartFPSTime float
m_StartGameTime float
m_StopWatch System.Diagnostics.Stopwatch
m_SumFrames int

Méthodes publiques

Méthode Description
Application_Idle ( object sender, EventArgs e ) : void
BuildPreciseF ( ) : void
BuildSurfaceRadianceIntegrals ( ) : void

Following the mathematica notebook found in "D:\Docs\Computer Graphics\Volumetric, Clouds, Participating Medium, Light Scattering, Translucency\2005 Sun, Ramamoorthi.nb" this routine generates the tables representing the integral of function Gn depending on 2 parameters. Several of these tables are generated for different exponents n, the goal is then to find an approximation to generated these tables from an analytical expression.

Camera_CameraTransformChanged ( object sender, EventArgs e ) : void
GetGameTime ( ) : float

Gets the current game time in seconds

Image2Texture ( System _FileName ) : Texture2D
Image2Texture ( int _Width, int _Height, PixelsBuffer _Content ) : Texture2D
Image2Texture ( int _Width, int _Height, byte _Content ) : Texture2D
ShaderToyFor ( ) : System

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnFormClosed ( FormClosedEventArgs e ) : void
OnLoad ( EventArgs e ) : void

Private Methods

Méthode Description
BuildQuad ( ) : void
Client2UV ( Point _ClientPos ) : float2
F_NIntegrate ( double _u, double _v ) : double

Numerical integration of F

F_Table ( double _u, double _v ) : double
F_analytical ( double _u, double _v ) : double

Here I'm using the analytical expression to find F(u,v) that I first derived from the first part of the document

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

buttonReload_Click ( object sender, EventArgs e ) : void
panelOutput_MouseDown ( object sender, MouseEventArgs e ) : void
panelOutput_MouseMove ( object sender, MouseEventArgs e ) : void
panelOutput_MouseUp ( object sender, MouseEventArgs e ) : void
panelOutput_PreviewKeyDown ( object sender, PreviewKeyDownEventArgs e ) : void

Method Details

Application_Idle() public méthode

public Application_Idle ( object sender, EventArgs e ) : void
sender object
e EventArgs
Résultat void

BuildPreciseF() public méthode

public BuildPreciseF ( ) : void
Résultat void

BuildSurfaceRadianceIntegrals() public méthode

Following the mathematica notebook found in "D:\Docs\Computer Graphics\Volumetric, Clouds, Participating Medium, Light Scattering, Translucency\2005 Sun, Ramamoorthi.nb" this routine generates the tables representing the integral of function Gn depending on 2 parameters. Several of these tables are generated for different exponents n, the goal is then to find an approximation to generated these tables from an analytical expression.
public BuildSurfaceRadianceIntegrals ( ) : void
Résultat void

Camera_CameraTransformChanged() public méthode

public Camera_CameraTransformChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
Résultat void

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

GetGameTime() public méthode

Gets the current game time in seconds
public GetGameTime ( ) : float
Résultat float

Image2Texture() public méthode

public Image2Texture ( System _FileName ) : Texture2D
_FileName System
Résultat Texture2D

Image2Texture() public méthode

public Image2Texture ( int _Width, int _Height, PixelsBuffer _Content ) : Texture2D
_Width int
_Height int
_Content PixelsBuffer
Résultat Texture2D

Image2Texture() public méthode

public Image2Texture ( int _Width, int _Height, byte _Content ) : Texture2D
_Width int
_Height int
_Content byte
Résultat Texture2D

OnFormClosed() protected méthode

protected OnFormClosed ( FormClosedEventArgs e ) : void
e FormClosedEventArgs
Résultat void

OnLoad() protected méthode

protected OnLoad ( EventArgs e ) : void
e EventArgs
Résultat void

ShaderToyFor() public méthode

public ShaderToyFor ( ) : System
Résultat System

Property Details

m_AverageFrameTime public_oe property

public float m_AverageFrameTime
Résultat float

m_CurrentGameTime public_oe property

public float m_CurrentGameTime
Résultat float

m_StartFPSTime public_oe property

public float m_StartFPSTime
Résultat float

m_StartGameTime public_oe property

public float m_StartGameTime
Résultat float

m_StopWatch public_oe property

public System.Diagnostics.Stopwatch m_StopWatch
Résultat System.Diagnostics.Stopwatch

m_SumFrames public_oe property

public int m_SumFrames
Résultat int