Refresh 3

This commit is contained in:
n64
2019-11-03 14:36:27 -05:00
parent 6b8bc9b9ec
commit a7c423cb43
4603 changed files with 475500 additions and 437701 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,72 @@
// 0x0700A1E0 - 0x0700A2E0
static const Vtx cotmc_seg7_vertex_0700A1E0[] = {
{{{ -262, 0, -3526}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ -286, 0, -3582}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ -292, 0, -3520}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ -227, 0, -3275}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ -84, 0, -3544}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ -257, 0, -3270}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ -563, 0, -3860}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ -563, 0, -1632}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ -157, 0, -1841}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ -35, 0, -2711}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ -64, 0, -3354}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 36, 0, -3565}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 255, 0, -4466}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 564, 0, -3278}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 564, 0, -3999}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 50, 0, -3387}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
};
// 0x0700A2E0 - 0x0700A3D0
static const Vtx cotmc_seg7_vertex_0700A2E0[] = {
{{{ 50, 0, -3387}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 156, 0, -3599}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 36, 0, -3565}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 166, 0, -3407}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 330, 0, -3661}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 341, 0, -3413}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 255, 0, -4466}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 403, 0, -3337}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 564, 0, -3278}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 388, 0, -4829}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 564, 0, -4781}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 564, 0, -3999}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 537, 0, -4960}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 661, 0, -4877}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
{{{ 628, 0, -4947}, 0, { 0, 0}, {0x00, 0x00, 0x00, 0xff}}},
};
// 0x0700A3D0 - 0x0700A4B8
static const Gfx cotmc_seg7_dl_0700A3D0[] = {
gsSPVertex(cotmc_seg7_vertex_0700A1E0, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 0, 0x0),
gsSP2Triangles( 5, 3, 0, 0x0, 5, 0, 2, 0x0),
gsSP2Triangles( 2, 1, 6, 0x0, 7, 5, 2, 0x0),
gsSP2Triangles( 2, 6, 7, 0x0, 7, 8, 5, 0x0),
gsSP2Triangles( 8, 9, 5, 0x0, 9, 3, 5, 0x0),
gsSP2Triangles( 3, 10, 4, 0x0, 10, 11, 4, 0x0),
gsSP2Triangles(12, 13, 14, 0x0, 10, 15, 11, 0x0),
gsSPVertex(cotmc_seg7_vertex_0700A2E0, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP2Triangles( 3, 4, 1, 0x0, 3, 5, 4, 0x0),
gsSP2Triangles( 6, 4, 7, 0x0, 4, 5, 7, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 6, 10, 0x0),
gsSP2Triangles( 6, 11, 10, 0x0, 9, 10, 12, 0x0),
gsSP2Triangles(10, 13, 14, 0x0, 10, 14, 12, 0x0),
gsSPEndDisplayList(),
};
// 0x0700A4B8 - 0x0700A508
const Gfx cotmc_seg7_dl_0700A4B8[] = {
gsDPPipeSync(),
gsDPSetEnvColor(255, 255, 255, 180),
gsDPSetCombineMode(G_CC_SHADEFADEA, G_CC_SHADEFADEA),
gsSPClearGeometryMode(G_LIGHTING),
gsSPDisplayList(cotmc_seg7_dl_0700A3D0),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_LIGHTING),
gsDPSetEnvColor(255, 255, 255, 255),
gsSPEndDisplayList(),
};

View File

