Home Reference Source Repository
import VertexShader from 'dh3dlib/js/base/VertexShader.js'
public class | source

VertexShader

VertexShader class

Constructor Summary

Public Constructor
public

constructor(gl: WebGLRenderingContext)

constructor

Method Summary

Public Methods
public

bindAttribute(programObject: *)

public

bindAttribute2(programObject: *)

public
public

getDynamicVertexData(dhObject: *)

public

getName(): *

public

getShader(): *

public

getVertexData(dhObject: *)

public
public

setLightData(light: *)

public

setMaterialData(material: *)

Public Constructors

public constructor(gl: WebGLRenderingContext) source

constructor

Params:

NameTypeAttributeDescription
gl WebGLRenderingContext

Public Methods

public bindAttribute(programObject: *) source

Params:

NameTypeAttributeDescription
programObject *

public bindAttribute2(programObject: *) source

Params:

NameTypeAttributeDescription
programObject *

public bufferDynamicVertexData(dhObject: *) source

Params:

NameTypeAttributeDescription
dhObject *

public getDynamicVertexData(dhObject: *) source

Params:

NameTypeAttributeDescription
dhObject *

public getName(): * source

Return:

*

public getShader(): * source

Return:

*

public getVertexData(dhObject: *) source

Params:

NameTypeAttributeDescription
dhObject *

public setAttribPointer() source

public setLightData(light: *) source

Params:

NameTypeAttributeDescription
light *

public setMaterialData(material: *) source

Params:

NameTypeAttributeDescription
material *