@pmndrs/reflections
    Preparing search index...

    Class ProbeIrradiancePlugin

    Feeds a PBR material's diffuse IBL from a probe set (see the file header).

    Hierarchy

    • MaterialPluginBase
      • ProbeIrradiancePlugin
    Index
    Name: "ReflectionsProbeIrradiance" = 'ReflectionsProbeIrradiance'
    • 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
          | {
              "!#ifdef REFLECTION\\s+var finalIrradiance: vec3f=reflectionOut\\.environmentIrradiance;": string;
              CUSTOM_FRAGMENT_BEFORE_FINALCOLORCOMPOSITION: string;
              CUSTOM_FRAGMENT_DEFINITIONS: 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 the samplers used by the plugin.

      Parameters

      • samplers: string[]

      Returns void

    • Binds the material data (this function is called even if mustRebind() returns false)

      Parameters

      • _ubo: UniformBuffer
      • _scene: Scene

        defines the scene the material belongs to.

      • engine: AbstractEngine
      • subMesh: SubMesh

      Returns void

    • 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