Replace ModelConstants with WebGLRenderingContext