PovJouets/contexte.inc

46 lines
1.0 KiB
PHP
Raw Permalink Normal View History

2021-03-11 23:33:35 +01:00
/*
* contexte.inc
*/
2021-03-15 17:29:35 +01:00
global_settings { assumed_gamma 1.0 }
2021-03-16 00:48:07 +01:00
/*------------------------------------------------------------------*/
/*
* essential system includes
*/
#include "colors.inc"
#include "metals.inc"
#include "textures.inc"
/*------------------------------------------------------------------*/
2021-03-15 17:29:35 +01:00
#declare ANGLE_CAM = 33;
2021-03-16 00:48:07 +01:00
2021-03-16 11:34:06 +01: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 00:48:07 +01: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 } }
}
}
/*------------------------------------------------------------------*/