big refactoring: step 1

This commit is contained in:
Tonton Th
2024-12-29 04:56:10 +01:00
parent adf59ceff6
commit 090981d84c
13 changed files with 150 additions and 63 deletions

View File

@@ -2,6 +2,43 @@
* nouveau projet Thu Dec 5 11:37:05 AM UTC 2024
*/
#declare Rng2 = seed(now*24*60*60);
#declare foo = rand(Rng2);
/* ------------------------------------------------------------ */
#declare Rhxba = 0.30;
#declare R2hxba = Rhxba * 0.48;
#declare HexaBalls = object
{
merge {
sphere { 0, Rhxba }
#local E = Rhxba * 1.260;
sphere { 0, R2hxba translate <-E, 0, 0> }
sphere { 0, R2hxba translate < E, 0, 0> }
sphere { 0, R2hxba translate < 0, -E, 0> }
sphere { 0, R2hxba translate < 0, E, 0> }
sphere { 0, R2hxba translate < 0, 0, -E> }
sphere { 0, R2hxba translate < 0, 0, E> }
}
}
object { HexaBalls
texture { Lightning1 scale 0.33 }
rotate <clock/3, clock/6, clock/9>
translate <3, 0.72, 5>
}
object { HexaBalls
texture { Lightning2 scale 0.33 }
rotate <-clock, clock*0.62, clock>
translate <5, 0.92, -4>
}
/* ------------------------------------------------------------ */
height_field {
png "datas/hf.png"
smooth
@@ -44,15 +81,15 @@ light_source {
#if (1)
light_source {
<-5, 5.50, 8>
<-5, 5.60, 8>
#if ( (clock > 290) & (clock<344) )
#local Couleur = rgb <0.20, 0.20, 0.80>;
#local Couleur = rgb <0.20, 0.20, 0.90>;
#else
#local Couleur = rgb <0.80, 0.80, 0.70>;
#end
color Couleur
spotlight
radius 8
radius 9
falloff 10
tightness 5
point_at <0, 0.95, -0.22>