PovJouets/contexte.inc

50 lines
1.1 KiB
PHP
Raw Normal View History

2021-03-12 09:33:35 +11:00
/*
* contexte.inc
*/
2024-12-30 05:52:58 +11:00
global_settings {
assumed_gamma 1.0
ambient_light rgb <0.18, 0.14, 0.17>
2024-12-31 22:28:07 +11:00
max_trace_level 17
2024-12-30 05:52:58 +11:00
}
2021-03-16 03:29:35 +11:00
2021-03-16 10:48:07 +11:00
/*------------------------------------------------------------------*/
/*
* essential system includes
*/
#include "colors.inc"
#include "metals.inc"
#include "textures.inc"
/*------------------------------------------------------------------*/
2024-12-31 22:28:07 +11:00
#declare ANGLE_CAM = 42;
2021-03-16 10:48:07 +11:00
2021-03-16 21:34:06 +11:00
//---------------------------------------
/*
* deux macros pour des variations plus 'touchy'
*/
#macro Cos_01( X )
(0.5-0.5*cos( 3.141592654 * X))
#end
#macro Cos_010( X )
(0.5-0.5*cos( 2 * 3.141592654 * X))
#end
//---------------------------------------
2021-03-16 10:48:07 +11:00
/*------------------------------------------------------------------*/
/*
* outils de mise au point (smart tools)
*/
#declare Repere = object
{
#local DA = 5;
#local DB = DA * 5;
union {
cylinder { <-DA, 0, 0>, <100, 0, 0>, 0.1 pigment { color Red } }
cylinder { <0, -DA, 0>, <0, 100, 0>, 0.1 pigment { color Green } }
cylinder { <0, 0, -DA>, <0, 0, 100>, 0.1 pigment { color Blue } }
}
}
/*------------------------------------------------------------------*/