;; matrix should be float* 5x5
(bind-func shader_setup_convolution_filter
(lambda (matrix:float* shader:ShaderProgram* offset)
(shader_set_grid_offsets matrix 1.0 1.0 offset) ;(* 2.0 (dtof (cos (* 2222.2 (i64tod (now)))))))
(glUniform2fv (glGetUniformLocation (id shader) "texoffset") 25 matrix)
(glUniform1i (glGetUniformLocation (id shader) "diffuseTexture") 1)))