MiniQuake

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.

ParameterTypeDefaultDescription
mirrorAlphadynamic—The mirror alpha input consumed by `clearPlan`.
clearColordynamic—The clear color input consumed by `clearPlan`.
zTrickdynamic—The z trick input consumed by `clearPlan`.
trickFramedynamic—The trick frame input consumed by `clearPlan`.

View source

directionAngles

function directionAngles(direction, sourceRoll)

Return direction angles derived from the active module state.

ParameterTypeDefaultDescription
directiondynamic—The direction input consumed by `directionAngles`.
sourceRolldynamic—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.

ParameterTypeDefaultDescription
indexdynamic—Zero-based index of the requested entry.

View source

f32

function f32(value)

Read an IEEE-754 single-precision value from the byte buffer.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `f32`.

View source

findMirrorTexture

function findMirrorTexture(textures)

Return mirror texture.

ParameterTypeDefaultDescription
texturesdynamic—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).

ParameterTypeDefaultDescription
pointdynamic—The point input consumed by `mirrorDistance`.
normaldynamic—The normal input consumed by `mirrorDistance`.
distancedynamic—The distance input consumed by `mirrorDistance`.

View source

mirrorProjectionScale

function mirrorProjectionScale(plane)

Implements the `mirrorProjectionScale` operation for `miniquake.render.special_paths` (mirror projection scale).

ParameterTypeDefaultDescription
planedynamic—The plane input consumed by `mirrorProjectionScale`.

View source

mirrorTextureName

function mirrorTextureName(name)

Return mirror texture name derived from the active module state.

ParameterTypeDefaultDescription
namedynamic—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).

ParameterTypeDefaultDescription
pointdynamic—The point input consumed by `reflectPoint`.
normaldynamic—The normal input consumed by `reflectPoint`.
distancedynamic—The distance input consumed by `reflectPoint`.

View source

reflectVector

function reflectVector(direction, normal)

Return reflect vector derived from the active module state.

ParameterTypeDefaultDescription
directiondynamic—The direction input consumed by `reflectVector`.
normaldynamic—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).

ParameterTypeDefaultDescription
origindynamic—World-space origin of the operation.
anglesdynamic—Orientation angles used by the operation.
planedynamic—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.

ParameterTypeDefaultDescription
sourceAnglesdynamic—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).

ParameterTypeDefaultDescription
secondsdynamic—The seconds input consumed by `timeRefreshResult`.

View source

timeRefreshYaw

function timeRefreshYaw(index)

Implements the `timeRefreshYaw` operation for `miniquake.render.special_paths` (time refresh yaw).

ParameterTypeDefaultDescription
indexdynamic—Zero-based index of the requested entry.

View source