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

@@ -121,7 +121,7 @@ void NodePanelGrid::init_controls()
m_render->on_click = [this](Node*)
{
if (ShaderManager::ext_texture_float || ShaderManager::ext_half_float_pixel)
if (ShaderManager::ext_float32 || ShaderManager::ext_float16)
{
std::thread([this] {
bake_uvs();
@@ -350,11 +350,11 @@ void NodePanelGrid::bake_uvs()
return;
RTT fb;
if (ShaderManager::ext_texture_float)
if (ShaderManager::ext_float32)
{
fb.create(m_texture.size().x, m_texture.size().y, -1, GL_RGBA32F);
}
else if (ShaderManager::ext_half_float_pixel)
else if (ShaderManager::ext_float16)
{
fb.create(m_texture.size().x, m_texture.size().y, -1, GL_RGBA16F);
}