@@ -1,64 +0,0 @@
cotmc_seg7_vertex_0700A1E0: # 0x0700A1E0 - 0x0700A2E0
vertex -262, 0, -3526, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex -286, 0, -3582, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex -292, 0, -3520, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex -227, 0, -3275, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex -84, 0, -3544, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex -257, 0, -3270, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex -563, 0, -3860, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex -563, 0, -1632, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex -157, 0, -1841, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex -35, 0, -2711, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex -64, 0, -3354, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 36, 0, -3565, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 255, 0, -4466, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 564, 0, -3278, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 564, 0, -3999, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 50, 0, -3387, 0, 0, 0x00, 0x00, 0x00, 0xFF
cotmc_seg7_vertex_0700A2E0: # 0x0700A2E0 - 0x0700A3D0
vertex 50, 0, -3387, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 156, 0, -3599, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 36, 0, -3565, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 166, 0, -3407, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 330, 0, -3661, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 341, 0, -3413, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 255, 0, -4466, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 403, 0, -3337, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 564, 0, -3278, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 388, 0, -4829, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 564, 0, -4781, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 564, 0, -3999, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 537, 0, -4960, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 661, 0, -4877, 0, 0, 0x00, 0x00, 0x00, 0xFF
vertex 628, 0, -4947, 0, 0, 0x00, 0x00, 0x00, 0xFF
cotmc_seg7_dl_0700A3D0: # 0x0700A3D0 - 0x0700A4B8
gsSPVertex cotmc_seg7_vertex_0700A1E0, 16, 0
gsSP2Triangles 0, 1, 2, 0x0, 3, 4, 0, 0x0
gsSP2Triangles 5, 3, 0, 0x0, 5, 0, 2, 0x0
gsSP2Triangles 2, 1, 6, 0x0, 7, 5, 2, 0x0
gsSP2Triangles 2, 6, 7, 0x0, 7, 8, 5, 0x0
gsSP2Triangles 8, 9, 5, 0x0, 9, 3, 5, 0x0
gsSP2Triangles 3, 10, 4, 0x0, 10, 11, 4, 0x0
gsSP2Triangles 12, 13, 14, 0x0, 10, 15, 11, 0x0
gsSPVertex cotmc_seg7_vertex_0700A2E0, 15, 0
gsSP2Triangles 0, 1, 2, 0x0, 0, 3, 1, 0x0
gsSP2Triangles 3, 4, 1, 0x0, 3, 5, 4, 0x0
gsSP2Triangles 6, 4, 7, 0x0, 4, 5, 7, 0x0
gsSP2Triangles 6, 7, 8, 0x0, 9, 6, 10, 0x0
gsSP2Triangles 6, 11, 10, 0x0, 9, 10, 12, 0x0
gsSP2Triangles 10, 13, 14, 0x0, 10, 14, 12, 0x0
gsSPEndDisplayList
glabel cotmc_seg7_dl_0700A4B8 # 0x0700A4B8 - 0x0700A508
gsDPPipeSync
gsDPSetEnvColor 255, 255, 255, 180
gsDPSetCombineModeLERP1Cycle G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_SHADE, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_ENVIRONMENT
gsSPClearGeometryMode G_LIGHTING
gsSPDisplayList cotmc_seg7_dl_0700A3D0
gsDPPipeSync
gsDPSetCombineModeLERP1Cycle G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_SHADE, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_SHADE
gsSPSetGeometryMode G_LIGHTING
gsDPSetEnvColor 255, 255, 255, 255
gsSPEndDisplayList

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,30 @@
// 0x0E0001A0
const GeoLayout cotmc_geo_0001A0[] = {
GEO_NODE_SCREEN_AREA(10, SCREEN_WIDTH/2, SCREEN_HEIGHT/2, SCREEN_WIDTH/2, SCREEN_HEIGHT/2),
GEO_OPEN_NODE(),
GEO_ZBUFFER(0),
GEO_OPEN_NODE(),
GEO_NODE_ORTHO(100),
GEO_OPEN_NODE(),
GEO_BACKGROUND_COLOR(0x0001),
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
GEO_ZBUFFER(1),
GEO_OPEN_NODE(),
GEO_CAMERA_FRUSTUM_WITH_FUNC(45, 100, 12800, geo_camera_fov),
GEO_OPEN_NODE(),
GEO_CAMERA(16, 0, 2000, 6000, 0, 0, 0, geo_camera_preset_and_pos),
GEO_OPEN_NODE(),
GEO_DISPLAY_LIST(LAYER_OPAQUE, cotmc_seg7_dl_07007D48),
GEO_DISPLAY_LIST(LAYER_OPAQUE, cotmc_seg7_dl_0700A160),
GEO_ASM( 0, geo_movtex_pause_control),
GEO_ASM(0x2801, geo_movtex_draw_nocolor),
GEO_DISPLAY_LIST(LAYER_TRANSPARENT, cotmc_seg7_dl_0700A4B8),
GEO_RENDER_OBJ(),
GEO_ASM(0, geo_enfvx_main),
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
GEO_END(),
};

View File

