Provides miniquake2 renderer classic scene facilities for this project.
# addSprite
function addSprite(scene, model, entity, cameraUp, cameraRight)
Add sprite.
| Parameter | Type | Default | Description |
|---|
scene | dynamic | — | scene value consumed by this operation. |
model | dynamic | — | model value consumed by this operation. |
entity | dynamic | — | entity value consumed by this operation. |
cameraUp | dynamic | — | cameraUp value consumed by this operation. |
cameraRight | dynamic | — | cameraRight value consumed by this operation. |
View source
# addToTextureChain
function addToTextureChain(chains, surface)
Add to texture chain.
| Parameter | Type | Default | Description |
|---|
chains | dynamic | — | chains value consumed by this operation. |
surface | dynamic | — | surface value consumed by this operation. |
View source
# prepareMap
function prepareMap(map, images, entityFrame, lightStyles, dLights, modulate)
Prepare map.
| Parameter | Type | Default | Description |
|---|
map | dynamic | — | map value consumed by this operation. |
images | dynamic | — | images value consumed by this operation. |
entityFrame | dynamic | — | entityFrame value consumed by this operation. |
lightStyles | dynamic | — | lightStyles value consumed by this operation. |
dLights | dynamic | — | dLights value consumed by this operation. |
modulate | dynamic | — | modulate value consumed by this operation. |
View source