Skip to content

FaceRasterizer

Overview

Class FaceRasterizer

import { FaceRasterizer } from 'scenerystack/alpenglow';

Constructor

new FaceRasterizer( providedOptions : FaceRasterizerOptions )

Instance Methods

getCanvasContext( canvas : HTMLCanvasElement, colorSpace : 'srgb' | 'display-p3' ) : GPUCanvasContext

runRenderProgram( program : RenderProgram, providedRunOptions : StrictOmit<FaceRasterizerRunOptions, 'renderableFaces'>, rasterizeOptions? : RasterizationOptions ) : Promise<void>

run( providedOptions : FaceRasterizerRunOptions ) : Promise<void>

dispose()

Source Code

See the source for FaceRasterizer.ts in the alpenglow repository.