Capítulo 89 de 859

Chapter 89: RawShaderMaterial

Core Idea

This class works just like ShaderMaterial, except that definitions of built-in uniforms and attributes are not automatically prepended to the GLSL shader code.

RawShaderMaterial can only be used with WebGLRenderer.

Key Concepts

  • isRawShaderMaterial : boolean (readonly): This flag can be used for type testing.

Reference Tables

Constructor

Signature
new RawShaderMaterial( parameters : Object )

Properties

PropertyDescription
.isRawShaderMaterial : boolean (readonly)This flag can be used for type testing.

Key Takeaways

  1. RawShaderMaterial extends: EventDispatcher → Material → ShaderMaterial
  2. Most relevant properties: isRawShaderMaterial.

Connects To