diff options
Diffstat (limited to 'testdata/fetcharrays01.out')
-rw-r--r-- | testdata/fetcharrays01.out | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/testdata/fetcharrays01.out b/testdata/fetcharrays01.out index 6819fc6b..d4c100a2 100644 --- a/testdata/fetcharrays01.out +++ b/testdata/fetcharrays01.out | |||
@@ -26,8 +26,7 @@ Pipeline | |||
26 | , vertexShader = | 26 | , vertexShader = |
27 | """ | 27 | """ |
28 | #version 330 core | 28 | #version 330 core |
29 | vec4 texture2D(sampler2D s | 29 | vec4 texture2D(sampler2D s,vec2 uv) { |
30 | ,vec2 uv) { | ||
31 | return texture(s,uv); | 30 | return texture(s,uv); |
32 | } | 31 | } |
33 | uniform mat4 MVP; | 32 | uniform mat4 MVP; |
@@ -35,29 +34,18 @@ Pipeline | |||
35 | in vec3 vi2; | 34 | in vec3 vi2; |
36 | smooth out vec4 vo1; | 35 | smooth out vec4 vo1; |
37 | vec4 scale(float z0,vec4 z1) { | 36 | vec4 scale(float z0,vec4 z1) { |
38 | return (z1) * (vec4 (z0 | 37 | return (z1) * (vec4 (z0,z0,z0,1.0)); |
39 | ,z0 | ||
40 | ,z0 | ||
41 | ,1.0)); | ||
42 | } | 38 | } |
43 | void main() { | 39 | void main() { |
44 | gl_Position = scale (0.5 | 40 | gl_Position = scale (0.5,(MVP) * (vec4 ((vi1).x,(vi1).y,(vi1).z,1.0))); |
45 | ,(MVP) * (vec4 ((vi1).x | 41 | vo1 = vec4 ((vi1).x,(vi1).y,(vi1).z,1.0); |
46 | ,(vi1).y | ||
47 | ,(vi1).z | ||
48 | ,1.0))); | ||
49 | vo1 = vec4 ((vi1).x | ||
50 | ,(vi1).y | ||
51 | ,(vi1).z | ||
52 | ,1.0); | ||
53 | } | 42 | } |
54 | """ | 43 | """ |
55 | , geometryShader = Nothing | 44 | , geometryShader = Nothing |
56 | , fragmentShader = | 45 | , fragmentShader = |
57 | """ | 46 | """ |
58 | #version 330 core | 47 | #version 330 core |
59 | vec4 texture2D(sampler2D s | 48 | vec4 texture2D(sampler2D s,vec2 uv) { |
60 | ,vec2 uv) { | ||
61 | return texture(s,uv); | 49 | return texture(s,uv); |
62 | } | 50 | } |
63 | smooth in vec4 vo1; | 51 | smooth in vec4 vo1; |