C# Class Sample.Shader

Generates shaders at runtime based on parameters.
ファイルを表示 Open project: TomCrypto/AntTweakBar.NET

Public Methods

Method Description
FragShader ( Polynomial poly, ShadingType type, AAQuality aa, bool hardcodePoly, int iterations, float threshold ) : String

Gets the fragment shader.

VertShader ( ) : String

Gets the fullscreen vertex shader.

Private Methods

Method Description
FragArithmetic ( ) : String
FragColorize ( ShadingType type ) : String
FragIterate ( int iterations, float threshold ) : String
FragMainSampler ( AAQuality aa ) : String
FragPolyRoots ( Polynomial poly, String name, bool hardcode = true ) : String
FragShade ( int iterations ) : String
WriteToFile ( String path, String shader ) : void

Method Details

FragShader() public static method

Gets the fragment shader.
public static FragShader ( Polynomial poly, ShadingType type, AAQuality aa, bool hardcodePoly, int iterations, float threshold ) : String
poly Polynomial
type ShadingType
aa AAQuality
hardcodePoly bool
iterations int
threshold float
return String

VertShader() public static method

Gets the fullscreen vertex shader.
public static VertShader ( ) : String
return String