HexaCone/globals.inc

87 lines
1.6 KiB
PHP
Raw Normal View History

2024-12-29 14:56:10 +11:00
global_settings {
assumed_gamma 1.0
2025-02-04 11:06:18 +11:00
ambient_light rgb <0.47, 0.47, 0.47>
2024-12-31 22:51:12 +11:00
max_trace_level 15
2024-12-29 14:56:10 +11:00
}
2025-01-02 02:15:06 +11:00
2025-01-12 12:33:39 +11:00
#include "colors.inc"
#include "metals.inc"
#include "textures.inc"
#include "stones.inc"
2025-02-11 02:11:51 +11:00
#include "woods.inc"
2025-01-12 12:33:39 +11:00
2025-01-05 10:18:06 +11:00
#declare Rng1 = seed(1337);
2025-02-11 02:11:51 +11:00
#declare foo = rand(Rng1);
2025-01-02 02:15:06 +11:00
#declare Rng2 = seed(now*24*60*60);
2025-02-11 02:11:51 +11:00
#declare bar = rand(Rng2);
2025-01-02 02:15:06 +11:00
#declare NormClock = clock / 360.0;
/* ------------------------------------------------------------ */
2025-01-14 01:27:56 +11:00
/*
* Some constants...
*/
2025-01-02 02:15:06 +11:00
2025-02-11 02:11:51 +11:00
#declare SzSol = 34;
#declare SzBase = 2.85;
2025-02-10 05:05:10 +11:00
#declare H_base = 0.10;
2025-01-14 19:06:51 +11:00
2025-01-14 01:27:56 +11:00
#declare R_basecone = 0.117;
#declare H_cone = 0.97;
2025-02-04 11:06:18 +11:00
#declare R_gyro = 0.09;
2025-01-14 19:06:51 +11:00
#declare H_gyro = 1.20;
2025-02-04 11:06:18 +11:00
#declare H_gylampe = 0.20;
2025-01-14 19:06:51 +11:00
2025-02-11 02:11:51 +11:00
#declare H_QuadriLight = 20;
#declare E_QuadriLight = SzSol * 0.85;
2025-01-27 13:34:51 +11:00
/* ------------------------------------------------------------ */
/*
* Some textures...
*/
#declare WIP_color = texture
{
pigment { color Cyan*0.60 }
finish { phong 0.01 }
}
#declare T_WIP_alert = texture
{
pigment { color Red }
finish { specular 0.90 }
}
#declare T_Planete_A = texture
{
pigment { color rgb <0.20, 0.30, 0.10> }
normal { dents 0.38 scale 0.5}
finish { phong 0.80 reflection 0.05 }
}
#declare T_Planete_B = texture
{
pigment { rgb <0.40, 0.50, 0.70> }
finish { metallic 0.50 reflection 0.55 }
}
2025-01-14 01:27:56 +11:00
/* ------------------------------------------------------------ */
/*
* Usefull macros
*/
2025-01-02 02:15:06 +11:00
#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
2025-02-04 11:06:18 +11:00
/* Interpolate */
#macro Interpolate(A, B, pos)
#local resultat = ( (B-A) * pos) +A;
resultat
#end
2025-01-02 02:15:06 +11:00
/* ------------------------------------------------------------ */