66 lines
1.3 KiB
PHP
66 lines
1.3 KiB
PHP
/*
|
|
LES POVJOUETS DE TONTON TH
|
|
Quelque constantes utiles
|
|
*/
|
|
|
|
#ifdef(Jouets_Constantes)
|
|
// do nothing
|
|
// #warning "*** constantes deja definies\n"
|
|
#else
|
|
#declare Jouets_Constantes=version;
|
|
|
|
/* ------------------------------------------------------------ */
|
|
/* constantes geometriques */
|
|
|
|
#declare ECARTEMENT = 12;
|
|
#declare H_RAIL = 2;
|
|
|
|
/* generateur de nombres pseudo-aleatoires.
|
|
mais comment le 'seeder' de fac,on differente a chaque run ? */
|
|
|
|
#declare RND = seed(42);
|
|
|
|
/* ------------------------------------------------------------ */
|
|
/* il nous faut quelques textures 'standards' */
|
|
|
|
#declare Orange_Corail = texture
|
|
{
|
|
pigment { color Orange }
|
|
normal { dents 0.22 scale 0.42 }
|
|
finish { phong 0.5 }
|
|
}
|
|
|
|
#declare Vert_Train_1 = texture
|
|
{
|
|
// pour la benne
|
|
pigment { color Green }
|
|
normal { bumps 0.22 scale 0.42 }
|
|
finish { phong 0.5 }
|
|
|
|
}
|
|
|
|
#declare Rouge_Train_1 = texture
|
|
{
|
|
// pour la citerne
|
|
pigment { color rgb <0.96, 0.25, 0.2> }
|
|
normal { bumps 0.33 scale 0.42 }
|
|
finish { phong 0.5 }
|
|
}
|
|
|
|
#declare Texture_Roues = texture
|
|
{
|
|
pigment { color LightSteelBlue }
|
|
finish { phong 0.5 }
|
|
}
|
|
|
|
#declare Texture_Chassis = texture
|
|
{
|
|
pigment { color Yellow }
|
|
finish { phong 0.5 ambient 0.4 }
|
|
}
|
|
|
|
|
|
/* ------------------------------------------------------------ */
|
|
#end // #ifdef
|
|
|