StarFieldProgram

StarFieldProgram is a GLSL program that draws points representing stars.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Indicates the approximate size of the OpenGL resources referenced by this GPU program.

Functions

Link copied to clipboard
fun loadMagnitudeRange(minMag: Float, maxMag: Float)

Loads the specified numbers as the value of this program's 'magnitudeRange' uniform variable.

Link copied to clipboard

Loads the specified matrix as the value of this program's 'mvpMatrix' uniform variable.

Link copied to clipboard
fun loadNumDays(numDays: Float)

Loads the specified number as the value of this program's 'numDays' uniform variable.

Link copied to clipboard

Loads the specified boolean as the value of this program's 'textureEnabledLocation' uniform variable.

Link copied to clipboard
fun loadTextureUnit(unit: Int)

Loads the specified number as the value of this program's 'textureSampler' uniform variable.

Link copied to clipboard
open override fun release(dc: DrawContext)

Frees any resources associated with this instance. After this method returns the rendering resource is invalid, and any associated GL object is deleted.

Link copied to clipboard