Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
id: * |
Private Members | ||
private |
_defines: *[] |
|
private |
_isValid: boolean |
|
private |
_needsRecompile: boolean |
Method Summary
Public Methods | ||
public |
define(name: String, value: Any) add a define to a shader, e.g. |
|
public |
getDefine(name: *): * |
|
public |
getDefines(): * |
|
public |
hasDefine(name: String): Boolean return true if shader has define |
|
public |
removeDefine(name: name) remove a define from a shader |
|
public |
toggleDefine(name: name, enabled: any) easily enable/disable a define without a value |
Public Constructors
public constructor() source
Public Members
public id: * source
Private Members
private _defines: *[] source
private _isValid: boolean source
private _needsRecompile: boolean source
Public Methods
public define(name: String, value: Any) source
add a define to a shader, e.g. #define DO_THIS_THAT 1
Params:
Name | Type | Attribute | Description |
name | String | ||
value | Any | (can be empty) |
public hasDefine(name: String): Boolean source
return true if shader has define
Params:
Name | Type | Attribute | Description |
name | String |
Return:
Boolean |