Skip to content

Commit 0ae6f86

Browse files
committed
LODFrustumOrthographic
1 parent 9112ccf commit 0ae6f86

File tree

10 files changed

+34796
-61
lines changed

10 files changed

+34796
-61
lines changed

examples/basic.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33599,7 +33599,7 @@
3359933599
#include <fog_vertex>
3360033600

3360133601
// Calculate height of the title
33602-
vec4 _theight = texture2D(heightMap, vUv);
33602+
vec4 _theight = texture2D(heightMap, vMapUv);
3360333603
float _height = ((_theight.r * 255.0 * 65536.0 + _theight.g * 255.0 * 256.0 + _theight.b * 255.0) * 0.1) - 10000.0;
3360433604
vec3 _transformed = position + _height * normal;
3360533605

@@ -34142,7 +34142,7 @@
3414234142
MapMartiniHeightNode.tileSize = 256;
3414334143

3414434144
class MapView extends Mesh {
34145-
constructor(root = MapView.PLANAR, provider = new OpenStreetMapsProvider(), heightProvider = null) {
34145+
constructor(root = MapView.PLANAR, provider = new OpenStreetMapsProvider(), heightProvider = null, lod = new LODRaycast()) {
3414634146
super(undefined, new MeshBasicMaterial({ transparent: true, opacity: 0.0, depthWrite: false, colorWrite: false }));
3414734147
this.lod = null;
3414834148
this.provider = null;
@@ -34152,7 +34152,7 @@
3415234152
this.onBeforeRender = (renderer, scene, camera, geometry, material, group) => {
3415334153
this.lod.updateLOD(this, camera, renderer, scene);
3415434154
};
34155-
this.lod = new LODRaycast();
34155+
this.lod = lod;
3415634156
this.provider = provider;
3415734157
this.heightProvider = heightProvider;
3415834158
this.setRoot(root);
@@ -34257,6 +34257,11 @@
3425734257
new Frustum();
3425834258
new Vector3();
3425934259

34260+
new Matrix4();
34261+
new Vector3();
34262+
new Frustum();
34263+
new Vector3();
34264+
3426034265
class XHRUtils {
3426134266
static get(url) {
3426234267
return __awaiter(this, void 0, void 0, function* () {

examples/orthographic.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title></title>
5+
<style></style>
6+
</head>
7+
<body>
8+
<!-- GUI -->
9+
<canvas id="canvas" style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;"></canvas>
10+
11+
<!-- Code -->
12+
<script src="./orthographic.js"></script>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)