Skip to content

Commit

Permalink
fix broken build on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Rath committed Jan 2, 2024
1 parent dccab90 commit 1dada73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions include/tev/UberShader.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <nanogui/vector.h>

#include <tev/Box.h>
#include <optional>

namespace tev {

Expand Down
4 changes: 2 additions & 2 deletions src/UberShader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,13 @@ UberShader::UberShader(RenderPass* renderPass) {
return;
}
float cropAlpha = 1.f;
float cropAlpha = 1.0;
if (isCropped) {
if (imageUv.x < cropMin.x
|| imageUv.x > cropMax.x
|| imageUv.y < cropMin.y
|| imageUv.y > cropMax.y)
cropAlpha = 0.3f;
cropAlpha = 0.3;
}
vec4 imageVal = sample(image, imageUv);
Expand Down

0 comments on commit 1dada73

Please sign in to comment.