mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-17 21:08:14 +00:00
[client] egl: implement #include for shaders with awk
This commit is contained in:
13
client/renderers/EGL/glsl.include.awk
Normal file
13
client/renderers/EGL/glsl.include.awk
Normal file
@@ -0,0 +1,13 @@
|
||||
BEGIN { FS="\"" }
|
||||
|
||||
function process(line, second) {
|
||||
if (line ~ /^#include[ \t]*".+"[ \t]*$/) {
|
||||
while (getline < second) {
|
||||
process($0, $2)
|
||||
}
|
||||
} else {
|
||||
print line
|
||||
}
|
||||
}
|
||||
|
||||
{ process($0, $2) }
|
Reference in New Issue
Block a user