Interface ParallaxOcclusionProps
interface ParallaxOcclusionProps {
heightCenter?: number;
heightChannel?: "r" | "g" | "b" | "a";
heightScale?: number;
heightTexture: Texture2D;
maxSteps?: number;
minSteps?: number;
refinementSteps?: number;
}
heightCenter?: number;
heightChannel?: "r" | "g" | "b" | "a";
heightScale?: number;
heightTexture: Texture2D;
maxSteps?: number;
minSteps?: number;
refinementSteps?: number;
}
Index
Properties
Optional Readonlyheight Center
heightCenter?: number
Placement of the height range: 0 below the mesh, 1 above it. Default 0.
Optional Readonlyheight Channel
heightChannel?: "r" | "g" | "b" | "a"
Channel containing height, clamped to [0, 1]. Default "r".
Optional Readonlyheight Scale
heightScale?: number
World-space height range. Default 0.05; zero disables displacement.
Readonlyheight Texture
Filterable height texture. Use a linear format for RGB height channels.
Optional Readonlymax Steps
maxSteps?: number
Coarse-step budget at grazing incidence. Integer [minSteps, 64]. Default 32.
Optional Readonlymin Steps
minSteps?: number
Coarse-step budget at normal incidence; fewer steps are taken when the ray crosses fewer height texels. Integer [1, 64]. Default 8.
Optional Readonlyrefinement Steps
refinementSteps?: number
Maximum subdivisions of the first contact interval, reached by bisection and stopped once it spans one pixel. Integer [1, 32]. Default 8.
Independently implemented contact-refinement parallax occlusion mapping. Displaces surface texture coordinates, not mesh geometry or fragment depth.