fix glsl float interpolation, fix layers on ui reload, add vr thread for Quest
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user