@@ -1,28 +0,0 @@
glabel cotmc_geo_0001A0 # 0x0E0001A0
geo_node_screen_area 10, SCREEN_WIDTH/2, SCREEN_HEIGHT/2, SCREEN_WIDTH/2, SCREEN_HEIGHT/2
geo_open_node
geo_zbuffer 0
geo_open_node
geo_node_ortho 100
geo_open_node
geo_background 0x0001
geo_close_node
geo_close_node
geo_zbuffer 1
geo_open_node
geo_camera_frustum 45, 100, 12800, geo_camera_fov
geo_open_node
geo_camera 16, 0, 2000, 6000, 0, 0, 0, geo_camera_preset_and_pos
geo_open_node
geo_display_list LAYER_OPAQUE, cotmc_seg7_dl_07007D48
geo_display_list LAYER_OPAQUE, cotmc_seg7_dl_0700A160
geo_asm 0, geo_movtex_pause_control
geo_asm 0x2801, geo_movtex_draw_nocolor
geo_display_list LAYER_TRANSPARENT, cotmc_seg7_dl_0700A4B8
geo_render_obj
geo_asm 0, geo_enfvx_main
geo_close_node
geo_close_node
geo_close_node
geo_close_node
geo_end

View File

@@ -0,0 +1,25 @@
// 0x0700BD38 - 0x0700BE0C
const MacroObject cotmc_seg7_macro_objs[] = {
MACRO_OBJECT(/*preset*/ macro_snufit, /*yaw*/ 0, /*pos*/ -2920, 220, -20),
MACRO_OBJECT(/*preset*/ macro_snufit, /*yaw*/ 0, /*pos*/ -1380, 240, 740),
MACRO_OBJECT(/*preset*/ macro_box_metal_cap, /*yaw*/ 0, /*pos*/ -360, 300, -200),
MACRO_OBJECT(/*preset*/ macro_snufit, /*yaw*/ 0, /*pos*/ 360, 200, -1120),
MACRO_OBJECT(/*preset*/ macro_coin_line_horizontal, /*yaw*/ 0, /*pos*/ 400, 256, -4300),
MACRO_OBJECT(/*preset*/ macro_box_metal_cap, /*yaw*/ 0, /*pos*/ 300, 620, -5280),
MACRO_OBJECT(/*preset*/ macro_snufit, /*yaw*/ 0, /*pos*/ -340, 260, -2620),
MACRO_OBJECT(/*preset*/ macro_coin_ring_horizontal, /*yaw*/ 0, /*pos*/ 0, -450, -7000),
MACRO_OBJECT(/*preset*/ macro_1up, /*yaw*/ 0, /*pos*/ 900, 260, -3620),
MACRO_OBJECT(/*preset*/ macro_coin_line_horizontal, /*yaw*/ 0, /*pos*/ 0, -170, -1660),
MACRO_OBJECT(/*preset*/ macro_coin_line_horizontal, /*yaw*/ 0, /*pos*/ -20, -211, -3940),
MACRO_OBJECT_WITH_BEH_PARAM(/*preset*/ macro_wooden_signpost, /*yaw*/ 270, /*pos*/ -71, 20, 720, /*behParam*/ 123),
MACRO_OBJECT(/*preset*/ macro_red_coin, /*yaw*/ 0, /*pos*/ 200, -291, -5600),
MACRO_OBJECT(/*preset*/ macro_red_coin, /*yaw*/ 0, /*pos*/ 980, 260, -3430),
MACRO_OBJECT(/*preset*/ macro_red_coin, /*yaw*/ 0, /*pos*/ -540, -352, -5940),
MACRO_OBJECT(/*preset*/ macro_red_coin, /*yaw*/ 0, /*pos*/ -300, 450, -6240),
MACRO_OBJECT(/*preset*/ macro_red_coin, /*yaw*/ 0, /*pos*/ -200, -400, -6680),
MACRO_OBJECT(/*preset*/ macro_red_coin, /*yaw*/ 0, /*pos*/ 250, 450, -6400),
MACRO_OBJECT(/*preset*/ macro_red_coin, /*yaw*/ 0, /*pos*/ 540, -361, -6340),
MACRO_OBJECT(/*preset*/ macro_red_coin, /*yaw*/ 0, /*pos*/ 980, 260, -3810),
MACRO_OBJECT(/*preset*/ macro_box_1up_running_away, /*yaw*/ 0, /*pos*/ -20, 180, 2060),
MACRO_OBJECT_END(),
};

View File

