THE BIG MERGE v0.9 - more opti-like

This commit is contained in:
Noah Santschi-Cooney 2020-08-04 01:33:49 +01:00
parent d35781b718
commit ae51b3b01c
No known key found for this signature in database
GPG key ID: 3B22282472C8AE48
7 changed files with 111 additions and 24 deletions

7
server/testdata/03/final.fsh vendored Normal file
View file

@ -0,0 +1,7 @@
#version 120
#include "/utils/sample.glsl"
void main() {
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
}

23
server/testdata/03/final.fsh.merge vendored Normal file
View file

@ -0,0 +1,23 @@
#version 120
#line 1
int sample() {
return 5;
}
#line 1
void burger() {
// sample text
}
#line 6
#line 1
float test() {
return 3.0;
}
#line 8
#line 4
void main() {
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
}

3
server/testdata/03/utils/burger.glsl vendored Normal file
View file

@ -0,0 +1,3 @@
void burger() {
// sample text
}

7
server/testdata/03/utils/sample.glsl vendored Normal file
View file

@ -0,0 +1,7 @@
int sample() {
return 5;
}
#include "/utils/burger.glsl"
#include "/utils/test.glsl"

3
server/testdata/03/utils/test.glsl vendored Normal file
View file

@ -0,0 +1,3 @@
float test() {
return 3.0;
}