Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eronana/test_glslify
https://github.com/eronana/test_glslify
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/eronana/test_glslify
- Owner: Eronana
- Created: 2018-09-04T11:01:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-04T11:07:55.000Z (about 6 years ago)
- Last Synced: 2024-10-20T14:28:31.873Z (18 days ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```bash
npm i
npm start
```
you will see this in terminal
```
--------[ /private/tmp/test_glslify/test.frag ]--------
precision mediump float;
#pragma glslify:test = require('./test.glsl')void main() {
gl_FragColor = test(1.0);
}--------[ /private/tmp/test_glslify/test.glsl ]--------
vec4 test (float x) {
return vec4(x, x, x, x);
}#pragma glslify:export(test)
```I used `{post:true}` for glslify-test, but the transform cannot get finally glsl source.
My expected result is
```
--------[ /private/tmp/test_glslify/test.frag ]--------
precision mediump float;
#define GLSLIFY 1
vec4 test (float x) {
return vec4(x, x, x, x);
}void main() {
gl_FragColor = test(1.0);
}
```