@pmndrs/reflections
    Preparing search index...

    Class StripSpecularIBLPlugin

    Removes PBR's specular IBL from the lit colour and writes its extra factors (see the file header).

    Hierarchy

    • MaterialPluginBase
      • StripSpecularIBLPlugin
    Index
    Name: "ReflectionsStripSpecularIBL" = 'ReflectionsStripSpecularIBL'
    • get active(): boolean

      Off: the material renders Babylon's own specular IBL again and writes velocity.z = 0 (a define, so the material recompiles; Babylon's _enable(false) does not deactivate a plugin).

      Returns boolean

    • set active(on: boolean): void

      Parameters

      • on: boolean

      Returns void

    • Gets the current class name useful for serialization or dynamic coding.

      Returns string

      The class name.

    • Returns a list of custom shader code fragments to customize the shader.

      Parameters

      • shaderType: string
      • OptionalshaderLanguage: ShaderLanguage

      Returns
          | {
              "!fragData\\[PREPASS_VELOCITY_LINEAR_INDEX\\]=vec4f\\(velocity,0\\.0,writeGeometryInfo\\);": string;
              CUSTOM_FRAGMENT_BEFORE_FINALCOLORCOMPOSITION: string;
          }
          | {
              "!WRITE_GEOMETRY_FRAGMENT_OUTPUT\\(PREPASS_VELOCITY_LINEAR_INDEX,vec4\\(velocity,0\\.0,writeGeometryInfo\\)\\)": string;
              CUSTOM_FRAGMENT_BEFORE_FINALCOLORCOMPOSITION: string;
          }
          | null

      null if no code to be added, or a list of pointName => code. Note that pointName can also be a regular expression if it starts with a !. In that case, the string found by the regular expression (if any) will be replaced by the code provided.

    • Gets a boolean indicating that the plugin is compatible with a given shader language.

      Parameters

      • shaderLanguage: ShaderLanguage

        The shader language to use.

      Returns boolean

      true if the plugin is compatible with the shader language

    • Sets the defines for the next rendering

      Parameters

      • defines: MaterialDefines

      Returns void