소스 검색

Update gbuffer.fs

pull/4714/head
MikiZX1 4 달 전
committed by GitHub
부모
커밋
3df0baec76
No known key found for this signature in database GPG 키 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;
}

불러오는 중...
취소
저장