Decompile fn_17500 (C3dNodeV2::Draw)

Batch #13160 by Toshiro: 0 byte-identical, 1 confirmed by peer review.

- fn_17500 C3dNodeV2::Draw: logic confirmed by peer review

Peer-reviewed-by: Tanke, cremane, codeplay
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-06 15:10:15 +00:00
commit 100bfd3cf7

View file

@ -186,8 +186,7 @@ void C3dNodeV1::Draw(const float* matrix, unsigned char reversed, bool clip, uns
void C3dNodeV2::Draw(const float* matrix, unsigned char reversed, bool clip, unsigned char commandMode) {
// GLOBAL: gl_24587
static ProjectedVertex projected[30000];
struct matrix camera;
std::memcpy(camera.values, matrix, sizeof(camera.values));
const struct matrix& camera = *reinterpret_cast<const struct matrix*>(matrix);
struct matrix combined;
combined.Compose(this->transform, camera);
float ambient[3];