Transformed some const methods into functions. This is to be more
constistant and mimic GLSL more closely.