https://github.com/quantumsheep/glsl-mlog-compiler
Transpiles GLSL to mlog (Mindustry Logic)
https://github.com/quantumsheep/glsl-mlog-compiler
compiler glsl graphics-programming mindustry mindustry-logic mlog
Last synced: 5 months ago
JSON representation
Transpiles GLSL to mlog (Mindustry Logic)
- Host: GitHub
- URL: https://github.com/quantumsheep/glsl-mlog-compiler
- Owner: quantumsheep
- License: mit
- Created: 2022-01-21T14:52:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-23T13:06:10.000Z (over 4 years ago)
- Last Synced: 2025-10-09T02:04:49.617Z (10 months ago)
- Topics: compiler, glsl, graphics-programming, mindustry, mindustry-logic, mlog
- Language: Python
- Homepage:
- Size: 1.87 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GLSL to mlog compiler
Transpiles GLSL to [mlog](https://mindustrygame.github.io/wiki/logic/0-introduction/).
# Example
```glsl
void main() {
vec2 st = gl_FragCoord.xy / u_resolution.xy;
gl_FragColor = vec4(atan(st.y, st.x), sin(st.y), cos(st.x), 1.0);
}
```

# How to use
```shell
python3 . example.glsl
```