public VolumeRendable( int slices, int size, string texture ) { this.slices = slices; this.size = size; this.texture = texture; radius = Utility.Sqrt( size * size + size * size + size * size ) / 2.0f; box = new AxisAlignedBox( new Vector3( -size, -size, -size ), new Vector3( size, size, size ) ); CastShadows = false; Initialize(); }