From 9f8258b9f870bd3b716e16c7d0e575ea81fe41ef Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Fri, 10 Jun 2022 10:29:29 +0200 Subject: [PATCH] :wrench: Fix setting of window size --- resources/shaders/common.glsl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/shaders/common.glsl b/resources/shaders/common.glsl index a1026c0..3ec9fb9 100644 --- a/resources/shaders/common.glsl +++ b/resources/shaders/common.glsl @@ -38,8 +38,8 @@ uniform float forOpening; uniform sampler2D sampler; uniform float uDuration; -uniform float textureWidth; -uniform float textureHeight; +uniform int textureWidth; +uniform int textureHeight; uniform float animationProgress; vec2 uSize = vec2(textureWidth, textureHeight); @@ -71,8 +71,8 @@ void setOutputColor(vec4 outColor) { uniform float forOpening; uniform sampler2D sampler; uniform float uDuration; -uniform float textureWidth; -uniform float textureHeight; +uniform int textureWidth; +uniform int textureHeight; uniform float animationProgress; vec2 uSize = vec2(textureWidth, textureHeight);