John Kessenich | 2f21fcc | 2015-06-17 16:15:09 +0000 | [diff] [blame] | 1 | #version 110 |
2 | |||||
3 | uniform sampler2D texSampler2D; | ||||
4 | uniform sampler3D texSampler3D; | ||||
5 | |||||
6 | uniform float blend; | ||||
7 | uniform vec2 scale; | ||||
8 | uniform vec4 u; | ||||
9 | |||||
10 | varying vec2 t; | ||||
11 | varying vec3 coords; | ||||
12 | |||||
13 | void main() | ||||
14 | { | ||||
15 | float blendscale = 1.789; | ||||
16 | |||||
17 | vec4 v = texture2D(texSampler2D, (t + scale) / scale ).wzyx; | ||||
18 | |||||
19 | vec4 w = texture3D(texSampler3D, coords) + v; | ||||
20 | |||||
21 | gl_FragColor = mix(w, u, blend * blendscale); | ||||
22 | } |