mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-16 16:20:42 +02:00
Added FPS/UnrealEd-style right-mouse camera navigation to the camera view, with configurable movement keys, mouse look, modifier movement, Caps Lock speed scaling, and mouse-wheel zoom.
Added camera-view helper tools from the list, including reticle drawing, quick select during nav mode, teleport-to-looked-at-object, target lock/orbit mode, and entity/material info display. Added nav-mode texture adjustment controls for position, scale, and rotation, and fixed the existing Alt texture-drag condition so Alt+Shift and Alt+Ctrl can actually trigger scale/rotate behavior. Added widescreen support. Changed up the menus and UI for build.
This commit is contained in:
@@ -146,18 +146,18 @@ void R_RenderGuiSurf( idUserInterface *gui, drawSurf_t *drawSurf ) {
|
||||
float guiModelMatrix[16];
|
||||
float modelMatrix[16];
|
||||
|
||||
guiModelMatrix[0] = axis[0][0] / 640.0;
|
||||
guiModelMatrix[4] = axis[1][0] / 480.0;
|
||||
guiModelMatrix[0] = axis[0][0] / SCREEN_WIDTH;
|
||||
guiModelMatrix[4] = axis[1][0] / SCREEN_HEIGHT;
|
||||
guiModelMatrix[8] = axis[2][0];
|
||||
guiModelMatrix[12] = origin[0];
|
||||
|
||||
guiModelMatrix[1] = axis[0][1] / 640.0;
|
||||
guiModelMatrix[5] = axis[1][1] / 480.0;
|
||||
guiModelMatrix[1] = axis[0][1] / SCREEN_WIDTH;
|
||||
guiModelMatrix[5] = axis[1][1] / SCREEN_HEIGHT;
|
||||
guiModelMatrix[9] = axis[2][1];
|
||||
guiModelMatrix[13] = origin[1];
|
||||
|
||||
guiModelMatrix[2] = axis[0][2] / 640.0;
|
||||
guiModelMatrix[6] = axis[1][2] / 480.0;
|
||||
guiModelMatrix[2] = axis[0][2] / SCREEN_WIDTH;
|
||||
guiModelMatrix[6] = axis[1][2] / SCREEN_HEIGHT;
|
||||
guiModelMatrix[10] = axis[2][2];
|
||||
guiModelMatrix[14] = origin[2];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user