瀏覽代碼

Update gbuffer.fs

pull/4714/head
MikiZX1 2 月之前
committed by GitHub
父節點
當前提交
3df0baec76
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: B5690EEEBB952194
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      examples/shaders/resources/shaders/glsl100/gbuffer.fs

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

Loading…
取消
儲存