Skip to content

RenderAlpha

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

Static Methods

deserialize( obj : SerializedRenderAlpha ) : RenderAlpha

Type SerializedRenderAlpha

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

Source Code

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