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:
parent
10143c7796
commit
af7a258100
3 changed files with 28 additions and 0 deletions
18
Source/Render/AuxiliarySubmission.cpp
Normal file
18
Source/Render/AuxiliarySubmission.cpp
Normal 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);
|
||||
}
|
||||
9
Source/Render/AuxiliarySubmission.h
Normal file
9
Source/Render/AuxiliarySubmission.h
Normal 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
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue