C# Класс ShaderToy.ShaderToyFor

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
m_AverageFrameTime float
m_CurrentGameTime float
m_StartFPSTime float
m_StartGameTime float
m_StopWatch System.Diagnostics.Stopwatch
m_SumFrames int

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

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

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

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

Clean up any resources being used.

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

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

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

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

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

public Application_Idle ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void

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

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

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

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

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

public Camera_CameraTransformChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void

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

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

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

Gets the current game time in seconds
public GetGameTime ( ) : float
Результат float

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

public Image2Texture ( System _FileName ) : Texture2D
_FileName System
Результат Texture2D

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

public Image2Texture ( int _Width, int _Height, PixelsBuffer _Content ) : Texture2D
_Width int
_Height int
_Content PixelsBuffer
Результат Texture2D

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

public Image2Texture ( int _Width, int _Height, byte _Content ) : Texture2D
_Width int
_Height int
_Content byte
Результат Texture2D

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

protected OnFormClosed ( FormClosedEventArgs e ) : void
e FormClosedEventArgs
Результат void

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

protected OnLoad ( EventArgs e ) : void
e EventArgs
Результат void

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

public ShaderToyFor ( ) : System
Результат System

Описание свойств

m_AverageFrameTime публичное свойство

public float m_AverageFrameTime
Результат float

m_CurrentGameTime публичное свойство

public float m_CurrentGameTime
Результат float

m_StartFPSTime публичное свойство

public float m_StartFPSTime
Результат float

m_StartGameTime публичное свойство

public float m_StartGameTime
Результат float

m_StopWatch публичное свойство

public System.Diagnostics.Stopwatch m_StopWatch
Результат System.Diagnostics.Stopwatch

m_SumFrames публичное свойство

public int m_SumFrames
Результат int