@equinor/videx-3d
Preparing search index...
sdk
createPackedNormalTexture
Function createPackedNormalTexture
createPackedNormalTexture
(
buffer
:
Uint8Array
,
width
:
number
,
height
:
number
,
)
:
DataTexture
Create an RG8 data texture from a buffer produced by
computeSurfaceNormalsRG
.
Parameters
buffer
:
Uint8Array
width
:
number
height
:
number
Returns
DataTexture
Settings
Theme
OS
Light
Dark
@equinor/videx-3d
Loading...
Create an RG8 data texture from a buffer produced by computeSurfaceNormalsRG.