Skip to content

Class: DefaultTextureFragmentShader

DefaultFragmentShader is the shader loaded for handling the "default_fragment" shader choice, used as the default shader and expected to be loaded.

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

+ new DefaultTextureFragmentShader(): DefaultTextureFragmentShader

Returns: DefaultTextureFragmentShader

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