Typo in comment.

This commit is contained in:
luboslenco 2016-10-26 14:23:42 +02:00
parent 8e21184c37
commit 547d22757e
2 changed files with 2 additions and 2 deletions

View file

@ -135,7 +135,7 @@ void main() {
fragColor[0] = vec4(n.xy, packFloat(metalness, roughness), mask_probe);
#else
// fragColor[0] = vec4(n.xy, packFloat(metalness, roughness), mask);
// TODO: Can not read and write to depth buffer at once, fetch depth from g0
// TODO: Can not read and test depth buffer at once, fetch depth from g0
fragColor[0] = vec4(n.xy, packFloat(metalness, roughness), 1.0 - gl_FragCoord.z);
#endif
fragColor[1] = vec4(baseColor.rgb, occ);

View file

@ -103,7 +103,7 @@ void main() {
vec4 g1 = texture(gbuffer1, texCoord); // Basecolor.rgb, occlusion
// 0 - 1 => -1 - 1
// float depth = texture(gbufferD, texCoord).r * 2.0 - 1.0;
// TODO: Can not read and write to depth buffer at once, fetch depth from g0
// TODO: Can not read and test depth buffer at once, fetch depth from g0
float depth = (1.0 - g0.a) * 2.0 - 1.0;
vec3 n;