//public BoundingSphere transformedBoundingSphere { get; protected set; } public PointLight(Vector3 Position, Color Color, float Attenuation) { this.Position = Position; this.Color = Color; this.Attenuation = Attenuation; _boundingSphereRenderer = new BoundingSphereRenderer(game); _boundingSphereRenderer.OnCreateDevice(); }
public Object(float scale, Vector3 position) { this.Position = position; this.Scale = scale; Material = new HLSLTest.Material(); random = new Random(); IsActive = true; RenderBoudingSphere = true; RotationMatrix = Matrix.Identity; Load(); _boundingSphereRenderer = new BoundingSphereRenderer(game); _boundingSphereRenderer.OnCreateDevice(); }
public Object(Vector3 position, float scale, string fileName) { this.Position = position; this.Scale = scale; random = new Random(); IsActive = true; RenderBoudingSphere = true; Load(fileName); RotationMatrix = Matrix.Identity; _boundingSphereRenderer = new BoundingSphereRenderer(game); _boundingSphereRenderer.OnCreateDevice(); }