diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-02-14 15:02:55 +0100 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-02-14 15:02:55 +0100 |
commit | 34e78f10452d1a1628a85eab443a4a672fd44ec3 (patch) | |
tree | 56321512ba2cdc3f3f62395818fa5c2f8b9a17f4 /testdata/point01.out | |
parent | 87cefc9cacb9e82c4340c8552d9373175980faca (diff) |
refactoring
Diffstat (limited to 'testdata/point01.out')
-rw-r--r-- | testdata/point01.out | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/testdata/point01.out b/testdata/point01.out index 269277a7..7eddbc45 100644 --- a/testdata/point01.out +++ b/testdata/point01.out | |||
@@ -26,30 +26,32 @@ Pipeline | |||
26 | , vertexShader = | 26 | , vertexShader = |
27 | """ | 27 | """ |
28 | #version 330 core | 28 | #version 330 core |
29 | vec4 texture2D(sampler2D s, vec2 uv){return texture(s,uv);} | 29 | vec4 texture2D(sampler2D s,vec2 uv) { |
30 | uniform mat4 MVP ; | 30 | return texture(s,uv); |
31 | in vec3 vi1 ; | 31 | } |
32 | in vec4 vi2 ; | 32 | uniform mat4 MVP; |
33 | smooth out vec4 vo1 ; | 33 | in vec3 vi1; |
34 | in vec4 vi2; | ||
35 | smooth out vec4 vo1; | ||
34 | void main() { | 36 | void main() { |
35 | gl_Position = ((MVP) * (vec4 | 37 | gl_Position = ((MVP) * (vec4 |
36 | ((vi1).x,(vi1).y,(vi1).z,1.0))) * (vec4 (0.5,0.5,0.5,1.0)); | 38 | ((vi1).x,(vi1).y,(vi1).z,1.0))) * (vec4 (0.5,0.5,0.5,1.0)); |
37 | vo1 = vi2; | 39 | vo1 = vi2; |
38 | gl_PointSize = 30.0; | 40 | gl_PointSize = 30.0; |
39 | } | 41 | } |
40 | |||
41 | """ | 42 | """ |
42 | , geometryShader = Nothing | 43 | , geometryShader = Nothing |
43 | , fragmentShader = | 44 | , fragmentShader = |
44 | """ | 45 | """ |
45 | #version 330 core | 46 | #version 330 core |
46 | vec4 texture2D(sampler2D s, vec2 uv){return texture(s,uv);} | 47 | vec4 texture2D(sampler2D s,vec2 uv) { |
47 | smooth in vec4 vo1 ; | 48 | return texture(s,uv); |
48 | out vec4 f0 ; | 49 | } |
50 | smooth in vec4 vo1; | ||
51 | out vec4 f0; | ||
49 | void main() { | 52 | void main() { |
50 | f0 = vo1; | 53 | f0 = vo1; |
51 | } | 54 | } |
52 | |||
53 | """ | 55 | """ |
54 | } | 56 | } |
55 | ] | 57 | ] |