gigantic refactoring, part one

This commit is contained in:
Tonton Th
2025-01-12 02:33:39 +01:00
parent 5d34aac50c
commit 273312e7c5
17 changed files with 275 additions and 163 deletions

View File

@@ -7,10 +7,6 @@
#include "globals.inc"
#include "colors.inc"
#include "metals.inc"
#include "textures.inc"
#include "stones.inc"
#declare NormClock = clock / 360.0;
#include "contexte.inc"
@@ -22,8 +18,12 @@
#macro Bubble ()
sphere {
0, 0.10
#if ( rand(Rng1) < 0.5 ) pigment { color Cyan }
#else pigment { color Magenta }
#if ( rand(Rng1) < 0.333 )
texture { Ruby_Glass }
#elseif ( rand(Rng1) < 0.666 )
tus texture { Orange_Glass }
#else
texture { Gold_Nugget scale 0.56 }
#end
}
#end
@@ -39,8 +39,13 @@ union {
#declare Les_Machins = object
{
union {
#for (X, -7, 7)
object { Un_Machin() translate x*X*0.6 }
#for (Xp, -10, 10)
#if ( rand(Rng1) < 0.5 )
object { HexaCone_radar_A translate x*Xp*0.6 }
#else
object { Un_Machin () translate x*Xp*0.6 }
#end
#end
}
}