@woosh/meep-engine 2.119.26 → 2.119.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -36,9 +36,9 @@ export class VirtualTexturePage {
|
|
|
36
36
|
* @type {DataTexture}
|
|
37
37
|
*/
|
|
38
38
|
#page_texture = new DataTexture(
|
|
39
|
-
new Uint8Array(
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
new Uint8Array(VT_DEFAULT_PAGE_RESOLUTION * VT_DEFAULT_PAGE_RESOLUTION * 4),
|
|
40
|
+
VT_DEFAULT_PAGE_RESOLUTION,
|
|
41
|
+
VT_DEFAULT_PAGE_RESOLUTION,
|
|
42
42
|
RGBAFormat,
|
|
43
43
|
UnsignedByteType,
|
|
44
44
|
);
|
|
@@ -46,7 +46,7 @@ export class VirtualTexturePage {
|
|
|
46
46
|
#tile_copy_sampler = Sampler2D.uint8(4, 1, 1);
|
|
47
47
|
#tile_copy_texture = new DataTexture(this.#tile_copy_sampler.data, 1, 1);
|
|
48
48
|
|
|
49
|
-
#page_texture_size = [
|
|
49
|
+
#page_texture_size = [VT_DEFAULT_PAGE_RESOLUTION, VT_DEFAULT_PAGE_RESOLUTION];
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
*
|
|
@@ -49,7 +49,7 @@ export class VirtualTextureSystem {
|
|
|
49
49
|
const page = this.page;
|
|
50
50
|
const mapping = this.mapping;
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
uniforms.u_page.value = page.texture;
|
|
53
53
|
uniforms.u_page_resolution.value.set(
|
|
54
54
|
page.page_texture_resolution_in_tiles[0],
|
|
55
55
|
page.page_texture_resolution_in_tiles[1]
|