camera test

This commit is contained in:
ikpil 2023-03-19 22:47:34 +09:00
parent e6f6d190c1
commit 90ec8a1836
2 changed files with 9 additions and 10 deletions

View File

@ -179,8 +179,8 @@ public class ModernOpenGLDraw : OpenGLDraw
_gl.UseProgram(program); _gl.UseProgram(program);
_gl.Uniform1(uniformTexture, 0); _gl.Uniform1(uniformTexture, 0);
_gl.UniformMatrix4(uniformViewMatrix, false, _viewMatrix); _gl.UniformMatrix4(uniformViewMatrix, 1, false, _viewMatrix);
_gl.UniformMatrix4(uniformProjectionMatrix, false, _projectionMatrix); _gl.UniformMatrix4(uniformProjectionMatrix, 1, false, _projectionMatrix);
_gl.Uniform1(uniformFogStart, fogStart); _gl.Uniform1(uniformFogStart, fogStart);
_gl.Uniform1(uniformFogEnd, fogEnd); _gl.Uniform1(uniformFogEnd, fogEnd);
_gl.Uniform1(uniformFog, fogEnabled ? 1.0f : 0.0f); _gl.Uniform1(uniformFog, fogEnabled ? 1.0f : 0.0f);

View File

@ -701,17 +701,16 @@ public class RecastDemo : MouseListener
dd.fog(camr * 0.1f, camr * 1.25f); dd.fog(camr * 0.1f, camr * 1.25f);
renderer.render(sample); renderer.render(sample);
// Tool tool = toolsUI.getTool(); Tool tool = toolsUI.getTool();
// if (tool != null) if (tool != null)
// { {
// tool.handleRender(renderer); tool.handleRender(renderer);
// } }
dd.fog(false); dd.fog(false);
//mouseOverMenu = _viewSys.render(window, 0, 0, width, height, (int)mousePos[0], (int)mousePos[1]); mouseOverMenu = _viewSys.render(window, 0, 0, width, height, (int)mousePos[0], (int)mousePos[1]);
_imgui.Render();
//_imgui.Render();
window.SwapBuffers(); window.SwapBuffers();
} }