Skip to content

Threepp.ShaderMaterial

Shader material

A material that uses custom GLSL shaders.

Members

Constructors

Properties


ShaderMaterial

Constructor

Description

Constructor


type

Property \ Access: r/w

Description

"ShaderMaterial" (read-only)


vertexShader

Property \ Access: r/w

Description

Vertex shader code


fragmentShader

Property \ Access: r/w

Description

Fragment shader code


uniformsNeedUpdate

Property \ Access: r/w

Description

Whether the uniforms need to be updated


wireframe

Property \ Access: r/w

Description

Renders as wireframe


wireframeLinewidth

Property \ Access: r/w

Description

Wireframe line width


lights

Property \ Access: r/w

Description

Whether to use lighting


clipping

Property \ Access: r/w

Description

Whether to use clipping