rodecomp/Source/Render/AuxiliarySubmission.cpp
ragnarok-clanker af7a258100 Decompile 2 functions in Source/Render/AuxiliarySubmission.cpp, Source/Render/AuxiliarySubmission.h
Batch #2192 by ntrl: 0 byte-identical, 2 confirmed by peer review.

- fn_02072 SubmitAuxiliaryPrimitive: logic confirmed by peer review
- fn_02262 ApplyAuxiliaryDepthAlpha: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
Adds to the build: Source/Render/AuxiliarySubmission.cpp
2026-10-29 15:29:34 +00:00

18 lines
746 B
C++

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