Skip to content

Commit 2c8aece

Browse files
committed
Do not convert float array to vector
1 parent 17f43c6 commit 2c8aece

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/volumetric_clouds/main.clj

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ void main()
615615
(let [buffer (BufferUtils/createFloatBuffer (* height width 4))]
616616
(GL11/glBindTexture GL11/GL_TEXTURE_2D texture)
617617
(GL11/glGetTexImage GL11/GL_TEXTURE_2D 0 GL12/GL_RGBA GL11/GL_FLOAT buffer)
618-
(vec (float-buffer->array buffer))))
618+
(float-buffer->array buffer)))
619619

620620

621621
(defmacro framebuffer-render
@@ -786,6 +786,15 @@ void main()
786786
2 0 0 1 0 0 [0.0 0.0])
787787

788788

789+
(def cloud-mock
790+
(template/fn [v]
791+
"#version 130
792+
float cloud(vec3 idx)
793+
{
794+
return <%= v %>;
795+
}"))
796+
797+
789798
(GLFW/glfwDestroyWindow window)
790799

791800
(GLFW/glfwTerminate)

0 commit comments

Comments
 (0)