PovJouets/incs/constantes.inc

66 lines
1.3 KiB
PHP
Raw Normal View History

2021-03-08 06:58:18 +11:00
/*
2024-12-30 14:41:51 +11:00
LES POVJOUETS DE TONTON TH
2021-03-08 06:58:18 +11:00
Quelque constantes utiles
*/
#ifdef(Jouets_Constantes)
// do nothing
2024-12-30 12:47:15 +11:00
// #warning "*** constantes deja definies\n"
2021-03-08 06:58:18 +11:00
#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' */
2024-12-30 14:41:51 +11:00
#declare Orange_Corail = texture
{
pigment { color Orange }
normal { dents 0.22 scale 0.42 }
finish { phong 0.5 }
}
2021-03-23 19:55:20 +11:00
#declare Vert_Train_1 = texture
{
// pour la benne
pigment { color Green }
2024-12-30 14:41:51 +11:00
normal { bumps 0.22 scale 0.42 }
2021-03-23 19:55:20 +11:00
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 }
}
2021-03-23 20:09:22 +11:00
#declare Texture_Roues = texture
{
pigment { color LightSteelBlue }
2024-12-30 14:41:51 +11:00
finish { phong 0.5 }
2021-03-23 20:09:22 +11:00
}
#declare Texture_Chassis = texture
{
pigment { color Yellow }
finish { phong 0.5 ambient 0.4 }
}
2021-03-08 06:58:18 +11:00
/* ------------------------------------------------------------ */
#end // #ifdef