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,27 @@
#version 330
float add(float a, float b) {
return a + b;
}
float multiply(float a, float b) {
return a * b;
}
float equation(float a, float b) {
return multiply(add(a, b), b);
}
float luminance(vec3 color) {
return dot(color, vec3(0.299, 0.587, 0.114));
}
float luminance(vec4 color) {
return dot(color.rgb, vec3(0.299, 0.587, 0.114));
}
void main() {
}