Advertisement
FatalSleep

Untitled

Jul 8th, 2014
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. for( sint64 w = -Radius; w <= Radius; w ++ ) {
  2. for( sint64 h = -Radius; h <= Radius; h ++ ) {
  3. for( sint64 d = -Radius; d <= Radius; d ++ ) {
  4. if ( Xpos + w < ByteBuffWidth && Ypos + h < ByteBuffHeight && Zpos + d < ByteBuffDepth && Xpos + w >= 0 && Ypos + h >= 0 && Zpos + d >= 0 ) {
  5. if ( ( w * w ) + ( h * h ) + ( d * d ) < Radius * Radius ) {
  6. BytePrism[ ( ( ByteBuffWidth * ByteBuffHeight ) * ( Zpos + d ) ) + ( ByteBuffWidth * ( Ypos + h ) ) + ( Xpos + w ) ] = Byte;
  7. };
  8. };
  9. };
  10. };
  11. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement