Variables
*ocean-wave-frames*: pointersource
Types
ocean-corner: structuresource
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: 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-upload2: structuresource
ocean-mid-work: structuresource
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-upload: structuresource
ocean-texture-constants: structuresource
ocean-texture-work: structuresource
ocean-trans-indices: basicsource
ocean-trans-strip-array: structuresource
Fields
data: ocean-trans-strip
ocean-vu0-work: structuresource
ocean-wave-frames: structuresource
Fields
frame: ocean-wave-data
ocean-wave-info: structuresource
Fields
frequency: float
amplitude: float
wave-speed: float
angle: float
kx: float
ky: float
w: float
flags: int32
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*: intsource
*ocean-mid-off*: symbolsource
*ocean-near-off*: symbolsource
*ocean-off*: symbolsource
*ocean-verts*: inline-arraysource
Functions
debug-draw-ocean-tile(y: int, x: int, color0: rgba, color1: rgba, masks: int) => symbolsource
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.
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(arg0: dma-buffer) => nonesource
ocean-mid-add-call(arg0: dma-buffer, arg1: int) => nonesource
ocean-mid-add-call-flush(arg0: dma-buffer, arg1: uint) => nonesource
ocean-mid-add-constants(arg0: dma-buffer) => nonesource
Generate DMA for loading ocean-mid constants to VU1 data memory.
ocean-mid-add-matrices(arg0: dma-buffer, arg1: vector) => nonesource
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(arg0: dma-buffer, arg1: uint, arg2: uint) => nonesource
ocean-mid-add-upload-middle(arg0: dma-buffer, arg1: uint, arg2: uint) => nonesource
ocean-mid-add-upload-table(arg0: dma-buffer, arg1: uint, arg2: uint, arg3: pointer, arg4: int, arg5: symbol) => nonesource
ocean-mid-add-upload-top(arg0: dma-buffer, arg1: uint, arg2: uint) => nonesource
ocean-mid-camera-masks-bit?(arg0: uint, arg1: uint) => symbolsource
ocean-mid-camera-masks-set!(arg0: uint, arg1: uint) => symbolsource
ocean-mid-check(arg0: pointer, arg1: int, arg2: int, arg3: vector) => symbolsource
ocean-mid-mask-ptrs-bit?(arg0: uint, arg1: uint) => symbolsource
ocean-mid-setup-constants(arg0: ocean-mid-constants) => nonesource
Generate the ocean VU1 renderer constants in-place.
ocean-seams-add-constants(arg0: dma-buffer) => nonesource
sphere-cull-for-ocean(arg0: vector) => symbolsource
NOTE: added in PC port
Variables
ocean-mid-block: vu-functionsource
Functions
draw-ocean-near(arg0: dma-buffer) => nonesource
ocean-near-add-call(arg0: dma-buffer, arg1: int) => nonesource
ocean-near-add-call-flush(arg0: dma-buffer, arg1: int) => nonesource
ocean-near-add-constants(arg0: dma-buffer) => nonesource
ocean-near-add-heights(arg0: dma-buffer) => nonesource
ocean-near-add-matrices(arg0: dma-buffer, arg1: vector) => nonesource
ocean-near-add-upload(arg0: dma-buffer, arg1: uint, arg2: uint) => nonesource
ocean-near-setup-constants(arg0: ocean-near-constants) => nonesource
Variables
ocean-near-block: vu-functionsource
Variables
Functions
draw-ocean-texture(arg0: dma-buffer, arg1: inline-array, arg2: symbol) => nonesource
ocean-texture-add-call-done(arg0: dma-buffer) => nonesource
ocean-texture-add-call-rest(arg0: dma-buffer) => nonesource
ocean-texture-add-call-start(arg0: dma-buffer) => nonesource
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(arg0: dma-buffer) => pointersource
Add DMA packet to set up the GS with the env map texture's ADGIF shader.
ocean-texture-add-verts(arg0: dma-buffer, arg1: inline-array) => pointersource
ocean-texture-add-verts-last(arg0: dma-buffer, arg1: inline-array, arg2: inline-array) => pointersource
ocean-texture-setup-constants(arg0: ocean-texture-constants) => nonesource
Set the constant values used in Ocean Texture VU1 program.