const RawTexture: LiveComponent<RawTextureProps>
Use numeric texture data as a 2D texture.
DataTexture
Texture data
number | boolean
MIPs
GPUSamplerDescriptor
Texture sampler
boolean
Resample data every animation frame
boolean
Sample in absolute pixels instead of relative UVs
boolean
Convert RGBA to premultiplied alpha before upload
( source: TextureSource, ) => LiveElement
Leave empty to yeet source(s) instead.
packages / workbench / src / data / raw-texture.ts