AutoMovie API
    Preparing search index...

    Variable applyDetailNormalConst

    applyDetailNormal: (
        material: THREE.MeshPhysicalMaterial,
        texture: THREE.Texture,
        scale: number,
    ) => void = ...

    Blend a second tangent-space normal map over a material's normal map: the detail map is sampled over the first UV set through its own texture transform, its slopes scaled by scale, and the two combined by whiteout blending, normalize(vec3(n1.xy + n2.xy, n1.z * n2.z)), so a fine relief tiled over a coarser one keeps both. The material must already carry a tangent-space normalMap.

    Type Declaration

      • (
            material: THREE.MeshPhysicalMaterial,
            texture: THREE.Texture,
            scale: number,
        ): void
      • Parameters

        • material: THREE.MeshPhysicalMaterial
        • texture: THREE.Texture
        • scale: number

        Returns void