Skip to main content

shadow-cpu-h

source

Types


shadow-control

shadow-control: basicsource
Fields
type: type
settings: shadow-settings
Methods
clear-offset-bit(obj: shadow-control) => intsource

Clear a bit in w for the center of the shadow.

set-offset-bit(obj: shadow-control) => intsource

Set a bit in w for the center position of the shadow

set-top-plane-offset(obj: shadow-control, arg0: float) => intsource
set-bottom-plane-offset(obj: shadow-control, arg0: float) => intsource
unused-13: unknown
update-direction-from-time-of-day(obj: shadow-control) => nonesource
collide-to-find-planes(obj: shadow-control, arg0: vector, arg1: float, arg2: float, arg3: float) => nonesource

shadow-data

shadow-data: structuresource
Fields
texoffset: vector
texscale: vector
clrs: vector
dma-unpack-template: dma-packet
dma-cnt: dma-tag
vif-nop: vif-tag
vif-unpack-v4-8: vif-tag
pdc: basic
dist: float
oddeven: uint8
waits: uint32

shadow-edge

shadow-edge: structuresource
Fields
ind-0: uint8
ind-1: uint8
tri-0: uint8
tri-1: uint8

shadow-geo

shadow-geo: art-elementsource
Fields
type: type
name: string
length: int32
extra: res-lump
pad: uint8
total-size: uint32
header: shadow-header
rest: uint64

shadow-header

shadow-header: structuresource
Fields
qwc-data: uint32
num-joints: uint32
num-verts: uint16
num-twos: uint16
num-single-tris: uint16
num-single-edges: uint16
num-double-tris: uint16
num-double-edges: uint16
ofs-verts: uint32
ofs-refs: uint32
ofs-single-tris: uint32
ofs-single-edges: uint32
ofs-double-tris: uint32
ofs-double-edges: uint32

shadow-matrix-ref

shadow-matrix-ref: structuresource
Fields
joint-0: uint8
joint-1: uint8

shadow-queue

shadow-queue: structuresource
Fields
num-runs: uint32
cur-run: uint32
run: shadow-run

shadow-run

shadow-run: structuresource
Fields
first: dma-packet
next: pointer

shadow-settings

shadow-settings: structuresource
Fields
center: vector
flags: shadow-flags
shadow-dir: vector
dist-to-locus: float
bot-plane: plane
top-plane: plane
fade-dist: float
fade-start: float
dummy-2: int32
dummy-3: int32
fade-vec: vector

shadow-tri

shadow-tri: structuresource
Fields
ind-0: uint8
ind-1: uint8
ind-2: uint8
faces: uint8

shadow-vertex

shadow-vertex: structuresource
Fields
x: float
y: float
z: float
weight: float

shadow-work

shadow-work: structuresource
Fields
shadow-data: shadow-data
inbuf: uint128

Functions


shadow-queue-append

shadow-queue-append(arg0: shadow-queue) => uintsource

Increment the run counter

shadow-queue-reset

shadow-queue-reset(arg0: shadow-queue) => intsource

Reset the run counter

Variables


*shadow-debug*

*shadow-debug*: symbolsource

*shadow-object*

*shadow-object*: symbolsource

*shadow-queue*

*shadow-queue*: shadow-queuesource

*shadow*

*shadow*: symbolsource

shadow-cpu

source

Types


shadow-dcache

shadow-dcache: structuresource
Fields
vtx-table: uint32
single-edge-table: uint32
double-edge-table: uint32
double-tri-table: uint32
dcache-top: uint32
num-facing-single-tris: uint32
num-single-edges: uint32
num-double-edges: uint32
single-tri-list: uint32
single-edge-list: uint32
double-edge-list: uint32
ptr-dual-verts: uint32
stats: shadow-stats
center: vector
plane: vector
top-plane: vector
near-plane: vector
light-dir: vector
vtx-min: vector
data: uint8

shadow-stats

shadow-stats: structuresource
Fields
num-single-tris: uint32
num-double-tris: uint32
num-single-edges: uint32
num-double-edges: uint32

Functions


shadow-dma-end

shadow-dma-end(arg0: dma-buffer) => nonesource

shadow-dma-init

shadow-dma-init(arg0: dma-buffer) => nonesource

shadow-execute-all

shadow-execute-all(arg0: dma-buffer, arg1: shadow-queue) => nonesource

shadow-vu0-upload

shadow-vu0-upload() => nonesource

Variables


*shadow-data*

*shadow-data*: shadow-datasource

shadow-vu0-block

const shadow-vu0-block: vu-functionsource

shadow-h

source

Types


fake-shadow

fake-shadow: structuresource
Fields
px: float
py: float
pz: float
scale: float
qx: float
qy: float
qz: float
flags: int32

fake-shadow-buffer

fake-shadow-buffer: basicsource
Fields
type: type
num-shadows: int32
data: fake-shadow

Variables


*fake-shadow-buffer-1*

*fake-shadow-buffer-1*: fake-shadow-buffersource

*fake-shadow-buffer-2*

*fake-shadow-buffer-2*: fake-shadow-buffersource

*fake-shadow-buffer*

*fake-shadow-buffer*: fake-shadow-buffersource

shadow-vu1

source

Types


shadow-vu1-constants

shadow-vu1-constants: structuresource
Fields
hmgescale: vector
invhscale: vector
texoffset: vector
texscale: vector
hvdfoff: vector
fog: vector
clrs: vector
adgif: gs-gif-tag
texflush: ad-cmd
flush: ad-cmd
trigif: gs-gif-tag
quadgif: gs-gif-tag

shadow-vu1-gifbuf-template

shadow-vu1-gifbuf-template: structuresource
Fields
adgif: gs-gif-tag
ad: ad-cmd
flush: ad-cmd
trigif: gs-gif-tag
quadgif: gs-gif-tag

Functions


shadow-vu1-add-constants

shadow-vu1-add-constants(arg0: dma-buffer) => nonesource

shadow-vu1-add-matrix

shadow-vu1-add-matrix(arg0: dma-buffer, arg1: math-camera) => nonesource

shadow-vu1-init-buffer

shadow-vu1-init-buffer(arg0: dma-buffer) => nonesource

Variables


*shadow-vu1-tri-template*

*shadow-vu1-tri-template*: shadow-vu1-gifbuf-templatesource

shadow-vu1-block

shadow-vu1-block: vu-functionsource

shadow

source

Functions


add-fake-shadow-to-buffer

add-fake-shadow-to-buffer(arg0: vector, arg1: vector, arg2: float, arg3: int) => nonesource

compute-and-draw-shadow

compute-and-draw-shadow(arg0: vector, arg1: vector, arg2: vector, arg3: vector, arg4: float, arg5: float) => nonesource

do-target-shadow

do-target-shadow() => nonesource

draw-shadow

draw-shadow(arg0: vector, arg1: vector, arg2: vector, arg3: float, arg4: float, arg5: float) => nonesource

find-ground-and-draw-shadow

find-ground-and-draw-shadow(arg0: vector, arg1: vector, arg2: float, arg3: collide-kind, arg4: process-drawable, arg5: float, arg6: float) => nonesource

swap-fake-shadow-buffers

swap-fake-shadow-buffers() => nonesource