smoke shader fix

This commit is contained in:
milek7
2019-09-19 19:27:42 +02:00
parent e0d828b22e
commit 3b623c4506
2 changed files with 4 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
in vec4 f_color;
in vec2 f_coord;
in vec4 f_pos;
in vec4 f_clip_pos;
in vec4 f_clip_future_pos;
@@ -8,6 +9,7 @@ in vec4 f_clip_future_pos;
uniform sampler2D tex1;
#include <common>
#include <apply_fog.glsl>
#include <tonemapping.glsl>
layout(location = 0) out vec4 out_color;

View File

@@ -2,6 +2,7 @@ layout(location = 0) in vec3 v_vert;
layout(location = 1) in vec4 v_color;
layout(location = 2) in vec2 v_coord;
out vec4 f_pos;
out vec4 f_color;
out vec2 f_coord;
@@ -12,6 +13,7 @@ out vec4 f_clip_future_pos;
void main()
{
f_pos = modelview * vec4(v_vert, 1.0f);
f_clip_pos = (projection * modelview) * vec4(v_vert, 1.0f);
f_clip_future_pos = (projection * future * modelview) * vec4(v_vert, 1.0f);