Skip to main content

Class: SimulatorDepthMaterial

Defined in: src/simulator/SimulatorDepthMaterial.ts:3

Extends

Constructors

Constructor

new SimulatorDepthMaterial(parameters?): SimulatorDepthMaterial

Defined in: node_modules/@types/three/src/materials/MeshBasicMaterial.d.ts:163

Constructs a new mesh basic material.

Parameters

parameters?

MeshBasicMaterialParameters

An object with one or more properties defining the material's appearance. Any property of the material (including any property from inherited materials) can be passed in here. Color values can be passed any type of value accepted by Color#set.

Returns

SimulatorDepthMaterial

Inherited from

THREE.MeshBasicMaterial.constructor

Methods

onBeforeCompile()

onBeforeCompile(shader): void

Defined in: src/simulator/SimulatorDepthMaterial.ts:4

An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials.

This method can only be used when rendering with WebGLRenderer. The recommended approach when customizing materials is to use WebGPURenderer with the new Node Material system and [TSL]https://github.com/mrdoob/three.js/wiki/Three.js-Shading-Language.

Parameters

shader
fragmentShader

string

uniforms

object

vertexShader

string

Returns

void

Overrides

THREE.MeshBasicMaterial.onBeforeCompile