Files
src/miniquake/render/special_paths.ml
- Package
miniquake.render.special_paths- Reachable
- Yes
Imports
Declarations
# clearPlan
function clearPlan(mirrorAlpha, clearColor, zTrick, trickFrame)
Update module state for plan.
| Parameter | Type | Default | Description |
|---|
mirrorAlpha | dynamic | — | The mirror alpha input consumed by `clearPlan`. |
clearColor | dynamic | — | The clear color input consumed by `clearPlan`. |
zTrick | dynamic | — | The z trick input consumed by `clearPlan`. |
trickFrame | dynamic | — | The trick frame input consumed by `clearPlan`. |
View source
# directionAngles
function directionAngles(direction, sourceRoll)
Return direction angles derived from the active module state.
| Parameter | Type | Default | Description |
|---|
direction | dynamic | — | The direction input consumed by `directionAngles`. |
sourceRoll | dynamic | — | The source roll input consumed by `directionAngles`. |
View source
# ENVMAP_FACES
const ENVMAP_FACES = 6
Defines the envmap faces value used by `miniquake.render.special_paths`.
View source
# ENVMAP_SIZE
const ENVMAP_SIZE = 256
Defines the envmap size value used by `miniquake.render.special_paths`.
View source
# envmapByteCount
function envmapByteCount()
Return envmap byte count derived from the active module state.
View source
# envmapDirections
function envmapDirections()
Implements the `envmapDirections` operation for `miniquake.render.special_paths` (envmap directions).
View source
# envmapFileName
function envmapFileName(index)
Return envmap file name derived from the active module state.
| Parameter | Type | Default | Description |
|---|
index | dynamic | — | Zero-based index of the requested entry. |
View source
# f32
function f32(value)
Read an IEEE-754 single-precision value from the byte buffer.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed by `f32`. |
View source
# findMirrorTexture
function findMirrorTexture(textures)
Return mirror texture.
| Parameter | Type | Default | Description |
|---|
textures | dynamic | — | The textures input consumed by `findMirrorTexture`. |
View source
# MIRROR_TEXTURE_PREFIX
const MIRROR_TEXTURE_PREFIX = "window02_1"
Defines the mirror texture prefix value used by `miniquake.render.special_paths`.
View source
# mirrorDistance
function mirrorDistance(point, normal, distance)
Implements the `mirrorDistance` operation for `miniquake.render.special_paths` (mirror distance).
| Parameter | Type | Default | Description |
|---|
point | dynamic | — | The point input consumed by `mirrorDistance`. |
normal | dynamic | — | The normal input consumed by `mirrorDistance`. |
distance | dynamic | — | The distance input consumed by `mirrorDistance`. |
View source
# mirrorProjectionScale
function mirrorProjectionScale(plane)
Implements the `mirrorProjectionScale` operation for `miniquake.render.special_paths` (mirror projection scale).
| Parameter | Type | Default | Description |
|---|
plane | dynamic | — | The plane input consumed by `mirrorProjectionScale`. |
View source
# mirrorTextureName
function mirrorTextureName(name)
Return mirror texture name derived from the active module state.
| Parameter | Type | Default | Description |
|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
View source
# reflectPoint
function reflectPoint(point, normal, distance)
Implements the `reflectPoint` operation for `miniquake.render.special_paths` (reflect point).
| Parameter | Type | Default | Description |
|---|
point | dynamic | — | The point input consumed by `reflectPoint`. |
normal | dynamic | — | The normal input consumed by `reflectPoint`. |
distance | dynamic | — | The distance input consumed by `reflectPoint`. |
View source
# reflectVector
function reflectVector(direction, normal)
Return reflect vector derived from the active module state.
| Parameter | Type | Default | Description |
|---|
direction | dynamic | — | The direction input consumed by `reflectVector`. |
normal | dynamic | — | The normal input consumed by `reflectVector`. |
View source
# reflectView
function reflectView(origin, angles, plane)
Implements the `reflectView` operation for `miniquake.render.special_paths` (reflect view).
| Parameter | Type | Default | Description |
|---|
origin | dynamic | — | World-space origin of the operation. |
angles | dynamic | — | Orientation angles used by the operation. |
plane | dynamic | — | The plane input consumed by `reflectView`. |
View source
# specialRenderStageOrder
function specialRenderStageOrder()
Implements the `specialRenderStageOrder` operation for `miniquake.render.special_paths` (special render stage order).
View source
# TIMEREFRESH_STEPS
const TIMEREFRESH_STEPS = 128
Defines the timerefresh steps value used by `miniquake.render.special_paths`.
View source
# timeRefreshAngles
function timeRefreshAngles(sourceAngles)
Return time refresh angles derived from the active module state.
| Parameter | Type | Default | Description |
|---|
sourceAngles | dynamic | — | The source angles input consumed by `timeRefreshAngles`. |
View source
# timeRefreshResult
function timeRefreshResult(seconds)
Implements the `timeRefreshResult` operation for `miniquake.render.special_paths` (time refresh result).
| Parameter | Type | Default | Description |
|---|
seconds | dynamic | — | The seconds input consumed by `timeRefreshResult`. |
View source
# timeRefreshYaw
function timeRefreshYaw(index)
Implements the `timeRefreshYaw` operation for `miniquake.render.special_paths` (time refresh yaw).
| Parameter | Type | Default | Description |
|---|
index | dynamic | — | Zero-based index of the requested entry. |
View source