Enhance OceanLOD to consider view direction in LOD updates and adjust grid size parameters
This commit is contained in:
@@ -190,8 +190,8 @@ function drawScene() {
|
||||
camera.setRotationY((curRotY += mouseXVel * Config.MOUSE_SENSITIVITY + keyboardRotationY));
|
||||
var view = camera.getViewMatrix();
|
||||
|
||||
// Update LOD based on camera position
|
||||
oceanLOD.updateLOD(gl, camera.pos);
|
||||
// Update LOD based on camera position and view direction
|
||||
oceanLOD.updateLOD(gl, camera.pos, camera.target);
|
||||
|
||||
var model = mat4.create();
|
||||
mat4.identity(model);
|
||||
|
||||
Reference in New Issue
Block a user