C# 클래스 Sample.Shader

Generates shaders at runtime based on parameters.
파일 보기 프로젝트 열기: TomCrypto/AntTweakBar.NET

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

FragShader() 공개 정적인 메소드

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
리턴 String

VertShader() 공개 정적인 메소드

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