protected override void DoRender(RenderEventArgs arg)
{
this.SetUniform("LightPosition", this.LightPosition);
this.SetUniform("SkyColor", this.SkyColor.normalize());
this.SetUniform("GroundColor", this.GroundColor.normalize());
mat4 projection = arg.Camera.GetProjectionMatrix();
mat4 view = arg.Camera.GetViewMatrix();
mat4 model = this.GetModelMatrix().Value;
this.SetUniform("projection", projection);
this.SetUniform("view", view);
this.SetUniform("model", model);
this.SetUniform("NormalMatrix", glm.transpose(glm.inverse(model)).to_mat3());
base.DoRender(arg);
}