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/NewStyle.out | |
parent | 1a7544763729938e7009ead1e375e9bbf413afb0 (diff) |
improve pretty print layout & show desugared source code in .out files
Diffstat (limited to 'testdata/NewStyle.out')
-rw-r--r-- | testdata/NewStyle.out | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/testdata/NewStyle.out b/testdata/NewStyle.out index ec16a74c..a950e3cf 100644 --- a/testdata/NewStyle.out +++ b/testdata/NewStyle.out | |||
@@ -24,22 +24,17 @@ Pipeline | |||
24 | , vertexShader = | 24 | , vertexShader = |
25 | """ | 25 | """ |
26 | #version 330 core | 26 | #version 330 core |
27 | vec4 texture2D(sampler2D s | 27 | vec4 texture2D(sampler2D s,vec2 uv) { |
28 | ,vec2 uv) { | ||
29 | return texture(s,uv); | 28 | return texture(s,uv); |
30 | } | 29 | } |
31 | uniform mat4 MVP; | 30 | uniform mat4 MVP; |
32 | in vec4 vi1; | 31 | in vec4 vi1; |
33 | smooth out vec4 vo1; | 32 | smooth out vec4 vo1; |
34 | vec4 scale(float z0,vec4 z1) { | 33 | vec4 scale(float z0,vec4 z1) { |
35 | return (z1) * (vec4 (z0 | 34 | return (z1) * (vec4 (z0,z0,z0,1.0)); |
36 | ,z0 | ||
37 | ,z0 | ||
38 | ,1.0)); | ||
39 | } | 35 | } |
40 | void main() { | 36 | void main() { |
41 | gl_Position = scale (0.5 | 37 | gl_Position = scale (0.5,(MVP) * (vi1)); |
42 | ,(MVP) * (vi1)); | ||
43 | vo1 = vi1; | 38 | vo1 = vi1; |
44 | } | 39 | } |
45 | """ | 40 | """ |
@@ -47,8 +42,7 @@ Pipeline | |||
47 | , fragmentShader = | 42 | , fragmentShader = |
48 | """ | 43 | """ |
49 | #version 330 core | 44 | #version 330 core |
50 | vec4 texture2D(sampler2D s | 45 | vec4 texture2D(sampler2D s,vec2 uv) { |
51 | ,vec2 uv) { | ||
52 | return texture(s,uv); | 46 | return texture(s,uv); |
53 | } | 47 | } |
54 | smooth in vec4 vo1; | 48 | smooth in vec4 vo1; |