Skip to main content

ocean-frames

source

Variables


*ocean-wave-frames*

*ocean-wave-frames*: pointersource

ocean-h

source

Types


ocean-colors

ocean-colors: structuresource
Fields
colors: rgba

ocean-corner

ocean-corner: structuresource
Fields
bsphere: sphere
start-corner: vector
y-scales: vector
alphas: vector
colors: uint32

ocean-map

ocean-map: basicsource
Fields
type: type
start-corner: vector
far-color: vector
ocean-spheres: ocean-spheres
ocean-colors: ocean-colors
ocean-mid-indices: ocean-mid-indices
ocean-trans-indices: ocean-trans-indices
ocean-near-indices: ocean-near-indices
ocean-mid-masks: ocean-mid-masks

ocean-mid-constants

ocean-mid-constants: structuresource
Fields
hmge-scale: vector
inv-hmge-scale: vector
hvdf-offset: vector
fog: vector
constants: vector
constants2: vector
drw-fan: gs-gif-tag
env-fan: gs-gif-tag
drw-adgif: gs-gif-tag
drw-texture: adgif-shader
drw-strip-0: gs-gif-tag
drw-strip-1: gs-gif-tag
env-adgif: gs-gif-tag
env-texture: adgif-shader
env-strip: gs-gif-tag
env-color: vector
index-table: vector4w
pos0: vector
pos1: vector
pos2: vector
pos3: vector

ocean-mid-indices

ocean-mid-indices: basicsource
Fields
type: type
data: uint16

ocean-mid-mask

ocean-mid-mask: structuresource
Fields
mask: uint8
dword: uint64

ocean-mid-masks

ocean-mid-masks: basicsource
Fields
type: type
data: inline-array

ocean-mid-upload

ocean-mid-upload: structuresource
Fields
rot: matrix
matrix: matrix
colors: uint128
masks: uint128

ocean-mid-upload2

ocean-mid-upload2: structuresource
Fields
rot: matrix
matrix: matrix
count: vector4w
tex0: vector
tex1: vector
tex2: vector
tex3: vector
clr0: vector
clr1: vector
clr2: vector
clr3: vector
verts: uint128

ocean-mid-vertex

ocean-mid-vertex: structuresource
Fields
stq: vector
col: vector
pos: vector

ocean-mid-work

ocean-mid-work: structuresource
Fields
env0: vector
env1: vector
env2: vector
hmg0: vector
hmg1: vector
hmg2: vector
indices: uint128

ocean-near-colors

ocean-near-colors: structuresource
Fields
color0: vector
color1: vector
color2: vector
color3: vector

ocean-near-constants

ocean-near-constants: structuresource
Fields
hmge-scale: vector
inv-hmge-scale: vector
hvdf-offset: vector
fog: vector
constants: vector
constants2: vector
constants3: vector
constants4: vector
drw-fan: gs-gif-tag
drw2-fan: gs-gif-tag
env-fan: gs-gif-tag
drw-adgif: gs-gif-tag
drw-texture: adgif-shader
drw-strip: gs-gif-tag
env-adgif: gs-gif-tag
env-texture: adgif-shader
env-strip: gs-gif-tag
env-color: vector
drw2-adgif: gs-gif-tag
drw2-tex0: qword
drw2-frame: qword
drw2-strip: gs-gif-tag
drw3-adgif: gs-gif-tag
drw3-frame: qword
index-table: vector4w

ocean-near-index

ocean-near-index: structuresource
Fields
data: uint16

ocean-near-indices

ocean-near-indices: basicsource
Fields
type: type
data: inline-array

ocean-near-upload

ocean-near-upload: structuresource
Fields
rot: matrix
matrix: matrix
masks: uint128
start-height: vector4w
start-st: vector
near-colors: ocean-near-colors

ocean-near-vertex

ocean-near-vertex: structuresource
Fields
stq: vector
clr: vector
pos: vector

ocean-near-work

ocean-near-work: structuresource
Fields
verts-ptr: vector
indices: uint128

ocean-spheres

ocean-spheres: structuresource
Fields
spheres: sphere

ocean-texture-constants

ocean-texture-constants: structuresource
Fields
giftag: gs-gif-tag
buffers: vector4w
dests: vector4w
start: vector
offsets: vector
constants: vector
cam-nrm: vector

ocean-texture-work

ocean-texture-work: structuresource
Fields
sprite-tmpl: dma-gif-packet
sprite-tmpl2: dma-gif-packet
adgif-tmpl: dma-gif-packet

ocean-trans-index

ocean-trans-index: structuresource
Fields
parent: int16
child: int16

ocean-trans-indices

