2015-11-16 04:33:39 +00:00
|
|
|
#version 400
|
2015-05-15 21:32:46 +00:00
|
|
|
|
|
|
|
uniform sampler2D texSampler2D;
|
|
|
|
uniform sampler3D texSampler3D;
|
|
|
|
|
2016-02-16 03:58:50 +00:00
|
|
|
in float blend;
|
|
|
|
in vec2 scale;
|
|
|
|
in vec4 u;
|
2015-05-15 21:32:46 +00:00
|
|
|
|
2015-11-16 04:33:39 +00:00
|
|
|
in vec2 t;
|
|
|
|
in vec3 coords;
|
2015-05-15 21:32:46 +00:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
float blendscale = 1.789;
|
|
|
|
|
2015-11-16 04:33:39 +00:00
|
|
|
vec4 v = texture(texSampler2D, (t + scale) / scale ).wzyx;
|
2015-05-15 21:32:46 +00:00
|
|
|
|
2015-11-16 04:33:39 +00:00
|
|
|
vec4 w = texture(texSampler3D, coords) + v;
|
2015-05-15 21:32:46 +00:00
|
|
|
|
|
|
|
gl_FragColor = mix(w, u, blend * blendscale);
|
|
|
|
}
|