Swith orx-glslify to preprocessor usage

This commit is contained in:
Ricardo Matias
2020-03-01 14:31:06 +01:00
parent 5b2652a1d3
commit c74d4a250a
13 changed files with 355 additions and 66 deletions

View File

@@ -0,0 +1,9 @@
float luma(vec3 color) {
return dot(color, vec3(0.299, 0.587, 0.114));
}
float luma(vec4 color) {
return dot(color.rgb, vec3(0.299, 0.587, 0.114));
}
#pragma glslify: export(luma)