Skip to content

Class: DefaultPrimitiveVertexShader

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

+ new DefaultPrimitiveVertexShader(): DefaultPrimitiveVertexShader

Returns: DefaultPrimitiveVertexShader

Inherited from: GLSLShader

Properties

perRenderable

Optional perRenderable: undefined | (context: GLSLContext, renderable: IRenderable, texture?: WebGLTexture) => void

Hook for injecting variables for the GLSL shader at the per renderable stage of the rendering process, runs once per renderable used, should inject variables for renderable specific variables.

Inherited from: GLSLShader.perRenderable


perShader

Optional perShader: undefined | (context: GLSLContext) => void

Hook for injecting variables for the GLSL shader at the per shader stage of the rendering process, runs once per program (grouping of shaders) used, should inject variables for shader specific, but not texture or renderable specific variables.

Inherited from: GLSLShader.perShader


perTexture

Optional perTexture: undefined | (context: GLSLContext, texture: WebGLTexture) => void

Hook for injecting variables for the GLSL shader at the per texture stage of the rendering process, runs once per texture used, should inject variables for texture specific, but not renderable specific variables.

Inherited from: GLSLShader.perTexture


source

source: string

GLSL source code.

Inherited from: GLSLShader.source


type

type: string

Shader type, vertex or fragment.

Inherited from: GLSLShader.type