mirror of
https://github.com/mitch030504/Wiicompiled_VR_Frame.git
synced 2026-10-06 02:00:14 +02:00
- Added support for hiding model arrays in the rendering pipeline to optimize performance during VR gameplay. - Introduced new functions in `gx_model_visibility` to manage hidden model arrays and their visibility based on game state. - Enhanced cockpit recentering logic to ensure accurate seat measurements and eye positioning during gameplay. - Updated `FirstPersonState` to track cockpit height and forward direction, improving VR experience. - Added tests for Bullet Bill model visibility and cockpit height adjustments to ensure functionality and stability. - Refactored existing code to accommodate new features and improve overall code organization.
13 lines
493 B
C++
13 lines
493 B
C++
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
#pragma once
|
|
#include <cstdint>
|
|
|
|
namespace GxModelVisibility {
|
|
// Game thread. These requests are ordered with the frame's GX commands.
|
|
void PostClear();
|
|
// Hide rigid draws using this array and this instance's model-view matrix.
|
|
// Shared models at other transforms and indexed joints are kept visible.
|
|
bool PostHiddenArray(uint32_t guestArray, uint32_t size, const float modelView[12]);
|
|
uint32_t LastDrawCount();
|
|
} // namespace GxModelVisibility
|