diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-02-14 15:02:55 +0100 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-02-14 15:02:55 +0100 |
commit | 34e78f10452d1a1628a85eab443a4a672fd44ec3 (patch) | |
tree | 56321512ba2cdc3f3f62395818fa5c2f8b9a17f4 /testdata/fragment04ifthenelse.out | |
parent | 87cefc9cacb9e82c4340c8552d9373175980faca (diff) |
refactoring
Diffstat (limited to 'testdata/fragment04ifthenelse.out')
-rw-r--r-- | testdata/fragment04ifthenelse.out | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/testdata/fragment04ifthenelse.out b/testdata/fragment04ifthenelse.out index 1588f9fa..3bc71b70 100644 --- a/testdata/fragment04ifthenelse.out +++ b/testdata/fragment04ifthenelse.out | |||
@@ -21,27 +21,29 @@ Pipeline | |||
21 | , vertexShader = | 21 | , vertexShader = |
22 | """ | 22 | """ |
23 | #version 330 core | 23 | #version 330 core |
24 | vec4 texture2D(sampler2D s, vec2 uv){return texture(s,uv);} | 24 | vec4 texture2D(sampler2D s,vec2 uv) { |
25 | in vec4 vi1 ; | 25 | return texture(s,uv); |
26 | smooth out vec4 vo1 ; | 26 | } |
27 | in vec4 vi1; | ||
28 | smooth out vec4 vo1; | ||
27 | void main() { | 29 | void main() { |
28 | gl_Position = vi1; | 30 | gl_Position = vi1; |
29 | vo1 = vi1; | 31 | vo1 = vi1; |
30 | } | 32 | } |
31 | |||
32 | """ | 33 | """ |
33 | , geometryShader = Nothing | 34 | , geometryShader = Nothing |
34 | , fragmentShader = | 35 | , fragmentShader = |
35 | """ | 36 | """ |
36 | #version 330 core | 37 | #version 330 core |
37 | vec4 texture2D(sampler2D s, vec2 uv){return texture(s,uv);} | 38 | vec4 texture2D(sampler2D s,vec2 uv) { |
38 | uniform float Time ; | 39 | return texture(s,uv); |
39 | smooth in vec4 vo1 ; | 40 | } |
40 | out vec4 f0 ; | 41 | uniform float Time; |
42 | smooth in vec4 vo1; | ||
43 | out vec4 f0; | ||
41 | void main() { | 44 | void main() { |
42 | f0 = (Time) < (0.5) ? vo1 : vec4 (0.0,0.0,1.0,1.0); | 45 | f0 = (Time) < (0.5) ? vo1 : vec4 (0.0,0.0,1.0,1.0); |
43 | } | 46 | } |
44 | |||
45 | """ | 47 | """ |
46 | } | 48 | } |
47 | ] | 49 | ] |