mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
add 'do-trace-shaders' setting and fix shaders recompiling
This commit is contained in:
parent
5e3373313b
commit
a621b179d3
10 changed files with 84 additions and 26 deletions
|
|
@ -11,7 +11,7 @@ TEST(GLSLExtension, processing) {
|
|||
"float sum(float a, float b) {\n"
|
||||
" return a + b;\n"
|
||||
"}\n",
|
||||
true
|
||||
true, {}
|
||||
)
|
||||
);
|
||||
try {
|
||||
|
|
@ -27,7 +27,7 @@ TEST(GLSLExtension, processing) {
|
|||
" vec4 color = texture(u_screen, v_uv);\n"
|
||||
" return mix(color, 1.0 - color, p_intensity);\n"
|
||||
"}\n",
|
||||
false);
|
||||
false, {});
|
||||
std::cout << processed.code << std::endl;
|
||||
} catch (const parsing_error& err) {
|
||||
std::cerr << err.errorLog() << std::endl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue