From 23576685ca47abfffe8674f0c4789218ebd6d493 Mon Sep 17 00:00:00 2001
From: Tobias Frisch <tfrisch@uni-koblenz.de>
Date: Tue, 28 Sep 2021 16:57:06 +0200
Subject: [PATCH] [#105] Fixed bindless demo artifacts with nonuniformEXT()

Signed-off-by: Tobias Frisch <tfrisch@uni-koblenz.de>
---
 projects/bindless_textures/resources/shaders/shader.frag | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/projects/bindless_textures/resources/shaders/shader.frag b/projects/bindless_textures/resources/shaders/shader.frag
index 7b211cb2..c855eb40 100644
--- a/projects/bindless_textures/resources/shaders/shader.frag
+++ b/projects/bindless_textures/resources/shaders/shader.frag
@@ -12,5 +12,5 @@ layout(set=0, binding=0) uniform sampler    textureSampler;
 layout(set=0, binding=1) uniform texture2D  materialTextures[];
 
 void main()	{
-	outColor = texture(sampler2D(materialTextures[passTextureIndex], textureSampler), passUV).rgb;
+	outColor =  texture(sampler2D(materialTextures[nonuniformEXT(passTextureIndex)], textureSampler), passUV).rgb;
 }
\ No newline at end of file
-- 
GitLab