fix glsl float interpolation, fix layers on ui reload, add vr thread for Quest

This commit is contained in:
2019-07-30 22:10:48 +02:00
parent f2d2ef1067
commit 945028f171
12 changed files with 95 additions and 40 deletions

View File

@@ -19,13 +19,15 @@ void App::initShaders()
ShaderManager::ext_framebuffer_fetch = true;
#if __GLES__
if (ext.find("texture_float") != std::string::npos)
ShaderManager::ext_texture_float = true;
ShaderManager::ext_float32 = true;
if (ext.find("texture_float_linear") != std::string::npos)
ShaderManager::ext_float32_linear = true;
if (ext.find("color_buffer_float") != std::string::npos)
ShaderManager::ext_texture_float = true;
if (ext.find("texture__half_float") != std::string::npos)
ShaderManager::ext_half_float_pixel = true;
ShaderManager::ext_float32 = true;
if (ext.find("texture_half_float") != std::string::npos)
ShaderManager::ext_float16 = true;
if (ext.find("color_buffer_half_float") != std::string::npos)
ShaderManager::ext_half_float_pixel = true;
ShaderManager::ext_float16 = true;
#endif
LOG("EXT: %s", ext.c_str());
}
@@ -33,8 +35,9 @@ void App::initShaders()
#if __GL__
// In OpenGL 3.3 these should be already available
ShaderManager::ext_texture_float = true;
ShaderManager::ext_half_float_pixel = true;
ShaderManager::ext_float32_linear = true;
ShaderManager::ext_float32 = true;
ShaderManager::ext_float16 = true;
#endif
LOG("Shader Extension shader_framebuffer_fetch: %s", ShaderManager::ext_framebuffer_fetch ? "enabled" : "disabled");