mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
feat: post-processing effects
This commit is contained in:
parent
22e97b1766
commit
ba170035ef
19 changed files with 216 additions and 84 deletions
|
|
@ -6,10 +6,13 @@
|
|||
TEST(GLSLExtension, processing) {
|
||||
GLSLExtension glsl;
|
||||
glsl.addHeader("sum",
|
||||
"// sum function for glsl\n"
|
||||
"float sum(float a, float b) {\n"
|
||||
" return a + b;\n"
|
||||
"}\n"
|
||||
glsl.process("sum.glsl",
|
||||
"// sum function for glsl\n"
|
||||
"float sum(float a, float b) {\n"
|
||||
" return a + b;\n"
|
||||
"}\n",
|
||||
true
|
||||
)
|
||||
);
|
||||
try {
|
||||
auto processed = glsl.process("test.glsl",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue