public ShadowMappingShader(Enviroment enviroment, Rasterizer rasterizer, float lightIntensivity)
 {
     Enviroment           = enviroment;
     LightIntensivity     = lightIntensivity;
     Rasterizer           = rasterizer;
     Camera.OnRotate     += (an, ax) => UpdateVisible();
     Camera.OnMove       += (v) => UpdateVisible();
     Enviroment.OnChange += () => UpdateVisible();
     UpdateVisible();
 }
 public void UpdateVisible()
 {
     Rasterizer.ComputeVisibleVertices(Enviroment.GetPrimitives());
 }