ocean-trans-indices: basicsource
Fields
type: type
data: ocean-trans-index

ocean-trans-mask

ocean-trans-mask: structuresource
Fields
mask: uint8
word: uint64

ocean-trans-strip

ocean-trans-strip: structuresource
Fields
verts: uint128

ocean-trans-strip-array

ocean-trans-strip-array: structuresource

ocean-vertex

ocean-vertex: structuresource
Fields
pos: vector
stq: vector
col: vector

ocean-vu0-work

ocean-vu0-work: structuresource
Fields
scales: vector
mask-hi: vector4w
mask-lo: vector4w
lights: vu-lights
wait-to-vu0: uint32

ocean-wave-data

ocean-wave-data: structuresource
Fields
data: uint8

ocean-wave-frames

ocean-wave-frames: structuresource
Fields
frame: ocean-wave-data

ocean-wave-info

ocean-wave-info: structuresource
Fields
frequency: float
amplitude: float
wave-speed: float
angle: float
kx: float
ky: float
w: float
flags: int32

ocean-work

ocean-work: basicsource
Fields
type: type
deltas: vector
map-min: vector
map-max: vector
interp: vector
corner-array: ocean-corner
corner-count: int32
temp-vecs: vector
mid-mask-ptrs: pointer
mid-camera-masks: uint64
trans-mask-ptrs: pointer
trans-camera-masks: ocean-trans-mask
trans-temp-masks: ocean-trans-mask
near-mask-indices: uint16
mid-minx: uint8
mid-maxx: uint8
mid-minz: uint8
mid-maxz: uint8
near-minx: uint8
near-maxx: uint8
near-minz: uint8
near-maxz: uint8
temp-minx: uint8
temp-maxx: uint8
temp-minz: uint8
temp-maxz: uint8

Variables


*ocean-facing*

*ocean-facing*: intsource

*ocean-heights*

*ocean-heights*: ocean-wave-infosource

*ocean-mid-off*

*ocean-mid-off*: symbolsource

*ocean-near-off*

*ocean-near-off*: symbolsource

*ocean-off*

*ocean-off*: symbolsource

*ocean-verts*

*ocean-verts*: inline-arraysource

*ocean-work*

*ocean-work*: ocean-worksource

ocean-mid

source

Functions


debug-draw-ocean-tile

debug-draw-ocean-tile(y: int, x: int, color0: rgba, color1: rgba, masks: int) => symbolsource

draw-ocean-mid

draw-ocean-mid(arg0: dma-buffer) => nonesource

Main function to draw the 'mid' ocean
The mid ocean is used to draw the non-transparent ocean parts.
There is a large 6x6 grid of tiles.
Tiles that are closer to the camera have an environment mapping effect applied.

draw-ocean-mid-seams

draw-ocean-mid-seams(arg0: dma-buffer) => nonesource

ocean-matrix*!

ocean-matrix*!(arg0: matrix, arg1: matrix, arg2: matrix) => matrixsource

ocean-mid-add-call

ocean-mid-add-call(arg0: dma-buffer, arg1: int) => nonesource

ocean-mid-add-call-flush

ocean-mid-add-call-flush(arg0: dma-buffer, arg1: uint) => nonesource

ocean-mid-add-constants

ocean-mid-add-constants(arg0: dma-buffer) => nonesource

Generate DMA for loading ocean-mid constants to VU1 data memory.

ocean-mid-add-matrices

ocean-mid-add-matrices(arg0: dma-buffer, arg1: vector) => nonesource

ocean-mid-add-upload

ocean-mid-add-upload(arg0: dma-buffer, arg1: int, arg2: int, arg3: int, arg4: int, arg5: float) => symbolsource

Add DMA data to upload data needed to draw an ocean tile.

ocean-mid-add-upload-bottom

ocean-mid-add-upload-bottom(arg0: dma-buffer, arg1: uint, arg2: uint) => nonesource

ocean-mid-add-upload-middle

ocean-mid-add-upload-middle(arg0: dma-buffer, arg1: uint, arg2: uint) => nonesource

ocean-mid-add-upload-table

ocean-mid-add-upload-table(arg0: dma-buffer, arg1: uint, arg2: uint, arg3: pointer, arg4: int, arg5: symbol) => nonesource

ocean-mid-add-upload-top

ocean-mid-add-upload-top(arg0: dma-buffer, arg1: uint, arg2: uint) => nonesource

ocean-mid-camera-masks-bit?

ocean-mid-camera-masks-bit?(arg0: uint, arg1: uint) => symbolsource

ocean-mid-camera-masks-set!

ocean-mid-camera-masks-set!(arg0: uint, arg1: uint) => symbolsource

