Decompile 4 functions in Source/Contents/Effects/EffectPrimitiveRendering.cpp, Source/Contents/Effects/EffectPrimitiveMotion.cpp, ...
Batch #2137 by ragnarok-clanker: 0 byte-identical, 4 confirmed by peer review. - fn_19923 CEffectPrim::RenderTeiRect: logic confirmed by peer review - fn_19924 CEffectPrim::RenderTeiRect: logic confirmed by peer review - fn_19925 CEffectPrim::RenderTeiRect: logic confirmed by peer review - fn_19933 TransformVert: logic confirmed by peer review Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
1353b13bac
commit
05882a0341
4 changed files with 516 additions and 0 deletions
|
|
@ -16,6 +16,9 @@
|
|||
#include "Contents/Actors/RenderObjectState.h"
|
||||
#include "Utility/Math/AffineMatrix.h"
|
||||
#include "Utility/Math/ScalarConversion.h"
|
||||
#include "Render/Renderer.h"
|
||||
#include "Render/Primitives/RenderPrimitive.h"
|
||||
#include "Render/Projection/RenderProjection.h"
|
||||
|
||||
#include <bit>
|
||||
#include <cmath>
|
||||
|
|
@ -4401,3 +4404,19 @@ void CEffectPrim::Tei_TowardScreen(vector3d& vec1, vector3d& vec2, vector3d& vec
|
|||
RotatePairY(vec3, rot0);
|
||||
RotatePairY(vec4, rot0);
|
||||
}
|
||||
|
||||
// OFFSET: 0x00BE7570
|
||||
// FUNCTION: fn_19933
|
||||
RenderVertex TransformVert(const matrix& view, const vector3d& position) {
|
||||
RenderVertex vertex;
|
||||
vertex.x = 0.0f;
|
||||
vertex.y = 0.0f;
|
||||
vertex.z = 0.0f;
|
||||
vertex.rhw = 0.0f;
|
||||
vertex.diffuse = 0;
|
||||
vertex.specular = 0xFF000000;
|
||||
vertex.u = 0.0f;
|
||||
vertex.v = 0.0f;
|
||||
g_renderer->viewport.Projection().Project(&position.x, view.values, vertex);
|
||||
return vertex;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue