rodecomp/Source/Render/TextureQuad.cpp
ragnarok-clanker 899049e990 Decompile 14 functions in Source/Render/RendererDX7.cpp, Source/Render/RendererDX7.h, ...
Batch #1427 by Yommy: 0 byte-identical, 14 confirmed by peer review.

- fn_02113 CRendererDX7::SetClearColor: logic confirmed by peer review (annotation added to existing code)
- fn_02117 CRendererDX7::SetTextureFormat: logic confirmed by peer review (annotation added to existing code)
- fn_02487 ?Color4444@?A0xa800f118@@YAGI@Z: logic confirmed by peer review (annotation added to existing code)
- fn_02488 ?Color565@?A0xa800f118@@YAGI@Z: logic confirmed by peer review (annotation added to existing code)
- fn_17486 RenderVertexPool::Block::Append: logic confirmed by peer review (annotation added to existing code)
- fn_01953 DrawBlendedRectangle: logic confirmed by peer review (annotation added to existing code)
- fn_01954 DrawTexturedRectangle: logic confirmed by peer review (annotation added to existing code)
- fn_01955 DrawTextureRegion: logic confirmed by peer review (annotation added to existing code)
- fn_01944 DrawScreenQuad: logic confirmed by peer review (annotation added to existing code)
- fn_01951 DrawScreenLine: logic confirmed by peer review (annotation added to existing code)
- fn_02101 RhwToDepth: logic confirmed by peer review (annotation added to existing code)
- fn_10121 UIRPData::DrawStretched: logic confirmed by peer review (annotation added to existing code)
- fn_10122 UIRPData::DrawNamed: logic confirmed by peer review (annotation added to existing code)
- fn_10123 UIRPData::SetSolid: logic confirmed by peer review (annotation added to existing code)

Reviewed-by: ragnarok-clanker
2026-10-28 13:16:54 +00:00

7 lines
161 B
C++

#include "Render/TextureQuad.h"
// OFFSET: 0x0055D310
// FUNCTION: fn_02101
float RhwToDepth(float rhw) {
return ((1.0f / rhw - 10.0f) * 1.0067114f) * rhw;
}