forked from mirror/DotRecast
camera test
This commit is contained in:
parent
e6f6d190c1
commit
90ec8a1836
|
@ -179,8 +179,8 @@ public class ModernOpenGLDraw : OpenGLDraw
|
|||
|
||||
_gl.UseProgram(program);
|
||||
_gl.Uniform1(uniformTexture, 0);
|
||||
_gl.UniformMatrix4(uniformViewMatrix, false, _viewMatrix);
|
||||
_gl.UniformMatrix4(uniformProjectionMatrix, false, _projectionMatrix);
|
||||
_gl.UniformMatrix4(uniformViewMatrix, 1, false, _viewMatrix);
|
||||
_gl.UniformMatrix4(uniformProjectionMatrix, 1, false, _projectionMatrix);
|
||||
_gl.Uniform1(uniformFogStart, fogStart);
|
||||
_gl.Uniform1(uniformFogEnd, fogEnd);
|
||||
_gl.Uniform1(uniformFog, fogEnabled ? 1.0f : 0.0f);
|
||||
|
|
|
@ -701,17 +701,16 @@ public class RecastDemo : MouseListener
|
|||
|
||||
dd.fog(camr * 0.1f, camr * 1.25f);
|
||||
renderer.render(sample);
|
||||
// Tool tool = toolsUI.getTool();
|
||||
// if (tool != null)
|
||||
// {
|
||||
// tool.handleRender(renderer);
|
||||
// }
|
||||
Tool tool = toolsUI.getTool();
|
||||
if (tool != null)
|
||||
{
|
||||
tool.handleRender(renderer);
|
||||
}
|
||||
|
||||
dd.fog(false);
|
||||
|
||||
//mouseOverMenu = _viewSys.render(window, 0, 0, width, height, (int)mousePos[0], (int)mousePos[1]);
|
||||
|
||||
//_imgui.Render();
|
||||
mouseOverMenu = _viewSys.render(window, 0, 0, width, height, (int)mousePos[0], (int)mousePos[1]);
|
||||
_imgui.Render();
|
||||
|
||||
window.SwapBuffers();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue