Skip to content

Commit b3b1e32

Browse files
committed
remove setting up 1.f alpha when UI is sampling non-font texture, update examples_tests submodule
1 parent ca04c4a commit b3b1e32

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/nbl/ext/ImGui/shaders/fragment.hlsl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,5 @@ float4 PSMain(PSInput input) : SV_Target0
3737
// BDA for requesting object data
3838
const PerObjectData self = vk::RawBufferLoad<PerObjectData>(pc.elementBDA + sizeof(PerObjectData)* input.drawID);
3939

40-
float4 texel = textures[NonUniformResourceIndex(self.texId)].Sample(samplerStates[self.texId], input.uv) * input.color;
41-
42-
if(self.texId != 0) // TMP!
43-
texel.w = 1.f;
44-
45-
return texel;
40+
return textures[NonUniformResourceIndex(self.texId)].Sample(samplerStates[self.texId], input.uv) * input.color;
4641
}

0 commit comments

Comments
 (0)