Base Class: Zia.Program
A basic rendering effect with support for lighting and a single texture.
Name | Description |
---|---|
BasicProgram
|
Constructs a new |
new Zia.BasicProgram
(graphicsDevice, options.lightingEnabled, options.perPixelLightingEnabled, options.textureEnabled, options.vertexColorEnabled)
constructor
Constructs a new BasicProgram
.
Name | Type | Description |
---|---|---|
graphicsDevice |
Zia.GraphicsDevice |
The graphics device. |
options.lightingEnabled |
Boolean |
optional
Should lighting be enabled? Defaults tofalse .
|
options.perPixelLightingEnabled |
Boolean |
optional
Should per-pixel (as opposed to per-vertex) lighting be enabled?. Defaults totrue .
|
options.textureEnabled |
Boolean |
optional
Should textures be enabled? Defaults tofalse .
|
options.vertexColorEnabled |
Boolean |
optional
Will you be using vertices that contain a color component? Defaults tofalse .
|