Shader
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
id: * |
|
public get |
isValid: * |
|
public |
shaderModule: * |
|
public get |
uniforms: * |
Private Members | ||
private |
_cgp: * |
|
private |
_compileReason: string |
|
private |
_isValid: boolean |
|
private |
_log: * |
|
private |
_name: * |
|
private |
_needsRecompile: boolean |
|
private |
_src: string |
|
private |
_uniforms: *[] |
Method Summary
Public Methods | ||
public |
addUniform(type: String, name: String, valueOrPort: any, p2: *, p3: *, p4: *): Uniform add a uniform to all shader programs |
|
public |
addUniformFrag(type: String, name: String, valueOrPort: any, p2: *, p3: *, p4: *): Uniform add a uniform to the fragment shader |
|
public |
addUniformVert(type: String, name: String, valueOrPort: any, p2: *, p3: *, p4: *): Uniform add a uniform to the vertex shader |
|
public |
bind() |
|
public |
compile() |
|
public |
error(e: *) |
|
public |
getName(): * |
|
public |
setSource(src: *) |
|
public |
setWhyCompile(why: *) |
Private Methods | ||
private |
_addUniform(uni: *) |
Public Constructors
public constructor() source
Public Members
public id: * source
public get isValid: * source
public shaderModule: * source
public get uniforms: * source
Private Members
private _cgp: * source
private _compileReason: string source
private _isValid: boolean source
private _log: * source
private _name: * source
private _needsRecompile: boolean source
private _src: string source
private _uniforms: *[] source
Public Methods
public addUniform(type: String, name: String, valueOrPort: any, p2: *, p3: *, p4: *): Uniform source
add a uniform to all shader programs
Params:
Name | Type | Attribute | Description |
type | String | ['f','t', etc] |
|
name | String | ||
valueOrPort | any | value or port |
|
p2 | * | ||
p3 | * | ||
p4 | * |
public addUniformFrag(type: String, name: String, valueOrPort: any, p2: *, p3: *, p4: *): Uniform source
add a uniform to the fragment shader
Params:
Name | Type | Attribute | Description |
type | String | ['f','t', etc] |
|
name | String | ||
valueOrPort | any | value or port |
|
p2 | * | ||
p3 | * | ||
p4 | * |
public addUniformVert(type: String, name: String, valueOrPort: any, p2: *, p3: *, p4: *): Uniform source
add a uniform to the vertex shader
Params:
Name | Type | Attribute | Description |
type | String | ['f','t', etc] |
|
name | String | ||
valueOrPort | any | value or port |
|
p2 | * | ||
p3 | * | ||
p4 | * |
public bind() source
public compile() source
public error(e: *) source
Params:
Name | Type | Attribute | Description |
e | * |
public setSource(src: *) source
Params:
Name | Type | Attribute | Description |
src | * |
public setWhyCompile(why: *) source
Params:
Name | Type | Attribute | Description |
why | * |
Private Methods
private _addUniform(uni: *) source
Params:
Name | Type | Attribute | Description |
uni | * |