Commit 792fda12 authored by Brian's avatar Brian

add create compute shader in init

parent 45eba40b
......@@ -98,6 +98,15 @@ GLboolean init(GLFWwindow* window){
free(vertexShaderSource);
/*
//Create the vertex shader:
char* computeShaderSource = readShaderFromFile("shader/compute.glsl");
GLuint computeShader = compileShader(GL_COMPUTE_SHADER, computeShaderSource, "compute shader");
free(computeShaderSource);
*/
//Create the fragment shader:
char* fragmentShaderSource = readShaderFromFile("shader/fragment.glsl");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment