mirror of
https://github.com/termux/termux-packages.git
synced 2025-05-12 11:23:30 +00:00
- Fixes https://github.com/termux/termux-packages/issues/23809 - Fixes https://github.com/patriciogonzalezvivo/glslViewer/issues/373 Co-authored-by: Robert Kirkman <rkirkman@termux.dev>
23 lines
1006 B
Diff
23 lines
1006 B
Diff
Fixes error: call to member function 'setUniform' is ambiguous
|
|
|
|
--- a/src/core/uniforms.cpp
|
|
+++ b/src/core/uniforms.cpp
|
|
@@ -88,7 +88,7 @@ Uniforms::Uniforms() : m_frame(0), m_play(true), m_change(false) {
|
|
//
|
|
functions["u_iblLuminance"] = UniformFunction("float", [this](vera::Shader& _shader) {
|
|
if (activeCamera)
|
|
- _shader.setUniform("u_iblLuminance", 30000.0f * activeCamera->getExposure());
|
|
+ _shader.setUniform("u_iblLuminance", float(30000.0f * activeCamera->getExposure()));
|
|
},
|
|
[this]() {
|
|
if (activeCamera)
|
|
@@ -150,7 +150,7 @@ Uniforms::Uniforms() : m_frame(0), m_play(true), m_change(false) {
|
|
|
|
functions["u_cameraExposure"] = UniformFunction("float", [this](vera::Shader& _shader) {
|
|
if (activeCamera)
|
|
- _shader.setUniform("u_cameraExposure", activeCamera->getExposure());
|
|
+ _shader.setUniform("u_cameraExposure", float(activeCamera->getExposure()));
|
|
},
|
|
[this]() {
|
|
if (activeCamera)
|