Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haxiomic/haxe-shader-demo
https://github.com/haxiomic/haxe-shader-demo
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/haxiomic/haxe-shader-demo
- Owner: haxiomic
- Created: 2020-10-04T17:45:19.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-06T10:59:28.000Z (over 3 years ago)
- Last Synced: 2024-04-17T21:42:56.957Z (7 months ago)
- Language: Haxe
- Size: 128 KB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Haxe Shader Demo
This is a minimal demo of getting a custom shader running using haxe. It works on the js target and uses three.js to simplify the setup (raw webgl would take quite a few lines!). For the app, I'm working on an alternative to three.js that we can use on iOS and Android
## Building
- Install haxe: https://haxe.org/download/ (I'm using 4.2.3)
- Install dependencies`npm install`
- Compile haxe js with `haxe build.hxml`, this generates `dist/main.js` and `dist/bundle.js`
- Open [index.html](./index.html) to see the result!## Live-Reload Editing
- Install vscode
- Install the [haxe extension](https://marketplace.visualstudio.com/items?itemName=nadako.vshaxe)
- Install the ["Trigger Task on Save" extension](https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.triggertaskonsave)
- Open this folder in vscode
- After editing the haxe source code, the haxe code should be automatically compiled
- To start a web server that refreshes if when source code changes, run `npm start` in this directory