diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-05-01 19:13:34 +0200 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-05-01 19:13:34 +0200 |
commit | 90e336391673ac1cf9ff582e98e35faf89a8f09d (patch) | |
tree | 0b7a14dbfc5734c07c2ae4ed34cb679fecd10d3f /testdata/texture02.out | |
parent | 1a7544763729938e7009ead1e375e9bbf413afb0 (diff) |
improve pretty print layout & show desugared source code in .out files
Diffstat (limited to 'testdata/texture02.out')
-rw-r--r-- | testdata/texture02.out | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/testdata/texture02.out b/testdata/texture02.out index 888df86a..610acbe4 100644 --- a/testdata/texture02.out +++ b/testdata/texture02.out | |||
@@ -79,8 +79,7 @@ Pipeline | |||
79 | , vertexShader = | 79 | , vertexShader = |
80 | """ | 80 | """ |
81 | #version 330 core | 81 | #version 330 core |
82 | vec4 texture2D(sampler2D s | 82 | vec4 texture2D(sampler2D s,vec2 uv) { |
83 | ,vec2 uv) { | ||
84 | return texture(s,uv); | 83 | return texture(s,uv); |
85 | } | 84 | } |
86 | uniform mat4 MVP; | 85 | uniform mat4 MVP; |
@@ -88,14 +87,10 @@ Pipeline | |||
88 | in vec2 vi2; | 87 | in vec2 vi2; |
89 | smooth out vec2 vo1; | 88 | smooth out vec2 vo1; |
90 | vec4 scale(float z0,vec4 z1) { | 89 | vec4 scale(float z0,vec4 z1) { |
91 | return (z1) * (vec4 (z0 | 90 | return (z1) * (vec4 (z0,z0,z0,1.0)); |
92 | ,z0 | ||
93 | ,z0 | ||
94 | ,1.0)); | ||
95 | } | 91 | } |
96 | void main() { | 92 | void main() { |
97 | gl_Position = scale (0.5 | 93 | gl_Position = scale (0.5,(MVP) * (vi1)); |
98 | ,(MVP) * (vi1)); | ||
99 | vo1 = vi2; | 94 | vo1 = vi2; |
100 | } | 95 | } |
101 | """ | 96 | """ |
@@ -103,8 +98,7 @@ Pipeline | |||
103 | , fragmentShader = | 98 | , fragmentShader = |
104 | """ | 99 | """ |
105 | #version 330 core | 100 | #version 330 core |
106 | vec4 texture2D(sampler2D s | 101 | vec4 texture2D(sampler2D s,vec2 uv) { |
107 | ,vec2 uv) { | ||
108 | return texture(s,uv); | 102 | return texture(s,uv); |
109 | } | 103 | } |
110 | uniform sampler2D s0; | 104 | uniform sampler2D s0; |