use the #macro force, Luke !

This commit is contained in:
Tonton Th 2025-01-08 00:13:37 +01:00
parent cb36297499
commit 2ed567a33c

View File

@ -1,6 +1,6 @@
/* /*
* H E X A C O N E - E S S A I * H E X A C O N E - E S S A I
* nouveau projet Thu Dec 5 11:37:05 AM UTC 2024 * nouveau projet du Thu Dec 5 11:37:05 AM UTC 2024
*/ */
#version 3.7; #version 3.7;
@ -15,39 +15,47 @@
#declare NormClock = clock / 360.0; #declare NormClock = clock / 360.0;
#include "contexte.inc" #include "contexte.inc"
#include "elements.inc" #include "elements.inc"
#include "hexabenz.inc"
// ======================================================= // =======================================================
#macro Bubble ()
object { sphere {
HexaBlob 0, 0.10
#local SC = 1.71 + 0.5 * abs(sin(NormClock * 3 * 3.14159)); #if ( rand(Rng1) < 0.5 ) pigment { color Cyan }
texture { T_Stone26 #else pigment { color Magenta }
scale SC #end
translate 3*y*NormClock
} }
translate < 0, 1, 0>
}
// object { Le_Decor }
// object { Repere }
#if (0)
object { HexaBalls
#local SC = 0.18 + abs(sin(NormClock * 4 * 3.14159));
texture { Lightning2 scale SC }
translate <-0.80, 1, 0> }
#end #end
#macro Un_Machin ()
union {
#for (Y, -8, 8, 2)
object { Bubble() translate y*Y*0.1 }
#end
}
#end
#declare Les_Machins = object
{
union {
#for (X, -7, 7)
object { Un_Machin() translate x*X*0.6 }
#end
}
}
object { Les_Machins }
// object { Repere }
// ======================================================= // =======================================================
light_source { <-8, 7, -9>, rgb <0.81, 0.65, NormClock> } light_source { <-8, 7, -9>, rgb <0.81, 0.65, NormClock> }
// light_source { <-11, 7, 9>, rgb <0.31, NormClock, 0.80> }
light_source { < 11, 7, 4>, rgb <1-NormClock, 0.28, 0.80> } light_source { < 11, 7, 4>, rgb <1-NormClock, 0.28, 0.80> }
camera { camera {
location <-0.7+NormClock, 1.81, 2.09> location <-10.7+4*NormClock, 2.81, 8.09>
look_at <0.0, 1.0, 0> look_at <0.0, 0.0, 0>
angle 54 angle 44
} }