In lambdacube 3d you can program the CPU/GPU (OpenGL+GLSL) in one typed language. (http://lambdacube3d.com/)
that OpenGL code is written like this in LambdaCube 3D: main = ScreenOut (FrameBuffer (ColorImage @1 (V4 0 1 0 1.0))) or with depth + color buffer main = ScreenOut (FrameBuffer (DepthImage @1 1000, ColorImage @1 navy))
In lambdacube 3d you can program the CPU/GPU (OpenGL+GLSL) in one typed language. (http://lambdacube3d.com/)
that OpenGL code is written like this in LambdaCube 3D: main = ScreenOut (FrameBuffer (ColorImage @1 (V4 0 1 0 1.0))) or with depth + color buffer main = ScreenOut (FrameBuffer (DepthImage @1 1000, ColorImage @1 navy))