Skip to content

Commit

Permalink
- fix some vulkan warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas authored and madame-rachelle committed May 14, 2019
1 parent bbf9a9a commit 91fdd72
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wadsrc/static/shaders/glsl/fogboundary.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

//===========================================================================
//
Expand All @@ -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
}

8 changes: 8 additions & 0 deletions wadsrc/static/shaders/glsl/stencil.fp
@@ -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 91fdd72

Please sign in to comment.