├── .github ├── FUNDING.yml ├── codeql │ └── codeql-config.yml └── workflows │ ├── codeql.yml │ ├── eslint.yml │ └── node.js.yml ├── .gitignore ├── LICENSE ├── README.md ├── eslint.config.js ├── examples ├── example.ts ├── example_insta.ts ├── exporter.ts ├── showcase │ ├── terrain.ts │ └── world.ts ├── test.ts ├── test │ ├── main.ts │ ├── shared.ts │ ├── terrain-generator.ts │ ├── terrain-worker.ts │ └── terrain.ts └── test2 │ ├── oldmain.ts │ ├── oldterrain-generation.ts │ └── oldterrain-worker.ts ├── index.html ├── package.json ├── public ├── Bark_NormalTree.png ├── Bark_NormalTree_Normal.png ├── Leaf_Pine_C.png ├── Pine_5.bin ├── Pine_5.gltf ├── grass.jpg └── tree.glb ├── src ├── core │ ├── octahedralImpostor.ts │ └── octahedralImpostorMaterial.ts ├── index.ts ├── shaders │ ├── atlas_texture │ │ ├── octahedral_atlas_fragment.glsl │ │ └── octahedral_atlas_vertex.glsl │ └── impostor │ │ ├── octahedral_impostor_shader_map_fragment.glsl │ │ ├── octahedral_impostor_shader_normal_fragment_begin.glsl │ │ ├── octahedral_impostor_shader_params_fragment.glsl │ │ ├── octahedral_impostor_shader_params_vertex.glsl │ │ └── octahedral_impostor_shader_vertex.glsl └── utils │ ├── computeObjectBoundingSphere.ts │ ├── createTextureAtlas.ts │ ├── exportTextureFromRenderTarget.ts │ └── octahedronUtils.ts ├── tsconfig.build.json ├── tsconfig.json └── vite.config.js /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: agargaro 2 | -------------------------------------------------------------------------------- /.github/codeql/codeql-config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/.github/codeql/codeql-config.yml -------------------------------------------------------------------------------- /.github/workflows/codeql.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/.github/workflows/codeql.yml -------------------------------------------------------------------------------- /.github/workflows/eslint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/.github/workflows/eslint.yml -------------------------------------------------------------------------------- /.github/workflows/node.js.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/.github/workflows/node.js.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/README.md -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/eslint.config.js -------------------------------------------------------------------------------- /examples/example.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/examples/example.ts -------------------------------------------------------------------------------- /examples/example_insta.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/examples/example_insta.ts -------------------------------------------------------------------------------- /examples/exporter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/examples/exporter.ts -------------------------------------------------------------------------------- /examples/showcase/terrain.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/examples/showcase/terrain.ts -------------------------------------------------------------------------------- /examples/showcase/world.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/examples/showcase/world.ts -------------------------------------------------------------------------------- /examples/test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/examples/test.ts -------------------------------------------------------------------------------- /examples/test/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/examples/test/main.ts -------------------------------------------------------------------------------- /examples/test/shared.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/examples/test/shared.ts -------------------------------------------------------------------------------- /examples/test/terrain-generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/examples/test/terrain-generator.ts -------------------------------------------------------------------------------- /examples/test/terrain-worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/examples/test/terrain-worker.ts -------------------------------------------------------------------------------- /examples/test/terrain.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/examples/test/terrain.ts -------------------------------------------------------------------------------- /examples/test2/oldmain.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/examples/test2/oldmain.ts -------------------------------------------------------------------------------- /examples/test2/oldterrain-generation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/examples/test2/oldterrain-generation.ts -------------------------------------------------------------------------------- /examples/test2/oldterrain-worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/examples/test2/oldterrain-worker.ts -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/index.html -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/package.json -------------------------------------------------------------------------------- /public/Bark_NormalTree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/public/Bark_NormalTree.png -------------------------------------------------------------------------------- /public/Bark_NormalTree_Normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/public/Bark_NormalTree_Normal.png -------------------------------------------------------------------------------- /public/Leaf_Pine_C.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/public/Leaf_Pine_C.png -------------------------------------------------------------------------------- /public/Pine_5.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/public/Pine_5.bin -------------------------------------------------------------------------------- /public/Pine_5.gltf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/public/Pine_5.gltf -------------------------------------------------------------------------------- /public/grass.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/public/grass.jpg -------------------------------------------------------------------------------- /public/tree.glb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/public/tree.glb -------------------------------------------------------------------------------- /src/core/octahedralImpostor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/src/core/octahedralImpostor.ts -------------------------------------------------------------------------------- /src/core/octahedralImpostorMaterial.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/src/core/octahedralImpostorMaterial.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/shaders/atlas_texture/octahedral_atlas_fragment.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/src/shaders/atlas_texture/octahedral_atlas_fragment.glsl -------------------------------------------------------------------------------- /src/shaders/atlas_texture/octahedral_atlas_vertex.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/src/shaders/atlas_texture/octahedral_atlas_vertex.glsl -------------------------------------------------------------------------------- /src/shaders/impostor/octahedral_impostor_shader_map_fragment.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/src/shaders/impostor/octahedral_impostor_shader_map_fragment.glsl -------------------------------------------------------------------------------- /src/shaders/impostor/octahedral_impostor_shader_normal_fragment_begin.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/src/shaders/impostor/octahedral_impostor_shader_normal_fragment_begin.glsl -------------------------------------------------------------------------------- /src/shaders/impostor/octahedral_impostor_shader_params_fragment.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/src/shaders/impostor/octahedral_impostor_shader_params_fragment.glsl -------------------------------------------------------------------------------- /src/shaders/impostor/octahedral_impostor_shader_params_vertex.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/src/shaders/impostor/octahedral_impostor_shader_params_vertex.glsl -------------------------------------------------------------------------------- /src/shaders/impostor/octahedral_impostor_shader_vertex.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/src/shaders/impostor/octahedral_impostor_shader_vertex.glsl -------------------------------------------------------------------------------- /src/utils/computeObjectBoundingSphere.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/src/utils/computeObjectBoundingSphere.ts -------------------------------------------------------------------------------- /src/utils/createTextureAtlas.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/src/utils/createTextureAtlas.ts -------------------------------------------------------------------------------- /src/utils/exportTextureFromRenderTarget.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/src/utils/exportTextureFromRenderTarget.ts -------------------------------------------------------------------------------- /src/utils/octahedronUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/src/utils/octahedronUtils.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/agargaro/octahedral-impostor/HEAD/vite.config.js --------------------------------------------------------------------------------