1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-16 10:04:28 +02:00

#23 add shader cache warm-up combinations

This commit is contained in:
XProger
2018-03-06 04:26:50 +03:00
parent 1d9f40d6a3
commit 06e0eb560c

View File

@@ -41,7 +41,7 @@ struct ShaderCache {
ShaderCache() {
memset(shaders, 0, sizeof(shaders));
LOG("shader: cache warm up...\n");
LOG("shader: cache warm-up...\n");
prepareCompose(FX_NONE);
if (Core::settings.detail.water > Core::Settings::LOW)
prepareCompose(FX_CLIP_PLANE);
@@ -76,6 +76,8 @@ struct ShaderCache {
compile(Core::passCompose, Shader::ENTITY, fx | FX_NONE);
compile(Core::passCompose, Shader::ENTITY, fx | FX_UNDERWATER);
compile(Core::passCompose, Shader::ENTITY, fx | FX_UNDERWATER | FX_ALPHA_TEST | FX_CLIP_PLANE);
compile(Core::passCompose, Shader::ENTITY, fx | FX_UNDERWATER | FX_ALPHA_TEST);
compile(Core::passCompose, Shader::ENTITY, fx | FX_ALPHA_TEST);
compile(Core::passCompose, Shader::SPRITE, fx | FX_ALPHA_TEST);
compile(Core::passCompose, Shader::SPRITE, fx | FX_UNDERWATER | FX_ALPHA_TEST);