|
|
|
@ -292,8 +292,7 @@ PhongGL::CompileState PhongGL::compile(const Configuration& configuration) { |
|
|
|
vert.addSource(Utility::format( |
|
|
|
vert.addSource(Utility::format( |
|
|
|
"#define UNIFORM_BUFFERS\n" |
|
|
|
"#define UNIFORM_BUFFERS\n" |
|
|
|
"#define DRAW_COUNT {}\n", |
|
|
|
"#define DRAW_COUNT {}\n", |
|
|
|
configuration.drawCount(), |
|
|
|
configuration.drawCount())); |
|
|
|
configuration.lightCount())); |
|
|
|
|
|
|
|
vert.addSource(configuration.flags() >= Flag::MultiDraw ? "#define MULTI_DRAW\n"_s : ""_s); |
|
|
|
vert.addSource(configuration.flags() >= Flag::MultiDraw ? "#define MULTI_DRAW\n"_s : ""_s); |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|