Skip to content
Permalink
Browse files

- fix some vulkan warnings

  • Loading branch information...
dpjudas committed May 13, 2019
1 parent 6f68356 commit bab5862383edbc530c4bc83a23f5a65a460c6c06
Showing with 16 additions and 0 deletions.
  1. +8 −0 wadsrc/static/shaders/glsl/fogboundary.fp
  2. +8 −0 wadsrc/static/shaders/glsl/stencil.fp
@@ -1,5 +1,9 @@
layout(location=2) in vec4 pixelpos;
layout(location=0) out vec4 FragColor;
#ifdef GBUFFER_PASS
layout(location=1) out vec4 FragFog;
layout(location=2) out vec4 FragNormal;
#endif

//===========================================================================
//
@@ -25,5 +29,9 @@ void main()
}
fogfactor = exp2 (uFogDensity * fogdist);
FragColor = vec4(uFogColor.rgb, 1.0 - fogfactor);
#ifdef GBUFFER_PASS
FragFog = vec4(0.0, 0.0, 0.0, 1.0);
FragNormal = vec4(0.5, 0.5, 0.5, 1.0);
#endif
}

@@ -1,7 +1,15 @@
layout(location=0) out vec4 FragColor;
#ifdef GBUFFER_PASS
layout(location=1) out vec4 FragFog;
layout(location=2) out vec4 FragNormal;
#endif

void main()
{
FragColor = vec4(1.0, 1.0, 1.0, 0.0);
#ifdef GBUFFER_PASS
FragFog = vec4(0.0, 0.0, 0.0, 1.0);
FragNormal = vec4(0.5, 0.5, 0.5, 1.0);
#endif
}

0 comments on commit bab5862

Please sign in to comment.
You can’t perform that action at this time.