Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for( sint64 w = -Radius; w <= Radius; w ++ ) {
- for( sint64 h = -Radius; h <= Radius; h ++ ) {
- for( sint64 d = -Radius; d <= Radius; d ++ ) {
- if ( Xpos + w < ByteBuffWidth && Ypos + h < ByteBuffHeight && Zpos + d < ByteBuffDepth && Xpos + w >= 0 && Ypos + h >= 0 && Zpos + d >= 0 ) {
- if ( ( w * w ) + ( h * h ) + ( d * d ) < Radius * Radius ) {
- BytePrism[ ( ( ByteBuffWidth * ByteBuffHeight ) * ( Zpos + d ) ) + ( ByteBuffWidth * ( Ypos + h ) ) + ( Xpos + w ) ] = Byte;
- };
- };
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement