diff options
Diffstat (limited to 'testdata/editor-examples/Tetrahedron.out')
-rw-r--r-- | testdata/editor-examples/Tetrahedron.out | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/testdata/editor-examples/Tetrahedron.out b/testdata/editor-examples/Tetrahedron.out index 77fe2a7e..f81fb7a4 100644 --- a/testdata/editor-examples/Tetrahedron.out +++ b/testdata/editor-examples/Tetrahedron.out | |||
@@ -31,8 +31,11 @@ Pipeline | |||
31 | uniform mat4 MVP; | 31 | uniform mat4 MVP; |
32 | in vec4 vi1; | 32 | in vec4 vi1; |
33 | smooth out vec4 vo1; | 33 | smooth out vec4 vo1; |
34 | vec4 scale(float z0,vec4 z1) { | ||
35 | return (z1) * (vec4 (z0,z0,z0,1.0)); | ||
36 | } | ||
34 | void main() { | 37 | void main() { |
35 | gl_Position = ((MVP) * (vi1)) * (vec4 (0.5,0.5,0.5,1.0)); | 38 | gl_Position = scale (0.5,(MVP) * (vi1)); |
36 | vo1 = vi1; | 39 | vo1 = vi1; |
37 | } | 40 | } |
38 | """ | 41 | """ |
@@ -46,18 +49,26 @@ Pipeline | |||
46 | uniform float Time; | 49 | uniform float Time; |
47 | smooth in vec4 vo1; | 50 | smooth in vec4 vo1; |
48 | out vec4 f0; | 51 | out vec4 f0; |
52 | float f(float z0) { | ||
53 | return (mod | ||
54 | (((z0) + (sin (z0))) + (sin ((1.1) * (z0))),4.0)) * (2.0); | ||
55 | } | ||
56 | mat4 rotMatrixY(float z0) { | ||
57 | return mat4 (vec4 (cos (z0),0.0,(0.0) - (sin (z0)),0.0) | ||
58 | ,vec4 (0.0,1.0,0.0,0.0) | ||
59 | ,vec4 (sin (z0),0.0,cos (z0),0.0) | ||
60 | ,vec4 (0.0,0.0,0.0,1.0)); | ||
61 | } | ||
62 | mat4 rotMatrixZ(float z0) { | ||
63 | return mat4 (vec4 (cos (z0),sin (z0),0.0,0.0) | ||
64 | ,vec4 ((0.0) - (sin (z0)),cos (z0),0.0,0.0) | ||
65 | ,vec4 (0.0,0.0,1.0,0.0) | ||
66 | ,vec4 (0.0,0.0,0.0,1.0)); | ||
67 | } | ||
49 | void main() { | 68 | void main() { |
50 | if (!(true)) discard; | 69 | if (!(true)) discard; |
51 | f0 = ((mat4 (vec4 (cos (Time),sin (Time),0.0,0.0) | 70 | f0 = ((rotMatrixZ (Time)) * ((rotMatrixY (Time)) * (vo1))) * (f |
52 | ,vec4 ((0.0) - (sin (Time)),cos (Time),0.0,0.0) | 71 | (Time)); |
53 | ,vec4 (0.0,0.0,1.0,0.0) | ||
54 | ,vec4 (0.0,0.0,0.0,1.0))) * ((mat4 | ||
55 | (vec4 (cos (Time),0.0,(0.0) - (sin (Time)),0.0) | ||
56 | ,vec4 (0.0,1.0,0.0,0.0) | ||
57 | ,vec4 (sin (Time),0.0,cos (Time),0.0) | ||
58 | ,vec4 (0.0,0.0,0.0,1.0))) * (vo1))) * ((mod | ||
59 | (((Time) + (sin (Time))) + (sin ((1.1) * (Time))) | ||
60 | ,4.0)) * (2.0)); | ||
61 | } | 72 | } |
62 | """ | 73 | """ |
63 | } | 74 | } |