Crates.io | webgl-rc-macro |
lib.rs | webgl-rc-macro |
version | 0.1.3 |
source | src |
created_at | 2022-06-28 23:37:39.413344 |
updated_at | 2022-10-01 20:51:38.452971 |
description | GLSL loading macro for webgl-rc |
homepage | |
repository | https://github.com/monkin/webgl-rc |
max_upload_size | |
id | 615082 |
size | 11,750 |
webgl-rc
/* include absolute path 'project_dir/glsl/lib/color.glsl' */
#include <lib/color.glsl>
/* include relative path './common/bezier.glsl' */
#include "./common/bezier.glsl"
void main() {
...
}
use webgl_rc::load_glsl;
const fragment_source: &str = load_glsl!("fragment.glsl");