Zia.BasicProgram Class

Base Class: Zia.Program

A basic rendering effect with support for lighting and a single texture.

Constructor

Name Description
BasicProgram

Constructs a new BasicProgram.


Constructor

new Zia.BasicProgram (graphicsDevice, options.lightingEnabled, options.perPixelLightingEnabled, options.textureEnabled, options.vertexColorEnabled) constructor

Defined in graphics/programs/BasicProgram.js:158

Constructs a new BasicProgram.

Parameters

Name Type Description
graphicsDevice Zia.GraphicsDevice

The graphics device.

options.lightingEnabled Boolean optional

Should lighting be enabled?

Defaults to false.
options.perPixelLightingEnabled Boolean optional

Should per-pixel (as opposed to per-vertex) lighting be enabled?.

Defaults to true.
options.textureEnabled Boolean optional

Should textures be enabled?

Defaults to false.
options.vertexColorEnabled Boolean optional

Will you be using vertices that contain a color component?

Defaults to false.