Minor - Adds dynamic screen depth and near controls - V14.4.0
Implements dynamic adjustment of screen depth and near clipping plane distances via the ImGui interface. This allows users to modify the perspective projection in real-time, affecting the rendering of the scene. The changes involve: - Adding screen depth and near variables to the application class. - Exposing these variables in the ImGui settings window. - Adding functions to the application and d3d classes to update the projection matrix based on new screen depth and near values. - Updates the sky sphere size to use world scale.
This commit is contained in:
@@ -165,6 +165,16 @@ public:
|
||||
*/
|
||||
void disable_alpha_blending();
|
||||
|
||||
/**
|
||||
* Set new projection parameters.
|
||||
* @param width The new width for the projection matrix.
|
||||
* @param height The new height for the projection matrix.
|
||||
* @param screenDepth The new screen depth.
|
||||
* @param screenNear The new near clipping plane distance.
|
||||
* @return True if the projection parameters were set successfully, false otherwise.
|
||||
*/
|
||||
bool set_projection_params(int width,int height,float screenDepth, float screenNear);
|
||||
|
||||
private:
|
||||
bool vsync_enabled_;
|
||||
int video_card_memory_;
|
||||
|
||||
Reference in New Issue
Block a user