Constructor Summary
Public Constructor | ||
public |
constructor(gl: WebGLRenderingContext) constructor |
Member Summary
Public Members | ||
public get |
get shader name |
|
public get |
get shader program |
Method Summary
Public Methods | ||
public |
bindAttribute(programObject: WebGLProgram): void bind attributes to given program |
|
public |
get shader name |
|
public |
getShader(): WebGLShader get shader object |
|
public |
setLightData(light: Light): void set light object |
|
public |
setMaterialData(material: Material): void set material data |
Public Constructors
public constructor(gl: WebGLRenderingContext) source
constructor
Params:
Name | Type | Attribute | Description |
gl | WebGLRenderingContext |
Public Members
Public Methods
public bindAttribute(programObject: WebGLProgram): void source
bind attributes to given program
Params:
Name | Type | Attribute | Description |
programObject | WebGLProgram | program to bind attributes |
Return:
void |