summaryrefslogtreecommitdiff
path: root/testdata/editor-examples/Heartbeat.out
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/editor-examples/Heartbeat.out')
-rw-r--r--testdata/editor-examples/Heartbeat.out41
1 files changed, 24 insertions, 17 deletions
diff --git a/testdata/editor-examples/Heartbeat.out b/testdata/editor-examples/Heartbeat.out
index 99d469b1..81eec655 100644
--- a/testdata/editor-examples/Heartbeat.out
+++ b/testdata/editor-examples/Heartbeat.out
@@ -85,8 +85,11 @@ Pipeline
85 in vec4 vi1; 85 in vec4 vi1;
86 in vec2 vi2; 86 in vec2 vi2;
87 smooth out vec2 vo1; 87 smooth out vec2 vo1;
88 vec4 scale(float z0,vec4 z1) {
89 return (z1) * (vec4 (z0,z0,z0,1.0));
90 }
88 void main() { 91 void main() {
89 gl_Position = (vi1) * (vec4 (1.0,1.0,1.0,1.0)); 92 gl_Position = scale (1.0,vi1);
90 vo1 = vec2 ((vi2).x,(1.0) - ((vi2).y)); 93 vo1 = vec2 ((vi2).x,(1.0) - ((vi2).y));
91 } 94 }
92 """ 95 """
@@ -100,30 +103,31 @@ Pipeline
100 uniform float Time; 103 uniform float Time;
101 smooth in vec2 vo1; 104 smooth in vec2 vo1;
102 out vec4 f0; 105 out vec4 f0;
106 vec4 rgb(float z0,float z1,float z2) {
107 return vec4 (z0,z1,z2,1.0);
108 }
109 vec4 blue = rgb (0.0,0.0,1.0);
110 vec4 navy = rgb (0.0,0.0,0.5);
111 float time = Time;
112 vec4 white = rgb (1.0,1.0,1.0);
113 vec4 yellow = rgb (1.0,1.0,0.0);
103 void main() { 114 void main() {
104 f0 = 115 f0 =
105 ((((((vo1).x) - (0.85)) * (((vo1).x) - (0.85))) + ((((vo1).y) - (0.85)) * (((vo1).y) - (0.85)))) + ((5.0e-4) * (sin 116 ((((((vo1).x) - (0.85)) * (((vo1).x) - (0.85))) + ((((vo1).y) - (0.85)) * (((vo1).y) - (0.85)))) + ((5.0e-4) * (sin
106 (((3.0) * (atan 117 (((3.0) * (atan
107 (((vo1).x) - (0.85) 118 (((vo1).x) - (0.85)
108 ,((vo1).y) - (0.85)))) + ((15.0) * (Time)))))) < ((5.0e-3) * (abs 119 ,((vo1).y) - (0.85)))) + ((15.0) * (time)))))) < ((5.0e-3) * (abs
109 ((sin ((Time) * (4.0))) - (0.37)))) ? vec4 120 ((sin
110 (0.0 121 ((time) * (4.0))) - (0.37)))) ? navy : ((((((vo1).x) - (0.85)) * (((vo1).x) - (0.85))) + ((((vo1).y) - (0.85)) * (((vo1).y) - (0.85)))) + ((2.0e-3) * (sin
111 ,0.0
112 ,0.5
113 ,1.0) : ((((((vo1).x) - (0.85)) * (((vo1).x) - (0.85))) + ((((vo1).y) - (0.85)) * (((vo1).y) - (0.85)))) + ((2.0e-3) * (sin
114 (((5.0) * (atan 122 (((5.0) * (atan
115 (((vo1).x) - (0.85) 123 (((vo1).x) - (0.85)
116 ,((vo1).y) - (0.85)))) - ((5.0) * (Time)))))) < ((2.0e-2) * (abs 124 ,((vo1).y) - (0.85)))) - ((5.0) * (time)))))) < ((2.0e-2) * (abs
117 ((sin ((Time) * (4.0))) - (0.37)))) ? vec4 125 ((sin
118 (0.0 126 ((time) * (4.0))) - (0.37)))) ? blue : ((((((vo1).x) - (0.85)) * (((vo1).x) - (0.85))) + ((((vo1).y) - (0.85)) * (((vo1).y) - (0.85)))) + ((2.0e-3) * (sin
119 ,0.0
120 ,1.0
121 ,1.0) : ((((((vo1).x) - (0.85)) * (((vo1).x) - (0.85))) + ((((vo1).y) - (0.85)) * (((vo1).y) - (0.85)))) + ((2.0e-3) * (sin
122 (((7.0) * (atan 127 (((7.0) * (atan
123 (((vo1).x) - (0.85) 128 (((vo1).x) - (0.85)
124 ,((vo1).y) - (0.85)))) + ((3.0) * (Time)))))) < ((5.0e-2) * (abs 129 ,((vo1).y) - (0.85)))) + ((3.0) * (time)))))) < ((5.0e-2) * (abs
125 ((sin ((Time) * (4.0))) - (0.37)))) ? vec4 130 ((sin ((time) * (4.0))) - (0.37)))) ? white : yellow;
126 (1.0,1.0,1.0,1.0) : vec4 (1.0,1.0,0.0,1.0);
127 } 131 }
128 """ 132 """
129 } 133 }
@@ -146,8 +150,11 @@ Pipeline
146 in vec4 vi1; 150 in vec4 vi1;
147 in vec2 vi2; 151 in vec2 vi2;
148 smooth out vec2 vo1; 152 smooth out vec2 vo1;
153 vec4 scale(float z0,vec4 z1) {
154 return (z1) * (vec4 (z0,z0,z0,1.0));
155 }
149 void main() { 156 void main() {
150 gl_Position = ((MVP) * (vi1)) * (vec4 (0.5,0.5,0.5,1.0)); 157 gl_Position = scale (0.5,(MVP) * (vi1));
151 vo1 = vi2; 158 vo1 = vi2;
152 } 159 }
153 """ 160 """