public ActorEarth() { Mesh = new MeshSphere((float)(SgpConstants.EarthRadiusKm / 100), 96, 48); _shader = new ShaderProgram(ShaderBank.PlanetFrag, ShaderBank.PlanetVert); Texture = TexturePointer.Create("Resources/Textures/earth_low.jpg"); _textureWater = TexturePointer.Create("Resources/Textures/water.png"); _textureNormal = TexturePointer.Create("Resources/Textures/normal_low.jpg"); _textureLights = TexturePointer.Create("Resources/Textures/lights_low.jpg"); _textureClouds = TexturePointer.Create("Resources/Textures/clouds_low.jpg"); _shader.Uniforms.SetValue("texModel", 0); _shader.Uniforms.SetValue("texRandom", 1); _shader.Uniforms.SetValue("texWater", 3); _shader.Uniforms.SetValue("texNormal", 4); _shader.Uniforms.SetValue("texLights", 5); _shader.Uniforms.SetValue("texClouds", 6); BoundingBox = new AxisAlignedBoundingBox(new Vector3(140, 140, 140), Vector3.Zero, true); // LocalTransformation = Matrix4.CreateRotationX((float) (-23.44 / 180 * Math.PI)); }
public ActorSatellite(int noradId) { NoradId = noradId; var tle = ElementLoader.GetTle(noradId); _satellite = new Satellite(tle); Mesh = new MeshSphere(1f, 3, 2); }
public ActorAtmosphere() { Mesh = new MeshSphere((float)(SgpConstants.EarthRadiusKm / 100 + 0.7), 96, 48); BoundingBox = new AxisAlignedBoundingBox(new Vector3(140, 140, 140), Vector3.Zero, true); _shader = new ShaderProgram(ShaderBank.AtmosphereFrag, ShaderBank.AtmosphereVert); }
public ActorSkybox() { Mesh = new MeshSphere(512, 24, 12); RenderOutsideFrustum = true; Texture = TexturePointer.Create("Resources/Textures/milkyway_low.jpg"); }