Constructors
constructor
new PassProgram( _gl: WebGLRenderingContext , _vsSource: string , _fsSource: string , _macros?: object ) : PassProgram
Parameters
_gl: WebGLRenderingContext
_vsSource: string
_fsSource: string
Default value _macros: object = {}
Accessors
fragmentShader
get fragmentShader( ) : string
set fragmentShader( source: string ) : void
Returns string
[description]
Parameters
Returns void
[description]
macros
get macros( ) : object
set macros( val: object ) : void
Returns object
[description]
Parameters
Returns void
[description]
vertexShader
get vertexShader( ) : string
set vertexShader( source: string ) : void
Returns string
Parameters
Returns void
Methods
setMacro
setMacro( macroName: string , value?: string | boolean ) : void
Parameters
macroName: string
Optional value: string | boolean
Returns void
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
Container of shader program used for Pass. Pass needs to care which geometry will be drawn by a material. (For determining what macro should be appended to shader by attribute variable exisiting)