@@ -1,23 +0,0 @@
glabel cotmc_seg7_macro_objs # 0x0700BD38 - 0x0700BE0C
macro_object /*preset*/ macro_snufit, /*yaw*/ 0, /*pos*/ -2920, 220, -20
macro_object /*preset*/ macro_snufit, /*yaw*/ 0, /*pos*/ -1380, 240, 740
macro_object /*preset*/ macro_box_metal_cap, /*yaw*/ 0, /*pos*/ -360, 300, -200
macro_object /*preset*/ macro_snufit, /*yaw*/ 0, /*pos*/ 360, 200, -1120
macro_object /*preset*/ macro_coin_line_horizontal, /*yaw*/ 0, /*pos*/ 400, 256, -4300
macro_object /*preset*/ macro_box_metal_cap, /*yaw*/ 0, /*pos*/ 300, 620, -5280
macro_object /*preset*/ macro_snufit, /*yaw*/ 0, /*pos*/ -340, 260, -2620
macro_object /*preset*/ macro_coin_ring_horizontal, /*yaw*/ 0, /*pos*/ 0, -450, -7000
macro_object /*preset*/ macro_1up, /*yaw*/ 0, /*pos*/ 900, 260, -3620
macro_object /*preset*/ macro_coin_line_horizontal, /*yaw*/ 0, /*pos*/ 0, -170, -1660
macro_object /*preset*/ macro_coin_line_horizontal, /*yaw*/ 0, /*pos*/ -20, -211, -3940
macro_object /*preset*/ macro_wooden_signpost, /*yaw*/ 270, /*pos*/ -71, 20, 720, /*behParam*/ 123
macro_object /*preset*/ macro_red_coin, /*yaw*/ 0, /*pos*/ 200, -291, -5600
macro_object /*preset*/ macro_red_coin, /*yaw*/ 0, /*pos*/ 980, 260, -3430
macro_object /*preset*/ macro_red_coin, /*yaw*/ 0, /*pos*/ -540, -352, -5940
macro_object /*preset*/ macro_red_coin, /*yaw*/ 0, /*pos*/ -300, 450, -6240
macro_object /*preset*/ macro_red_coin, /*yaw*/ 0, /*pos*/ -200, -400, -6680
macro_object /*preset*/ macro_red_coin, /*yaw*/ 0, /*pos*/ 250, 450, -6400
macro_object /*preset*/ macro_red_coin, /*yaw*/ 0, /*pos*/ 540, -361, -6340
macro_object /*preset*/ macro_red_coin, /*yaw*/ 0, /*pos*/ 980, 260, -3810
macro_object /*preset*/ macro_box_1up_running_away, /*yaw*/ 0, /*pos*/ -20, 180, 2060
.hword 0x001E

14
levels/cotmc/geo.c Normal file
View File

@@ -0,0 +1,14 @@
#include <ultra64.h>
#include "sm64.h"
#include "geo_commands.h"
#include "game/level_geo.h"
#include "game/geo_misc.h"
#include "game/camera.h"
#include "game/moving_texture.h"
#include "game/screen_transition.h"
#include "game/paintings.h"
#include "levels/cotmc/header.h"
#include "levels/cotmc/areas/1/geo.inc.c"

View File

@@ -1 +0,0 @@
.include "levels/cotmc/areas/1/geo.s"

23
levels/cotmc/header.h Normal file
View File

@@ -0,0 +1,23 @@
#ifndef COTMC_HEADER_H
#define COTMC_HEADER_H
#include "types.h"
// geo
extern const GeoLayout cotmc_geo_0001A0[];
// leveldata
extern const Gfx cotmc_seg7_dl_07007D48[];
extern const Gfx cotmc_seg7_dl_0700A160[];
extern const Gfx cotmc_seg7_dl_0700A4B8[];
extern const Collision cotmc_seg7_collision_level[];
extern const MacroObject cotmc_seg7_macro_objs[];
extern const Gfx cotmc_dl_water_begin[];
extern const Gfx cotmc_dl_water_end[];
extern Movtex cotmc_movtex_tris_water[];
extern const Gfx cotmc_dl_water[];
// script
extern const LevelScript level_cotmc_entry[];
#endif

View File

@@ -1,8 +0,0 @@
.include "macros.inc"
.include "level_commands.inc"
.include "geo_commands.inc"
.include "surface_terrains.inc"
leveldata cotmc
levelscript cotmc
levelgeo cotmc

View File

@@ -1,7 +1,7 @@
# Cavern of the Metal Cap
short-name: cotmc
full-name: Cavern of the Metal Cap
texture-file: ["/texture.s"]
texture-file: ["/texture.inc.c"]
area-count: 1
objects: []
shared-path: []

