mirror of
https://github.com/open-goal/jak-project
synced 2026-08-14 04:33:04 -04:00
[graphics] tie generic (#1341)
* [gtie] tie inst and proto functions * first chain input to generic ee looks good * m * works * ugh * add tie generic * rm debug print * rm generic ties from fr3
This commit is contained in:
@@ -108,16 +108,25 @@ void Generic2::determine_draw_modes() {
|
||||
|
||||
u64 bonus_adgif_data[4];
|
||||
memcpy(bonus_adgif_data, frag.header + (5 * 16), 4 * sizeof(u64));
|
||||
// ADGIF 5
|
||||
ASSERT((u8)bonus_adgif_data[1] == (u8)(GsRegisterAddress::TEST_1));
|
||||
u64 final_test = bonus_adgif_data[0];
|
||||
|
||||
// ADGIF 6
|
||||
if ((u8)bonus_adgif_data[3] == (u8)(GsRegisterAddress::ALPHA_1)) {
|
||||
final_alpha = bonus_adgif_data[2];
|
||||
} else {
|
||||
u64 final_test;
|
||||
if ((u8)bonus_adgif_data[1] == (u8)(GsRegisterAddress::ALPHA_1)) {
|
||||
ASSERT((u8)bonus_adgif_data[1] == (u8)(GsRegisterAddress::ALPHA_1));
|
||||
final_alpha = bonus_adgif_data[0];
|
||||
ASSERT((u8)bonus_adgif_data[3] == (u8)(GsRegisterAddress::TEST_1));
|
||||
final_test = bonus_adgif_data[2];
|
||||
} else {
|
||||
// ADGIF 5
|
||||
ASSERT((u8)bonus_adgif_data[1] == (u8)(GsRegisterAddress::TEST_1));
|
||||
final_test = bonus_adgif_data[0];
|
||||
|
||||
// ADGIF 6
|
||||
if ((u8)bonus_adgif_data[3] == (u8)(GsRegisterAddress::ALPHA_1)) {
|
||||
final_alpha = bonus_adgif_data[2];
|
||||
} else {
|
||||
ASSERT((u8)bonus_adgif_data[3] == (u8)(GsRegisterAddress::TEST_1));
|
||||
final_test = bonus_adgif_data[2];
|
||||
}
|
||||
}
|
||||
|
||||
if (final_alpha) {
|
||||
|
||||
@@ -58,7 +58,7 @@ void main() {
|
||||
|
||||
// color
|
||||
if (mode == 0) {
|
||||
fragment_color = vec4(0.4, 0.5, 0.5, 1);
|
||||
fragment_color = vec4((normal_in + 1)*.5, 1);
|
||||
fragment_color.xyz *= (pow(cam_dot, 3) + 0.3);
|
||||
} else {
|
||||
fragment_color = vec4(0.0, 0.3, 0.3, 1);
|
||||
|
||||
Reference in New Issue
Block a user