Surface props
Optionalcolor?: stringOptionalcolorRamp?: numberOptionalcontoursColor?: stringOptionalcontoursColorMode?: ContourColorModeOptionalcontoursColorModeFactor?: numberOptionalcontoursInterval?: numberOptionalcontoursThickness?: numberOptionaldebug?: booleanOptionaldoubleSide?: booleanOptionalmaxError?: numberOptionalnormalMap?: TextureOptionalnormalScale?: Vec2Optionalopacity?: numberOptionalprecomputeNormals?: booleanPrecompute the surface normals into a compact texture instead of deriving
them per-fragment from the elevation map. This skips the normal recompute
the shader otherwise repeats across the order-independent transparency
passes, at the cost of a little extra texture memory. Defaults to false.
Optionalpriority?: numberOptionalrampMax?: numberOptionalrampMin?: numberOptionalreverseRamp?: booleanOptionalshowContours?: booleanOptionaluseColorRamp?: booleanOptionalwireframe?: boolean
This component renderes a TIN model from an elevation map, according to the
SurfaceMetaandSurfaveValuesdata types.It has several customization options for rendering the surfaces, including color ramps, contour lines and transparency.
Surface values are expected to be in a regular grid. An optimized triangulation is used for the geometry, but color ramp values and contour lines are always using the full resolution of the data for accuracy.