An open API service indexing awesome lists of open source software.

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)

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);
}
```
![Example 1](https://i.imgur.com/ZVw7w8X.png)

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