From 3df0baec763c695f283a3050619c056d02d537e0 Mon Sep 17 00:00:00 2001 From: MikiZX1 <161243635+MikiZX1@users.noreply.github.com> Date: Mon, 20 Jan 2025 10:48:59 +0100 Subject: [PATCH] Update gbuffer.fs --- examples/shaders/resources/shaders/glsl100/gbuffer.fs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/shaders/resources/shaders/glsl100/gbuffer.fs b/examples/shaders/resources/shaders/glsl100/gbuffer.fs index f18c96561..a5bf93293 100644 --- a/examples/shaders/resources/shaders/glsl100/gbuffer.fs +++ b/examples/shaders/resources/shaders/glsl100/gbuffer.fs @@ -14,7 +14,6 @@ in vec4 fragColor; uniform vec4 colDiffuse; uniform sampler2D texture0; -uniform sampler2D texture1; void main() { // store the fragment position vector in the first gbuffer texture @@ -24,5 +23,5 @@ void main() { // and the diffuse per-fragment color gAlbedoSpec.rgb = texture(texture0, fragTexCoord).rgb * colDiffuse.rgb; // store specular intensity in gAlbedoSpec's alpha component - gAlbedoSpec.a = pow(texture(texture1, fragTexCoord).r*1.6,16.0); + gAlbedoSpec.a = texture(texture0, fragTexCoord).a; }