This project serves as a study about best practices when working with a hexagonal field and in the future is also intended to be a study on best ways to work with temperature to color comversion while retaining brightness information for later use in bloom shader rendering.
- Find or create a hexagonal manipulation crate based on these principles
- Add or include edge indexing support for future Eulerian fluid simulator
- TBD
All scripts listed below are compatible with default Windows installation of PowerShell (v6+ not required) as well as bash for Linux (scripts are polyglot)
(The bash portion of the polyglot scripts is untested, use with caution and please report back with results or a pull request)
This script installs wasm-bindgen-cli (version 0.2.84), basic-http-server
and adds wasm32-unknown-unknown to possible compilation targets.
Note that this version of wasm-bindgen-cli is required for the pipeline
defined in this repository.
(This is only necessary to run once on a single computer as the effects of this script are global.)
This script builds the project for the wasm32-unknown-unknown target in
--release mode, generates WASM bindings, and patches the generated JavaScript
file. It also moves the relevant files to their appropriate directories
in preparation for running the project on a local server or on GitHub Pages.
This script hosts the built project on a local basic-http-server
server and opens a browser at its location.
(One does not need to restart the server after building the project again, reloading the webpage in the browser is sufficent.)
(This is necessary over just opening the index.html
file in your browser so that the required resources load properly.)
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.