Crates.io | webgl-rc-macro |
lib.rs | webgl-rc-macro |
version | 0.1.4 |
source | src |
created_at | 2022-06-28 23:37:39.413344 |
updated_at | 2024-10-12 18:50:50.60535 |
description | GLSL loading macro for webgl-rc |
homepage | |
repository | https://github.com/monkin/webgl-rc |
max_upload_size | |
id | 615082 |
size | 11,882 |
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");