PovJouets/incs/constantes.inc

75 lines
1.5 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);
2025-01-01 00:43:41 +11:00
#declare FADE_DIST = 2.0;
#declare FADE_POWA = 2.0;
2021-03-08 06:58:18 +11:00
/* ------------------------------------------------------------ */
/* il nous faut quelques textures 'standards' */
2024-12-30 14:41:51 +11:00
#declare Orange_Corail = texture
{
pigment { color Orange }
2025-01-01 00:43:41 +11:00
normal { dents 0.42 scale 0.042 }
finish { phong 0.5 }
}
#declare Jaune_Corail = texture
{
pigment { color Yellow }
normal { dents 0.32 scale 0.242 }
2024-12-30 14:41:51 +11:00
finish { phong 0.5 }
}
2021-03-23 19:55:20 +11:00
#declare Vert_Train_1 = texture
{
// pour la benne
2025-01-02 13:34:16 +11:00
pigment { color Green*0.70 }
normal { bumps 0.17 rotate <10, 0, 10> 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 }
2025-01-01 00:43:41 +11:00
finish { specular 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