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
This commit is contained in:
ragnarok-clanker 2026-10-29 15:29:34 +00:00
commit af7a258100
3 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,18 @@
#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);
}

View file

@ -0,0 +1,9 @@
#ifndef RAGNAROK_SOURCE_RENDER_AUXILIARYSUBMISSION_H
#define RAGNAROK_SOURCE_RENDER_AUXILIARYSUBMISSION_H
class CRenderer;
struct LightmappedPrimitive;
void SubmitAuxiliaryPrimitive(CRenderer& renderer, LightmappedPrimitive* primitive, const float& depthStart, const float& depthEnd);
#endif

View file

@ -500,6 +500,7 @@
"Source/Render/AlphaQueuesDX7.cpp": 0,
"Source/Render/AlphaRectangle.cpp": 0,
"Source/Render/AuxiliaryQueuesDX7.cpp": 0,
"Source/Render/AuxiliarySubmission.cpp": 0,
"Source/Render/BitmapDrawing.cpp": 0,
"Source/Render/BlendColor.cpp": 0,
"Source/Render/DX7/BackBufferDX7.cpp": 0,