summaryrefslogtreecommitdiff
path: root/testdata/editor-examples
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-02-11 23:08:10 +0100
committerPéter Diviánszky <divipp@gmail.com>2016-02-11 23:08:10 +0100
commit4b0c42cd29c88d40014cc901c545d6184a78d521 (patch)
treec7518786732008d27f1bdf3ff252dbb3657915d8 /testdata/editor-examples
parentb90c6eae93d12b9701592fcd2c4f0d1abba71a4d (diff)
temporarily ignore also RecLC (right)
Diffstat (limited to 'testdata/editor-examples')
-rw-r--r--testdata/editor-examples/RecLC.lc14
-rw-r--r--testdata/editor-examples/RecLC.out1
2 files changed, 0 insertions, 15 deletions
diff --git a/testdata/editor-examples/RecLC.lc b/testdata/editor-examples/RecLC.lc
deleted file mode 100644
index c1de2155..00000000
--- a/testdata/editor-examples/RecLC.lc
+++ /dev/null
@@ -1,14 +0,0 @@
1
2import LambdaCube2 hiding (main)
3import RecursiveTexture hiding (main)
4
5
6inner2 =
7 makeFrame (Uniform "Time")
8 (Uniform "MVP")
9 (fetch_ "stream4" (Attribute "position4"))
10
11main :: Output
12main = ScreenOut $ snd $ iterate (\(n, f) -> (n+1, cube' 512 n f)) (0, inner2) !! 2
13
14
diff --git a/testdata/editor-examples/RecLC.out b/testdata/editor-examples/RecLC.out
deleted file mode 100644
index 3b738dd2..00000000
--- a/testdata/editor-examples/RecLC.out
+++ /dev/null
@@ -1 +0,0 @@
1Pipeline {info = "generated by lambdcube-compiler 0.5.0.0", backend = OpenGL33, textures = [TextureDescriptor {textureType = Texture2D (FloatT Red) 1, textureSize = VV2U (V2 512 512), textureSemantic = Depth, textureSampler = SamplerDescriptor {samplerWrapS = Repeat, samplerWrapT = Nothing, samplerWrapR = Nothing, samplerMinFilter = Linear, samplerMagFilter = Linear, samplerBorderColor = VV4F (V4 0.0 0.0 0.0 1.0), samplerMinLod = Nothing, samplerMaxLod = Nothing, samplerLodBias = 0.0, samplerCompareFunc = Nothing}, textureBaseLevel = 0, textureMaxLevel = 0},TextureDescriptor {textureType = Texture2D (FloatT RGBA) 1, textureSize = VV2U (V2 512 512), textureSemantic = Color, textureSampler = SamplerDescriptor {samplerWrapS = Repeat, samplerWrapT = Nothing, samplerWrapR = Nothing, samplerMinFilter = Linear, samplerMagFilter = Linear, samplerBorderColor = VV4F (V4 0.0 0.0 0.0 1.0), samplerMinLod = Nothing, samplerMaxLod = Nothing, samplerLodBias = 0.0, samplerCompareFunc = Nothing}, textureBaseLevel = 0, textureMaxLevel = 0},TextureDescriptor {textureType = Texture2D (FloatT Red) 1, textureSize = VV2U (V2 512 512), textureSemantic = Depth, textureSampler = SamplerDescriptor {samplerWrapS = Repeat, samplerWrapT = Nothing, samplerWrapR = Nothing, samplerMinFilter = Linear, samplerMagFilter = Linear, samplerBorderColor = VV4F (V4 0.0 0.0 0.0 1.0), samplerMinLod = Nothing, samplerMaxLod = Nothing, samplerLodBias = 0.0, samplerCompareFunc = Nothing}, textureBaseLevel = 0, textureMaxLevel = 0},TextureDescriptor {textureType = Texture2D (FloatT RGBA) 1, textureSize = VV2U (V2 512 512), textureSemantic = Color, textureSampler = SamplerDescriptor {samplerWrapS = Repeat, samplerWrapT = Nothing, samplerWrapR = Nothing, samplerMinFilter = Linear, samplerMagFilter = Linear, samplerBorderColor = VV4F (V4 0.0 0.0 0.0 1.0), samplerMinLod = Nothing, samplerMaxLod = Nothing, samplerLodBias = 0.0, samplerCompareFunc = Nothing}, textureBaseLevel = 0, textureMaxLevel = 0}], samplers = [], targets = [RenderTarget {renderTargets = [TargetItem {targetSemantic = Depth, targetRef = Just (Framebuffer Depth)},TargetItem {targetSemantic = Color, targetRef = Just (Framebuffer Color)}]},RenderTarget {renderTargets = [TargetItem {targetSemantic = Depth, targetRef = Just (TextureImage 0 0 Nothing)},TargetItem {targetSemantic = Color, targetRef = Just (TextureImage 1 0 Nothing)}]},RenderTarget {renderTargets = [TargetItem {targetSemantic = Depth, targetRef = Just (TextureImage 2 0 Nothing)},TargetItem {targetSemantic = Color, targetRef = Just (TextureImage 3 0 Nothing)}]}], programs = [Program {programUniforms = fromList [("MVP",M44F),("Time",Float)], programStreams = fromList [("vi1",Parameter {name = "position4", ty = V4F})], programInTextures = fromList [], programOutput = [Parameter {name = "f0", ty = V4F}], vertexShader = "#version 330 core\nvec4 texture2D(sampler2D s, vec2 uv){return texture(s,uv);}\nuniform mat4 MVP ;\nin vec4 vi1 ;\nsmooth out vec4 gl_Position ;\nvoid main() {\ngl_Position = ( ( MVP ) * ( vi1 ) ) * ( vec4 ( 0.5,0.5,0.5,1.0 ) );\nvo1 = vi1;\n}\n", geometryShader = Nothing, fragmentShader = "#version 330 core\nvec4 texture2D(sampler2D s, vec2 uv){return texture(s,uv);}\nuniform float Time ;\nsmooth in vec4 gl_Position ;\nout vec4 f0 ;\nvoid main() {\nif (!(( ( ( ( ( ( vo1 ).y ) + ( ( vo1 ).x ) ) + ( ( vo1 ).z ) ) > ( 1.0 ) ) || ( ( abs ( ( ( ( ( vo1 ).y ) - ( ( vo1 ).x ) ) + ( ( vo1 ).z ) ) - ( 1.0 ) ) ) > ( 0.25 ) ) ) && ( ( ( ( ( ( ( vo1 ).y ) + ( ( vo1 ).x ) ) - ( ( vo1 ).z ) ) > ( 1.0 ) ) || ( ( abs ( ( ( ( ( vo1 ).y ) + ( ( vo1 ).x ) ) + ( ( vo1 ).z ) ) - ( 1.0 ) ) ) > ( 0.25 ) ) ) && ( ( ( ( ( ( ( vo1 ).y ) - ( ( vo1 ).x ) ) - ( ( vo1 ).z ) ) > ( 1.0 ) ) || ( ( abs ( ( ( ( ( vo1 ).y ) + ( ( vo1 ).x ) ) - ( ( vo1 ).z ) ) - ( 1.0 ) ) ) > ( 0.25 ) ) ) && ( ( ( ( ( ( ( vo1 ).y ) - ( ( vo1 ).x ) ) + ( ( vo1 ).z ) ) > ( 1.0 ) ) || ( ( abs ( ( ( ( ( vo1 ).y ) - ( ( vo1 ).x ) ) - ( ( vo1 ).z ) ) - ( 1.0 ) ) ) > ( 0.25 ) ) ) && ( ( ( ( ( ( sin ( ( vo1 ) * ( 20.0 ) ) ).x ) * ( ( sin ( ( vo1 ) * ( 20.0 ) ) ).x ) ) + ( ( ( sin ( ( vo1 ) * ( 20.0 ) ) ).y ) * ( ( sin ( ( vo1 ) * ( 20.0 ) ) ).y ) ) ) + ( ( ( sin ( ( vo1 ) * ( 20.0 ) ) ).z ) * ( ( sin ( ( vo1 ) * ( 20.0 ) ) ).z ) ) ) > ( abs ( ( 3.0 ) * ( sin ( ( 1.0 ) * ( Time ) ) ) ) ) ) ) ) ))) discard;\n}\n"},Program {programUniforms = fromList [("MVP",M44F)], programStreams = fromList [("vi1",Parameter {name = "position4", ty = V4F}),("vi2",Parameter {name = "vertexUV", ty = V2F})], programInTextures = fromList [("s0",FTexture2D)], programOutput = [Parameter {name = "f0", ty = V4F}], vertexShader = "#version 330 core\nvec4 texture2D(sampler2D s, vec2 uv){return texture(s,uv);}\nuniform mat4 MVP ;\nin vec4 vi1 ;\nin vec2 vi2 ;\nsmooth out vec2 gl_Position ;\nvoid main() {\ngl_Position = ( MVP ) * ( ( ( mat4 ( vec4 ( 1.0,0.0,0.0,0.0 ),vec4 ( 0.0,cos ( 0.0 ),sin ( 0.0 ),0.0 ),vec4 ( 0.0,( 0.0 ) - ( sin ( 0.0 ) ),cos ( 0.0 ),0.0 ),vec4 ( 0.0,0.0,0.0,1.0 ) ) ) * ( vi1 ) ) * ( vec4 ( 0.4,0.4,0.4,1.0 ) ) );\nvo1 = vi2;\n}\n", geometryShader = Nothing, fragmentShader = "#version 330 core\nvec4 texture2D(sampler2D s, vec2 uv){return texture(s,uv);}\nuniform sampler2D s0 ;\nsmooth in vec2 gl_Position ;\nout vec4 f0 ;\nvoid main() {\nf0 = ( ( ( ( ( ( vo1 ).yyyx ) * ( 0.5 ) ) + ( texture2D ( s0,vo1 ) ) ) * ( 0.7 ) ) * ( vec4 ( 1.0,1.0,1.0,0.0 ) ) ) + ( vec4 ( 0.0,0.0,0.0,1.0 ) );\n}\n"},Program {programUniforms = fromList [("MVP",M44F)], programStreams = fromList [("vi1",Parameter {name = "position4", ty = V4F}),("vi2",Parameter {name = "vertexUV", ty = V2F})], programInTextures = fromList [("s0",FTexture2D)], programOutput = [Parameter {name = "f0", ty = V4F}], vertexShader = "#version 330 core\nvec4 texture2D(sampler2D s, vec2 uv){return texture(s,uv);}\nuniform mat4 MVP ;\nin vec4 vi1 ;\nin vec2 vi2 ;\nsmooth out vec2 gl_Position ;\nvoid main() {\ngl_Position = ( MVP ) * ( ( ( mat4 ( vec4 ( 1.0,0.0,0.0,0.0 ),vec4 ( 0.0,cos ( 0.1 ),sin ( 0.1 ),0.0 ),vec4 ( 0.0,( 0.0 ) - ( sin ( 0.1 ) ),cos ( 0.1 ),0.0 ),vec4 ( 0.0,0.0,0.0,1.0 ) ) ) * ( vi1 ) ) * ( vec4 ( 0.4,0.4,0.4,1.0 ) ) );\nvo1 = vi2;\n}\n", geometryShader = Nothing, fragmentShader = "#version 330 core\nvec4 texture2D(sampler2D s, vec2 uv){return texture(s,uv);}\nuniform sampler2D s0 ;\nsmooth in vec2 gl_Position ;\nout vec4 f0 ;\nvoid main() {\nf0 = ( ( ( ( ( ( vo1 ).yyyx ) * ( 0.5 ) ) + ( texture2D ( s0,vo1 ) ) ) * ( 0.7 ) ) * ( vec4 ( 1.0,1.0,1.0,0.0 ) ) ) + ( vec4 ( 0.0,0.0,0.0,1.0 ) );\n}\n"}], slots = [Slot {slotName = "stream4", slotStreams = fromList [("position4",V4F),("vertexUV",V2F)], slotUniforms = fromList [("MVP",M44F),("Time",Float)], slotPrimitive = Triangles, slotPrograms = [0,1,2]}], streams = [], commands = [SetRenderTarget 2,ClearRenderTarget [ClearImage {imageSemantic = Depth, clearValue = VFloat 1.0},ClearImage {imageSemantic = Color, clearValue = VV4F (V4 0.0 0.0 0.5 1.0)}],SetProgram 0,SetRasterContext (TriangleCtx CullNone PolygonFill NoOffset LastVertex),SetAccumulationContext (AccumulationContext {accViewportName = Nothing, accOperations = [DepthOp Less True,ColorOp NoBlending (VV4B (V4 True True True True))]}),RenderSlot 0,SetRenderTarget 1,ClearRenderTarget [ClearImage {imageSemantic = Depth, clearValue = VFloat 1.0},ClearImage {imageSemantic = Color, clearValue = VV4F (V4 0.0 0.5 0.5 1.0)}],SetProgram 1,SetTexture 0 3,SetSamplerUniform "s0" 0,SetRasterContext (TriangleCtx CullNone PolygonFill NoOffset LastVertex),SetAccumulationContext (AccumulationContext {accViewportName = Nothing, accOperations = [DepthOp Less True,ColorOp NoBlending (VV4B (V4 True True True True))]}),RenderSlot 0,SetRenderTarget 0,ClearRenderTarget [ClearImage {imageSemantic = Depth, clearValue = VFloat 1.0},ClearImage {imageSemantic = Color, clearValue = VV4F (V4 0.0 0.5 0.5 1.0)}],SetProgram 2,SetTexture 0 1,SetSamplerUniform "s0" 0,SetRasterContext (TriangleCtx CullNone PolygonFill NoOffset LastVertex),SetAccumulationContext (AccumulationContext {accViewportName = Nothing, accOperations = [DepthOp Less True,ColorOp NoBlending (VV4B (V4 True True True True))]}),RenderSlot 0]} \ No newline at end of file