Esempio n. 1
0
 public void RenderizzaAlone(LogiX_Engine lxe, Camera cam)
 {
     lxe.SetCullMode(CullMode.Clockwise);
     lxe.SetLightMode(true, true);
     lxe.SetAlphaMode();
     light.Direction = cam.Position;
     light.Enabled = true;
     light.SetDirectionalLight();
     model.Scaling = new VertexData(0.48f, 0.48f, 0.48f);
     model.meshTexture = null;
     XTexture.ResetTextures();
     model.SetModelMatrices();
     Alone.SetMaterial();
     model.DrawSubset(0);
     XMaterial.ResetMaterials();
     model.UnSetModelMatrices();
     light.Enabled = false;
     light.SetDirectionalLight();
     lxe.UnSetAlphaMode();
     lxe.SetLightMode(true, false);
     lxe.SetCullMode(CullMode.CounterClockwise);
 }
Esempio n. 2
0
 public void RenderizzaAtmosfera(float time, float RaggioAtmosferaRispettoPianeta, XMaterial mat, LogiX_Engine lxe)
 {
     lxe.SetAlphaMode();
     lxe.SetCullMode(CullMode.Clockwise);
     lxe.AmbientLight = Color.FromArgb(255, 255, 255);
     lxe.SetLightMode(true, true);
     XTexture.ResetTextures();
     TransformAtm(time, RaggioAtmosferaRispettoPianeta);
     mat.SetMaterial();
     model.DrawSubset(0);
     XMaterial.ResetMaterials();
     RestoreWorld();
     lxe.AmbientLight = Color.FromArgb(0, 0, 0);
     lxe.SetCullMode(CullMode.CounterClockwise);
     lxe.UnSetAlphaMode();
     lxe.SetLightMode(true, false);
 }