moving the gyrophare to the right file
This commit is contained in:
parent
af4f9fc282
commit
cf899967ce
38
contexte.inc
38
contexte.inc
@ -6,6 +6,44 @@
|
|||||||
|
|
||||||
/* ------------------------------------------------------------ */
|
/* ------------------------------------------------------------ */
|
||||||
|
|
||||||
|
#macro GyroPhare_mat ()
|
||||||
|
cylinder {
|
||||||
|
0, y*H_gyro, R_gyro
|
||||||
|
#if (rand(Rng1) < 0.5)
|
||||||
|
texture { T_Stone25 scale 1+rand(Rng1) }
|
||||||
|
#else
|
||||||
|
texture { T_Stone6 }
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
#end // macro
|
||||||
|
|
||||||
|
#macro GyroPhare_lampe ()
|
||||||
|
union {
|
||||||
|
difference {
|
||||||
|
cylinder { 0, y*0.20, R_gyro }
|
||||||
|
cylinder { y*0.01, y*0.19, R_gyro*0.97 }
|
||||||
|
#local WB = 0.015;
|
||||||
|
box { <-1, 0.03, -WB>, <1, 0.18, WB> }
|
||||||
|
box { <-WB, 0.03, -1>, <WB, 0.18, 1> }
|
||||||
|
#undef WB
|
||||||
|
pigment { color White }
|
||||||
|
rotate y*(0.5-rand(Rng1))*clock
|
||||||
|
}
|
||||||
|
light_source { y*0.10 rgb <0.8, 0.9, 0.999999999> }
|
||||||
|
}
|
||||||
|
#end // macro
|
||||||
|
|
||||||
|
#macro GyroPhare ()
|
||||||
|
union {
|
||||||
|
object { GyroPhare_mat () }
|
||||||
|
object { GyroPhare_lampe ()
|
||||||
|
// rotate y*rand(Rng1)*clock
|
||||||
|
translate y*(H_gyro+0.02) }
|
||||||
|
}
|
||||||
|
#end // macro
|
||||||
|
|
||||||
|
/* ------------------------------------------------------------ */
|
||||||
|
|
||||||
#declare Rhxba = 0.30;
|
#declare Rhxba = 0.30;
|
||||||
#declare R2hxba = Rhxba * 0.48;
|
#declare R2hxba = Rhxba * 0.48;
|
||||||
|
|
||||||
|
36
essai.pov
36
essai.pov
@ -12,42 +12,6 @@
|
|||||||
#include "hexabenz.inc"
|
#include "hexabenz.inc"
|
||||||
|
|
||||||
// =======================================================
|
// =======================================================
|
||||||
|
|
||||||
#macro GyroPhare_mat ()
|
|
||||||
cylinder {
|
|
||||||
0, y*H_gyro, R_gyro
|
|
||||||
#if (rand(Rng1) < 0.5)
|
|
||||||
texture { T_Stone25 scale 1+rand(Rng1) }
|
|
||||||
#else
|
|
||||||
texture { T_Stone6 }
|
|
||||||
#end
|
|
||||||
}
|
|
||||||
#end // macro
|
|
||||||
|
|
||||||
#macro GyroPhare_lampe ()
|
|
||||||
union {
|
|
||||||
difference {
|
|
||||||
cylinder { 0, y*0.20, R_gyro }
|
|
||||||
cylinder { y*0.01, y*0.19, R_gyro*0.97 }
|
|
||||||
#local WB = 0.015;
|
|
||||||
box { <-1, 0.03, -WB>, <1, 0.18, WB> }
|
|
||||||
box { <-WB, 0.03, -1>, <WB, 0.18, 1> }
|
|
||||||
#undef WB
|
|
||||||
pigment { color White }
|
|
||||||
rotate y*(0.5-rand(Rng1))*clock
|
|
||||||
}
|
|
||||||
light_source { y*0.10 rgb <0.8, 0.9, 0.999999999> }
|
|
||||||
}
|
|
||||||
#end // macro
|
|
||||||
|
|
||||||
#macro GyroPhare ()
|
|
||||||
union {
|
|
||||||
object { GyroPhare_mat () }
|
|
||||||
object { GyroPhare_lampe ()
|
|
||||||
// rotate y*rand(Rng1)*clock
|
|
||||||
translate y*(H_gyro+0.02) }
|
|
||||||
}
|
|
||||||
#end // macro
|
|
||||||
// =======================================================
|
// =======================================================
|
||||||
|
|
||||||
#macro Bubble ()
|
#macro Bubble ()
|
||||||
|
Loading…
Reference in New Issue
Block a user