[Scummvm-git-logs] scummvm master -> 61e1ec37d4269f380a136c5d7b9fcefa089bbec3
whoozle
noreply at scummvm.org
Thu Mar 12 20:58:26 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
61e1ec37d4 PHOENIXVR: remove normalisation (cube projection will divide component by max axis anyway)
Commit: 61e1ec37d4269f380a136c5d7b9fcefa089bbec3
https://github.com/scummvm/scummvm/commit/61e1ec37d4269f380a136c5d7b9fcefa089bbec3
Author: Vladimir Menshakov (vladimir.menshakov at gmail.com)
Date: 2026-03-12T20:57:51Z
Commit Message:
PHOENIXVR: remove normalisation (cube projection will divide component by max axis anyway)
Changed paths:
engines/phoenixvr/vr.cpp
diff --git a/engines/phoenixvr/vr.cpp b/engines/phoenixvr/vr.cpp
index 14fcce5a78c..6e95616d0d5 100644
--- a/engines/phoenixvr/vr.cpp
+++ b/engines/phoenixvr/vr.cpp
@@ -478,11 +478,10 @@ void VR::renderVR(Graphics::Screen *screen, float ax, float ay, float fov, float
y = screen->h - 1 - dstY;
dst += y * dstPixelsPitchIncrement;
}
- Vector3d pixel = line;
+ Vector3d ray = line;
int dx = regSet ? static_cast<int>(5 * cosf(hint + 100.0f * dstY / h)) : 0;
- for (int dstX = 0; dstX != w; ++dstX, pixel += incrementX, ++dst) {
- Vector3d ray = pixel.getNormalized();
+ for (int dstX = 0; dstX != w; ++dstX, ray += incrementX, ++dst) {
auto cube = toCube(ray.x(), ray.y(), ray.z());
int srcX = static_cast<int>(512 * cube.x);
int srcY = static_cast<int>(512 * cube.y);
More information about the Scummvm-git-logs
mailing list