17
levels/cotmc/leveldata.c Normal file
View File

@@ -0,0 +1,17 @@
#include <ultra64.h>
#include "sm64.h"
#include "surface_terrains.h"
#include "moving_texture_macros.h"
#include "level_misc_macros.h"
#include "macro_preset_names.h"
#include "special_preset_names.h"
#include "textures.h"
#include "make_const_nonconst.h"
#include "levels/cotmc/texture.inc.c"
#include "levels/cotmc/areas/1/1/model.inc.c"
#include "levels/cotmc/areas/1/2/model.inc.c"
#include "levels/cotmc/areas/1/3/model.inc.c"
#include "levels/cotmc/areas/1/collision.inc.c"
#include "levels/cotmc/areas/1/macro.inc.c"
#include "levels/cotmc/movtext.inc.c"

View File

@@ -1,15 +0,0 @@
.section .rodata
.include "macros.inc"
.include "PR/gbi.inc"
.include "surface_terrains.inc"
.include "macro_presets.inc"
.include "special_presets.inc"
.include "moving_texture.inc"
.include "levels/cotmc/texture.s"
.include "levels/cotmc/areas/1/1/model.s"
.include "levels/cotmc/areas/1/2/model.s"
.include "levels/cotmc/areas/1/3/model.s"
.include "levels/cotmc/areas/1/collision.s"
.include "levels/cotmc/areas/1/macro.s"
.include "levels/cotmc/movtext.s"

View File

@@ -0,0 +1,59 @@
// 0x0700BE10 - 0x0700BE88
const Gfx cotmc_dl_water_begin[] = {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_2CYCLE),
gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_XLU_INTER2),
gsDPSetDepthSource(G_ZS_PIXEL),
gsDPSetFogColor(0, 0, 0, 255),
gsSPFogPosition(980, 1000),
gsSPSetGeometryMode(G_FOG),
gsDPSetEnvColor(255, 255, 255, 140),
gsDPSetCombineMode(G_CC_DECALFADE, G_CC_PASS2),
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD),
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
gsSPEndDisplayList(),
};
// 0x0700BE88 - 0x0700BED0
const Gfx cotmc_dl_water_end[] = {
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsSPGeometryModeSetFirst(G_FOG, G_LIGHTING | G_CULL_BACK),
gsDPSetEnvColor(255, 255, 255, 255),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsDPSetRenderMode(G_RM_AA_ZB_XLU_INTER, G_RM_NOOP2),
gsSPEndDisplayList(),
};
// 0x0700BED0 - 0x0700BF60
Movtex cotmc_movtex_tris_water[] = {
MOV_TEX_SPD( 30),
MOV_TEX_TRIS( 256, 0, -7373, 0, 0),
MOV_TEX_TRIS( 256, 5120, -7373, 4, 0),
MOV_TEX_TRIS( -256, 0, -7373, 0, 1),
MOV_TEX_TRIS( -256, 5120, -7373, 4, 1),
MOV_TEX_TRIS( 1536, -204, 3584, 0, 0),
MOV_TEX_TRIS( 1536, 0, 3430, 1, 0),
MOV_TEX_TRIS( 1536, 0, -7680, 5, 0),
MOV_TEX_TRIS(-1536, -204, 3584, 0, 2),
MOV_TEX_TRIS(-1536, 0, 3430, 1, 2),
MOV_TEX_TRIS(-1536, 0, -7680, 5, 2),
MOV_TEX_TRIS(-1024, -614, 3584, 0, 0),
MOV_TEX_TRIS(-1024, 1434, 3584, 1, 0),
MOV_TEX_TRIS( 1024, -614, 3584, 0, 1),
MOV_TEX_TRIS( 1024, 1434, 3584, 1, 1),
MOV_TEX_END(),
};
// 0x0700BF60 - 0x0700BFA8
const Gfx cotmc_dl_water[] = {
gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0),
gsSP2Triangles( 4, 5, 7, 0x0, 10, 11, 12, 0x0),
gsSP2Triangles(12, 11, 13, 0x0, 7, 5, 8, 0x0),
gsSP2Triangles( 5, 6, 8, 0x0, 8, 6, 9, 0x0),
gsSPEndDisplayList(),
};

Some files were not shown because too many files have changed in this diff Show More