summaryrefslogtreecommitdiff
path: root/testdata/fragment04ifthenelse.out
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-02-16 07:15:29 +0100
committerPéter Diviánszky <divipp@gmail.com>2016-02-16 07:29:03 +0100
commit6700a057f30e8ca6c8aa2dde71d03516fd7ae6cd (patch)
tree5cafa9969ae9eb0884abd4b1ece21916d1680b91 /testdata/fragment04ifthenelse.out
parent2c1c5a8ae057c4e3a93ccf2a6f796af87188c0d1 (diff)
generate functions in shaders
Diffstat (limited to 'testdata/fragment04ifthenelse.out')
-rw-r--r--testdata/fragment04ifthenelse.out7
1 files changed, 6 insertions, 1 deletions
diff --git a/testdata/fragment04ifthenelse.out b/testdata/fragment04ifthenelse.out
index 3bc71b70..1d3fd074 100644
--- a/testdata/fragment04ifthenelse.out
+++ b/testdata/fragment04ifthenelse.out
@@ -41,8 +41,13 @@ Pipeline
41 uniform float Time; 41 uniform float Time;
42 smooth in vec4 vo1; 42 smooth in vec4 vo1;
43 out vec4 f0; 43 out vec4 f0;
44 vec4 rgb(float z0,float z1,float z2) {
45 return vec4 (z0,z1,z2,1.0);
46 }
47 vec4 blue = rgb (0.0,0.0,1.0);
48 float time = Time;
44 void main() { 49 void main() {
45 f0 = (Time) < (0.5) ? vo1 : vec4 (0.0,0.0,1.0,1.0); 50 f0 = (time) < (0.5) ? vo1 : blue;
46 } 51 }
47 """ 52 """
48 } 53 }