rodecomp/Source/Contents/Models/ModelRendering.h
ragnarok-clanker a20ef24120 Decompile 2 functions in Source/Contents/Models/ModelRendering.cpp, Source/Contents/Models/ModelRendering.h
Batch #12104 by Yommy: 0 byte-identical, 2 confirmed by peer review.

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

Peer-reviewed-by: KWDev, SapitoSucio, cremane
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-05 10:39:56 +00:00

19 lines
537 B
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_MODELS_MODELRENDERING_H
#define RAGNAROK_SOURCE_CONTENTS_MODELS_MODELRENDERING_H
#include "Render/Primitives/RenderPrimitive.h"
class C3dNode;
struct ModelTextureTransform;
struct ModelFaceState {
/* 0000 */ std::uint32_t colors[3];
/* 000C */ float uv[3][2];
};
bool ModelTriangleVisible(const RenderVertex* a, const RenderVertex* b, const RenderVertex* c);
void TransformModelUV(float& u, float& v, const ModelTextureTransform& transform);
static_assert(sizeof(ModelFaceState) == 36);
#endif