Ver código fonte

Update gbuffer.fs

pull/4714/head
MikiZX1 6 meses atrás
committed by GitHub
pai
commit
3df0baec76
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: B5690EEEBB952194
1 arquivos alterados com 1 adições e 2 exclusões
  1. +1
    -2
      examples/shaders/resources/shaders/glsl100/gbuffer.fs

+ 1
- 2
examples/shaders/resources/shaders/glsl100/gbuffer.fs Ver arquivo

@ -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).ran>*1.6,16.0);
gAlbedoSpec.a = texture(texture0, fragTexCoord).a;
}

Carregando…
Cancelar
Salvar