ocean-mid-check

ocean-mid-check(arg0: pointer, arg1: int, arg2: int, arg3: vector) => symbolsource

ocean-mid-mask-ptrs-bit?

ocean-mid-mask-ptrs-bit?(arg0: uint, arg1: uint) => symbolsource

ocean-mid-setup-constants

ocean-mid-setup-constants(arg0: ocean-mid-constants) => nonesource

Generate the ocean VU1 renderer constants in-place.

ocean-seams-add-constants

ocean-seams-add-constants(arg0: dma-buffer) => nonesource

ocean-vector-matrix*!

ocean-vector-matrix*!(arg0: vector, arg1: vector, arg2: matrix) => vectorsource

sphere-cull-for-ocean

sphere-cull-for-ocean(arg0: vector) => symbolsource

NOTE: added in PC port

Variables


ocean-mid-block

ocean-mid-block: vu-functionsource

ocean-near

source

Functions


draw-ocean-near

draw-ocean-near(arg0: dma-buffer) => nonesource

ocean-near-add-call

ocean-near-add-call(arg0: dma-buffer, arg1: int) => nonesource

ocean-near-add-call-flush

ocean-near-add-call-flush(arg0: dma-buffer, arg1: int) => nonesource

ocean-near-add-constants

ocean-near-add-constants(arg0: dma-buffer) => nonesource

ocean-near-add-heights

ocean-near-add-heights(arg0: dma-buffer) => nonesource

ocean-near-add-matrices

ocean-near-add-matrices(arg0: dma-buffer, arg1: vector) => nonesource

ocean-near-add-upload

ocean-near-add-upload(arg0: dma-buffer, arg1: uint, arg2: uint) => nonesource

ocean-near-setup-constants

ocean-near-setup-constants(arg0: ocean-near-constants) => nonesource

Variables


ocean-near-block

ocean-near-block: vu-functionsource

ocean-tables

source

Variables


*ocean-colors-village1*

*ocean-colors-village1*: ocean-colorssource

*ocean-colors-village2*

*ocean-colors-village2*: ocean-colorssource

*ocean-map-sunken*

*ocean-map-sunken*: ocean-mapsource

*ocean-map-village1*

*ocean-map-village1*: ocean-mapsource

*ocean-map-village2*

*ocean-map-village2*: ocean-mapsource

*ocean-mid-indices-sunken*

*ocean-mid-indices-sunken*: ocean-mid-indicessource

*ocean-mid-indices-village1*

*ocean-mid-indices-village1*: ocean-mid-indicessource

*ocean-mid-indices-village2*

*ocean-mid-indices-village2*: ocean-mid-indicessource

*ocean-mid-masks-sunken*

*ocean-mid-masks-sunken*: ocean-mid-maskssource

*ocean-mid-masks-village1*

*ocean-mid-masks-village1*: ocean-mid-maskssource

*ocean-mid-masks-village2*

*ocean-mid-masks-village2*: ocean-mid-maskssource

*ocean-near-indices-sunken*

*ocean-near-indices-sunken*: ocean-near-indicessource

*ocean-near-indices-village1*

*ocean-near-indices-village1*: ocean-near-indicessource

*ocean-near-indices-village2*

*ocean-near-indices-village2*: ocean-near-indicessource

*ocean-spheres-village1*

*ocean-spheres-village1*: ocean-spheressource

*ocean-spheres-village2*

*ocean-spheres-village2*: ocean-spheressource

*ocean-trans-indices-sunken*

*ocean-trans-indices-sunken*: ocean-trans-indicessource

*ocean-trans-indices-village1*

*ocean-trans-indices-village1*: ocean-trans-indicessource

*ocean-trans-indices-village2*

*ocean-trans-indices-village2*: ocean-trans-indicessource

ocean-texture

source

Functions


draw-ocean-texture

draw-ocean-texture(arg0: dma-buffer, arg1: inline-array, arg2: symbol) => nonesource

ocean-texture-add-call-done

ocean-texture-add-call-done(arg0: dma-buffer) => nonesource

ocean-texture-add-call-rest

ocean-texture-add-call-rest(arg0: dma-buffer) => nonesource

ocean-texture-add-call-start

ocean-texture-add-call-start(arg0: dma-buffer) => nonesource

ocean-texture-add-constants

ocean-texture-add-constants(arg0: dma-buffer) => pointersource

Add DMA packet to upload ocean constants. The constants are stored in the DMA buffer.

ocean-texture-add-envmap

ocean-texture-add-envmap(arg0: dma-buffer) => pointersource

Add DMA packet to set up the GS with the env map texture's ADGIF shader.

ocean-texture-add-verts

