From 90e336391673ac1cf9ff582e98e35faf89a8f09d Mon Sep 17 00:00:00 2001 From: Péter Diviánszky Date: Sun, 1 May 2016 19:13:34 +0200 Subject: improve pretty print layout & show desugared source code in .out files --- testdata/Spiral.out | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) (limited to 'testdata/Spiral.out') diff --git a/testdata/Spiral.out b/testdata/Spiral.out index f08fa25a..070dbd1c 100644 --- a/testdata/Spiral.out +++ b/testdata/Spiral.out @@ -25,8 +25,7 @@ Pipeline , vertexShader = """ #version 330 core - vec4 texture2D(sampler2D s - ,vec2 uv) { + vec4 texture2D(sampler2D s,vec2 uv) { return texture(s,uv); } uniform mat4 MVP; @@ -34,33 +33,23 @@ Pipeline in vec3 vi1; smooth out vec4 vo1; vec4 scale(float z0,vec4 z1) { - return (z1) * (vec4 (z0 - ,z0 - ,z0 - ,1.0)); + return (z1) * (vec4 (z0,z0,z0,1.0)); } void main() { gl_Position = scale (0.5 - ,(MVP) * (vec4 ((exp - ((((Mouse).x) - (0.5)) * ((vi1).x))) * (sin - ((0.9) * ((vi1).x))) - ,(exp - ((((Mouse).x) - (0.5)) * ((vi1).x))) * (cos + ,(MVP) * (vec4 ((exp ((((Mouse).x) - (0.5)) * ((vi1).x))) * (sin ((0.9) * ((vi1).x))) + ,(exp ((((Mouse).x) - (0.5)) * ((vi1).x))) * (cos ((0.9) * ((vi1).x))) ,((Mouse).y) * ((0.9) * ((vi1).x)) ,1.0))); - vo1 = vec4 ((vi1).x - ,(vi1).y - ,(vi1).z - ,1.0); + vo1 = vec4 ((vi1).x,(vi1).y,(vi1).z,1.0); } """ , geometryShader = Nothing , fragmentShader = """ #version 330 core - vec4 texture2D(sampler2D s - ,vec2 uv) { + vec4 texture2D(sampler2D s,vec2 uv) { return texture(s,uv); } smooth in vec4 vo1; -- cgit v1.2.3