We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17f43c6 commit 2c8aeceCopy full SHA for 2c8aece
1 file changed
src/volumetric_clouds/main.clj
@@ -615,7 +615,7 @@ void main()
615
(let [buffer (BufferUtils/createFloatBuffer (* height width 4))]
616
(GL11/glBindTexture GL11/GL_TEXTURE_2D texture)
617
(GL11/glGetTexImage GL11/GL_TEXTURE_2D 0 GL12/GL_RGBA GL11/GL_FLOAT buffer)
618
- (vec (float-buffer->array buffer))))
+ (float-buffer->array buffer)))
619
620
621
(defmacro framebuffer-render
@@ -786,6 +786,15 @@ void main()
786
2 0 0 1 0 0 [0.0 0.0])
787
788
789
+(def cloud-mock
790
+ (template/fn [v]
791
+"#version 130
792
+float cloud(vec3 idx)
793
+{
794
+ return <%= v %>;
795
+}"))
796
+
797
798
(GLFW/glfwDestroyWindow window)
799
800
(GLFW/glfwTerminate)
0 commit comments