mirror of
https://github.com/Strum355/mcshader-lsp.git
synced 2025-07-24 11:44:44 +00:00
big heckin reworkerino to use the standard #line directive as per spec
This commit is contained in:
parent
cb7c9b8b49
commit
d3365c3bff
52 changed files with 574 additions and 398 deletions
7
server/testdata/03/final.fsh
vendored
7
server/testdata/03/final.fsh
vendored
|
@ -1,7 +0,0 @@
|
|||
#version 120
|
||||
|
||||
#include "/utils/sample.glsl"
|
||||
|
||||
void main() {
|
||||
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
|
||||
}
|
25
server/testdata/03/final.fsh.merge
vendored
25
server/testdata/03/final.fsh.merge
vendored
|
@ -1,25 +0,0 @@
|
|||
#version 120
|
||||
#extension GL_GOOGLE_cpp_style_line_directive : enable
|
||||
#line 2 "!!"
|
||||
|
||||
#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
3
server/testdata/03/utils/burger.glsl
vendored
|
@ -1,3 +0,0 @@
|
|||
void burger() {
|
||||
// sample text
|
||||
}
|
7
server/testdata/03/utils/sample.glsl
vendored
7
server/testdata/03/utils/sample.glsl
vendored
|
@ -1,7 +0,0 @@
|
|||
int sample() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
#include "/utils/burger.glsl"
|
||||
|
||||
#include "/utils/test.glsl"
|
3
server/testdata/03/utils/test.glsl
vendored
3
server/testdata/03/utils/test.glsl
vendored
|
@ -1,3 +0,0 @@
|
|||
float test() {
|
||||
return 3.0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue