Fixed the fragment shader: now the ray position is being correctly calculated. Added a 'Reload Shader' button.