actor panel fix
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
a0795caa13
commit
ae859942f3
@ -2017,6 +2017,7 @@ Fix memory leaks
|
|||||||
Server entities without collidables deactivate gravity trees
|
Server entities without collidables deactivate gravity trees
|
||||||
Fix texture map for lod human model
|
Fix texture map for lod human model
|
||||||
Properly show loading state when waiting on character list
|
Properly show loading state when waiting on character list
|
||||||
|
Fix standard uniform buffer interaction with actor panel
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -113,12 +113,12 @@ public class ActorPanel extends BufferedStandardDrawableContainerElement impleme
|
|||||||
/**
|
/**
|
||||||
* The FOV of the panel
|
* The FOV of the panel
|
||||||
*/
|
*/
|
||||||
float FOV = 50.0f;
|
float FOV = 100.0f;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The aspec ratio of the panel
|
* The aspec ratio of the panel
|
||||||
*/
|
*/
|
||||||
float aspectRatio = 1.9f;
|
float aspectRatio;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used for calculating drawing the panel
|
* Used for calculating drawing the panel
|
||||||
@ -214,6 +214,7 @@ public class ActorPanel extends BufferedStandardDrawableContainerElement impleme
|
|||||||
|
|
||||||
RenderingEngine.setFOV(FOV);
|
RenderingEngine.setFOV(FOV);
|
||||||
RenderingEngine.setAspectRatio(aspectRatio);
|
RenderingEngine.setAspectRatio(aspectRatio);
|
||||||
|
Globals.renderingEngine.getStandardUniformManager().update();
|
||||||
|
|
||||||
openGLState.glDepthTest(true);
|
openGLState.glDepthTest(true);
|
||||||
openGLState.glDepthFunc(GL40.GL_LESS);
|
openGLState.glDepthFunc(GL40.GL_LESS);
|
||||||
@ -272,7 +273,8 @@ public class ActorPanel extends BufferedStandardDrawableContainerElement impleme
|
|||||||
actor.draw(renderPipelineState,openGLState);
|
actor.draw(renderPipelineState,openGLState);
|
||||||
|
|
||||||
RenderingEngine.setFOV(Globals.gameConfigCurrent.getSettings().getGraphicsFOV());
|
RenderingEngine.setFOV(Globals.gameConfigCurrent.getSettings().getGraphicsFOV());
|
||||||
RenderingEngine.setAspectRatio(2.0f);
|
RenderingEngine.setAspectRatio(Globals.WINDOW_WIDTH / (float)Globals.WINDOW_HEIGHT);
|
||||||
|
Globals.renderingEngine.getStandardUniformManager().update();
|
||||||
|
|
||||||
openGLState.glDepthTest(false);
|
openGLState.glDepthTest(false);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user