public VolumeRendable ( int slices, int size, string texture ) : System.Collections.Generic | ||
slices | int | |
size | int | |
texture | string | |
return | System.Collections.Generic |
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();
}