Increased level and max_trace_level. Use union instead of merge (much faster)

This commit is contained in:
hjp 2001-03-15 16:57:48 +00:00
parent e703a5b029
commit 7ca1df82c6
2 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,7 @@
#include "colors.inc" #include "colors.inc"
#include "glass.inc" #include "glass.inc"
#declare Eps = 1E-6;
#macro menger_level(C1, C2, Lev) #macro menger_level(C1, C2, Lev)
#if (Lev > 0) #if (Lev > 0)
@ -33,14 +34,14 @@
#end #end
#else #else
box { box {
C1, C2 C1 + Eps, C2 - Eps
} }
#end #end
#end #end
merge { union {
menger_level(<-1, -1, -1>, <1, 1, 1>, 2) menger_level(<-1, -1, -1>, <1, 1, 1>, 4)
// texture { pigment { color rgb <1, 1, 1> }} // texture { pigment { color rgb <1, 1, 1> }}
texture {T_Old_Glass } texture {T_Old_Glass }
interior { interior {
@ -53,6 +54,7 @@ merge {
global_settings { global_settings {
assumed_gamma 1.0 assumed_gamma 1.0
ambient_light rgb<0.5, 0.5, 0.5> ambient_light rgb<0.5, 0.5, 0.5>
max_trace_level 10
} }
light_source { light_source {

View File

@ -1,6 +1,5 @@
+A +A
+QR +Q9
+HTP +HTP
+fp +w800 +h600 +fp +w800 +h600
display_gamma = 2.2 display_gamma = 2.2
+D