Skip to content

RenderAlpha

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/render-program/RenderAlpha.ts for the most up-to-date information.

Overview

RenderProgram for alpha (an opacity) applied to a RenderProgram

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

Class RenderAlpha

import { RenderAlpha } from 'scenerystack/alpenglow';

Constructor

new RenderAlpha( program : RenderProgram, alpha : number )

Instance Methods

getName() : string

withChildren( children : RenderProgram[] ) : RenderAlpha

equalsTyped( other : this ) : boolean

(protected)

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

(protected)

evaluate( context : RenderEvaluationContext ) : Vector4

writeInstructions( instructions : RenderInstruction[] )

getExtraDebugString() : string

(protected)

serialize() : SerializedRenderAlpha

Type SerializedRenderAlpha

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

Source Code

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