📖 INDEX
LOADING ENGINE...
RawShaderMaterial
THREE.JS REFERENCE // rawshadermaterial
Custom shader material that does not append built-in uniforms/attributes.
Syntax
const material = new THREE.RawShaderMaterial({ vertexShader: vShader, fragmentShader: fShader });Examples
Example 01Basic Usage
const material = new THREE.RawShaderMaterial({ vertexShader: vShader, fragmentShader: fShader });Best Practices
- Consult the official Three.js documentation for deeper understanding.
- Be mindful of performance when creating many objects or geometries.