Skip to content

RenderPathBoolean

Overview

RenderPathBoolean will display one RenderProgram "inside" the path, and another RenderProgram "outside" the path.

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

Class RenderPathBoolean

import { RenderPathBoolean } from 'scenerystack/alpenglow';

Constructor

new RenderPathBoolean( path : RenderPath, inside : RenderProgram, outside : RenderProgram )

Instance Methods

getName() : string

withChildren( children : RenderProgram[] ) : RenderPathBoolean

transformed( transform : Matrix3 ) : RenderProgram

equalsTyped( other : this ) : boolean

(protected)

isOneSided() : boolean

getOneSide() : RenderProgram

withOneSide( program : RenderProgram ) : RenderProgram

getSimplified( children : RenderProgram[] ) : RenderProgram | null

(protected)

evaluate( context : RenderEvaluationContext ) : Vector4

getExtraDebugString() : string

(protected)

serialize() : SerializedRenderPathBoolean

Static Methods

deserialize( obj : SerializedRenderPathBoolean ) : RenderPathBoolean

fromInside( path : RenderPath, inside : RenderProgram ) : RenderPathBoolean

Type SerializedRenderPathBoolean

import type { SerializedRenderPathBoolean } from 'scenerystack/alpenglow';

Source Code

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