Update gbuffer.fs
This commit is contained in:
parent
099b2e994d
commit
3df0baec76
|
|
@ -14,7 +14,6 @@ in vec4 fragColor;
|
||||||
uniform vec4 colDiffuse;
|
uniform vec4 colDiffuse;
|
||||||
|
|
||||||
uniform sampler2D texture0;
|
uniform sampler2D texture0;
|
||||||
uniform sampler2D texture1;
|
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
// store the fragment position vector in the first gbuffer texture
|
// store the fragment position vector in the first gbuffer texture
|
||||||
|
|
@ -24,5 +23,5 @@ void main() {
|
||||||
// and the diffuse per-fragment color
|
// and the diffuse per-fragment color
|
||||||
gAlbedoSpec.rgb = texture(texture0, fragTexCoord).rgb * colDiffuse.rgb;
|
gAlbedoSpec.rgb = texture(texture0, fragTexCoord).rgb * colDiffuse.rgb;
|
||||||
// store specular intensity in gAlbedoSpec's alpha component
|
// 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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user