rodecomp/Source/Render/AuxiliarySubmission.cpp
ragnarok-clanker 126433e453 Decompile 3 functions in Source/Render/Primitives/DepthAlpha.cpp, Source/Render/AuxiliarySubmission.cpp, ...
Batch #13940 by SapitoSucio: 3 byte-identical, 0 confirmed by peer review.

- fn_02100 DepthAlpha: byte-identical
- fn_02072 CRenderer::SubmitAuxiliaryPrimitive: byte-identical
- fn_02262 LightmappedPrimitive::ApplyAuxiliaryDepthAlpha: byte-identical

Merged automatically: every function is byte-identical to the original.
2026-11-07 01:46:58 +00:00

23 lines
797 B
C++

#include "Render/AuxiliarySubmission.h"
#include "Render/Renderer.h"
#include "Render/Primitives/DepthAlpha.h"
// OFFSET: 0x00569520
// FUNCTION: fn_02262
__declspec(noinline) void LightmappedPrimitive::ApplyAuxiliaryDepthAlpha() {
for (int index = 0; index < this->vertexCount; ++index) {
this->vertices[index].specular = DepthAlpha(this->vertices[index].rhw);
}
}
// OFFSET: 0x00559C50
// FUNCTION: fn_02072
void CRenderer::SubmitAuxiliaryPrimitive(LightmappedPrimitive* primitive) {
primitive->ApplyAuxiliaryDepthAlpha();
this->queues.queue_0240.push_back(primitive);
}
// INLINED
void SubmitAuxiliaryPrimitive(CRenderer& renderer, LightmappedPrimitive* primitive, const float& depthStart, const float& depthEnd, int reserved) {
renderer.SubmitAuxiliaryPrimitive(primitive);
}