ocean-texture-add-verts(arg0: dma-buffer, arg1: inline-array) => pointersource

ocean-texture-add-verts-last

ocean-texture-add-verts-last(arg0: dma-buffer, arg1: inline-array, arg2: inline-array) => pointersource

ocean-texture-setup-constants

ocean-texture-setup-constants(arg0: ocean-texture-constants) => nonesource

Set the constant values used in Ocean Texture VU1 program.

Variables


*ocean-texture-work*

*ocean-texture-work*: ocean-texture-worksource

ocean-texture-vu1-block

ocean-texture-vu1-block: vu-functionsource

ocean-trans-tables

source

Variables


*ocean-down-left-table*

*ocean-down-left-table*: pointersource

*ocean-down-right-table*

*ocean-down-right-table*: pointersource

*ocean-down-table*

*ocean-down-table*: pointersource

*ocean-left-table*

*ocean-left-table*: pointersource

*ocean-right-table*

*ocean-right-table*: pointersource

*ocean-trans-corner-table*

*ocean-trans-corner-table*: inline-arraysource

*ocean-trans-down-left-table*

*ocean-trans-down-left-table*: pointersource

*ocean-trans-down-right-table*

*ocean-trans-down-right-table*: pointersource

*ocean-trans-down-table*

*ocean-trans-down-table*: pointersource

*ocean-trans-left-table*

*ocean-trans-left-table*: pointersource

*ocean-trans-right-table*

*ocean-trans-right-table*: pointersource

*ocean-trans-st-table*

*ocean-trans-st-table*: inline-arraysource

*ocean-trans-strip-array*

*ocean-trans-strip-array*: pointersource

*ocean-trans-up-left-table*

*ocean-trans-up-left-table*: pointersource

*ocean-trans-up-right-table*

*ocean-trans-up-right-table*: pointersource

*ocean-trans-up-table*

*ocean-trans-up-table*: pointersource

*ocean-up-left-table*

*ocean-up-left-table*: pointersource

*ocean-up-right-table*

*ocean-up-right-table*: pointersource

*ocean-up-table*

*ocean-up-table*: pointersource

ocean-transition

source

Functions


draw-ocean-transition

draw-ocean-transition(arg0: dma-buffer) => nonesource

draw-ocean-transition-seams

draw-ocean-transition-seams(arg0: dma-buffer) => symbolsource

ocean-make-trans-camera-masks

ocean-make-trans-camera-masks(arg0: uint, arg1: uint, arg2: uint, arg3: uint) => symbolsource

ocean-trans-add-constants

ocean-trans-add-constants(arg0: dma-buffer) => pointersource

ocean-trans-add-upload

ocean-trans-add-upload(arg0: dma-buffer, arg1: int, arg2: int) => nonesource

ocean-trans-add-upload-strip

ocean-trans-add-upload-strip(arg0: dma-buffer, arg1: uint, arg2: uint, arg3: uint, arg4: uint, arg5: uint) => nonesource

ocean-trans-add-upload-table

ocean-trans-add-upload-table(arg0: dma-buffer, arg1: int, arg2: int, arg3: pointer, arg4: int, arg5: symbol) => nonesource

ocean-trans-camera-masks-bit?

ocean-trans-camera-masks-bit?(arg0: uint, arg1: uint) => symbolsource

ocean-trans-mask-ptrs-bit?

ocean-trans-mask-ptrs-bit?(arg0: int, arg1: int) => symbolsource

ocean-trans-mask-ptrs-set!

ocean-trans-mask-ptrs-set!(arg0: int, arg1: int) => symbolsource

ocean-transition-check

ocean-transition-check(arg0: ocean-trans-mask, arg1: int, arg2: int, arg3: vector) => symbolsource

ocean-vu0

source

Variables


*ocean-vu0-work*

*ocean-vu0-work*: ocean-vu0-worksource

ocean-vu0-block

const ocean-vu0-block: vu-functionsource

Functions


draw-ocean

draw-ocean() => nonesource

draw-ocean-far

draw-ocean-far(arg0: dma-buffer) => profile-framesource

ocean-end-buffer

ocean-end-buffer(arg0: dma-buffer) => pointersource

ocean-get-height

ocean-get-height(arg0: vector) => floatsource

ocean-init-buffer

ocean-init-buffer(arg0: dma-buffer) => pointersource

render-ocean-far

render-ocean-far(arg0: dma-buffer, arg1: int) => nonesource

update-ocean

update-ocean() => nonesource

Variables


*ocean-generate-verts-vector*

*ocean-generate-verts-vector*: vectorsource

*swamp-low-ocean-marker*

*swamp-low-ocean-marker*: vectorsource