Skip to content

RenderableFace

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/alpenglow/blob/main/js/raster/RenderableFace.ts for the most up-to-date information.

Overview

Represents a face with a RenderProgram/bounds, that can potentially be split into multiples, or optimized

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class RenderableFace

import { RenderableFace } from 'scenerystack/alpenglow';

Constructor

new RenderableFace( face : ClippableFace, renderProgram : RenderProgram, bounds : Bounds2 )

Instance Methods

split() : RenderableFace[]

TODO: FIND A BETTER STRATEGY rather than multiple full iteration for every RenderProgram that gets split!!!!

Source Code

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