7.7
The OpenGL Shading Language 4.5 (GLSL)
#lang glsl | package: glsl |
Hello, world!
> (module vertex-shader-330 glsl (#%version 330 core) (layout ([location 0]) in vec2 vPosition) (define (main) : void (set! gl_Position (vec4 vPosition 0 1))))
> (require 'vertex-shader-330) > (display the-string)
#version 330 core
layout (location = 0) in vec2 vPosition;
void main() {
gl_Position = vec4(vPosition, 0, 1);
}