C# Class ShaderToy.ShaderToyFor

Mostrar archivo Open project: Patapom/GodComplex

Public Properties

Property Type Description
m_AverageFrameTime float
m_CurrentGameTime float
m_StartFPSTime float
m_StartGameTime float
m_StopWatch System.Diagnostics.Stopwatch
m_SumFrames int

Public Methods

Method 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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

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

Private Methods

Method 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 method

public Application_Idle ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

BuildPreciseF() public method

public BuildPreciseF ( ) : void
return void

BuildSurfaceRadianceIntegrals() public method

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
return void

Camera_CameraTransformChanged() public method

public Camera_CameraTransformChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

Dispose() protected method

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

GetGameTime() public method

Gets the current game time in seconds
public GetGameTime ( ) : float
return float

Image2Texture() public method

public Image2Texture ( System _FileName ) : Texture2D
_FileName System
return Texture2D

Image2Texture() public method

public Image2Texture ( int _Width, int _Height, PixelsBuffer _Content ) : Texture2D
_Width int
_Height int
_Content PixelsBuffer
return Texture2D

Image2Texture() public method

public Image2Texture ( int _Width, int _Height, byte _Content ) : Texture2D
_Width int
_Height int
_Content byte
return Texture2D

OnFormClosed() protected method

protected OnFormClosed ( FormClosedEventArgs e ) : void
e FormClosedEventArgs
return void

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e EventArgs
return void

ShaderToyFor() public method

public ShaderToyFor ( ) : System
return System

Property Details

m_AverageFrameTime public_oe property

public float m_AverageFrameTime
return float

m_CurrentGameTime public_oe property

public float m_CurrentGameTime
return float

m_StartFPSTime public_oe property

public float m_StartFPSTime
return float

m_StartGameTime public_oe property

public float m_StartGameTime
return float

m_StopWatch public_oe property

public System.Diagnostics.Stopwatch m_StopWatch
return System.Diagnostics.Stopwatch

m_SumFrames public_oe property

public int m_SumFrames
return int