// FastRad by Trevor Hewer (www.trevorhewer.com) // Original Color Library file by Jeroen de Haan (www.digitalbricks.nl) // Default Settings #ifndef (light) #declare light = yes; #end #ifndef (ldraw_sky) #declare ldraw_sky = 1; #end #ifndef (rad_setting) #declare rad_setting = 1; #end // Radiosity settings // 1 - Fast #if (rad_setting = 1) global_settings { assumed_gamma 1.8 adc_bailout 0.005 max_trace_level 50 ambient_light 1 radiosity { pretrace_start 0.08 pretrace_end 0.02 // Try 0.01 if you see random black spots. count 20 error_bound 1 recursion_limit 1 normal on brightness #if(light = yes) 0.8 #else 1.4 #end always_sample no gray_threshold 0.8 media on}} #end // 2 - High Quality #if (rad_setting = 2) global_settings { assumed_gamma 1.8 adc_bailout 0.005 max_trace_level 50 radiosity { pretrace_start 0.08 pretrace_end 0.01 // Try 0.005 if you see random black spots. count 50 error_bound 0.1 recursion_limit 1 normal on brightness #if(light = yes) 0.8 #else 1.4 #end always_sample yes gray_threshold 0.8 media on}} #end // 3 - Simulated Radiosity #if (rad_setting = 3) #declare LG_AMB = 0.35; #declare AMB = 0.5; #declare DIF = 1; global_settings { ambient_light rgb #if(ldraw_sky=2) <1,1.5,2>*0.6 #else 1 #end } #end // Sky Sphere Definitions // White Sky #if (ldraw_sky = 1) sky_sphere { pigment { rgb #if(light = yes) 1.0 #else 1.2 #end } } #end // Blue Sky #if (ldraw_sky = 2) sky_sphere { pigment { rgb #if(light = yes) <1,1.5,2>*0.8 #else <1,1.5,2> #end } } #end // Color Definitions // Original file by Jeroen de Haan (www.digitalbricks.nl). #ifndef (BUMPS) #declare BUMPS = 0; #end #ifndef (BUMPNORMAL) #declare BUMPNORMAL = normal { bumps 0.01 scale 20 } #end #declare AMB = 0; #declare DIF = 1; #declare lgeo_slope_bumps = normal{bumps 0.1 scale 25*0.02}; // Standard Finish #declare StandardFinish= finish{ ambient #if(rad_setting = 3) 0.5 #else 0 #end diffuse 1 #if (QUAL > 1) reflection {0.025,0.8 falloff 4} specular 0.5 phong 0.5 phong_size 20 #end } #declare ClearFinish = finish { ambient #if(rad_setting = 5) 0.5 #else 0 #end diffuse 1 reflection 0.0 #if (QUAL > 1) refraction 1 ior 1.33 phong 0.5 phong_size 40 #end } // Black #declare texture_color0 = texture { pigment {rgb <23/255,24/255,26/255> } finish{StandardFinish}} #declare Color0 = material { texture {texture_color0}} #declare Color0_slope = material { texture { texture_color0 normal {lgeo_slope_bumps}}} // Blue #declare texture_color1 = texture { pigment {rgb <0/255,74/255,240/255>*0.5 } finish{StandardFinish}} #declare Color1 = material { texture{texture_color1} } #declare Color1_slope = material { texture{ texture_color1 normal {lgeo_slope_bumps}}} // Green #declare texture_color2 = texture { pigment {rgb <0.025,0.5,0.075>*0.9 } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color2 = material { texture { texture_color2 } }#declare Color2_slope = material { texture { texture_color2 normal { lgeo_slope_bumps } } } // Dark-Cyan #declare texture_color3 = texture { pigment {rgb <0,0.5,0.5> } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color3 = material { texture { texture_color3 } }#declare Color3_slope = material { texture { texture_color3 normal { lgeo_slope_bumps } } } // Red #declare texture_color4 = // Red texture texture { pigment {rgb <0.9,0.05,0>*0.8 } finish{StandardFinish}} #declare Color4 = // Red brick color material { texture { texture_color4 } }#declare Color4_slope = // Red for LGEO sloped bricks material { texture { texture_color4 normal { lgeo_slope_bumps } } } // Magenta #declare texture_color5 = // Magenta texture texture { pigment {rgb <1,0.2,0.9>*0.8 } finish{StandardFinish} } #declare Color5 = // Magenta brick color material { texture { texture_color5 } }#declare Color5_slope = // Magenta for LGEO sloped bricks material { texture { texture_color5 normal { lgeo_slope_bumps } } } // Brown #declare texture_color6 = // Brown texture texture { pigment {rgb <0.564706,0.337255,0.184314>*0.6 } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color6 = // Brown brick color material { texture { texture_color6 } }#declare Color6_slope = // Brown for LGEO sloped bricks material { texture { texture_color6 normal { lgeo_slope_bumps } } } // Light-Grey #declare texture_color7 = // Light-Grey texture texture { pigment {rgb 0.53} finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color7 = // Light-Grey brick color material { texture { texture_color7 } } #declare Color7_slope = // Light-Grey for LGEO sloped bricks material { texture { texture_color7 normal { lgeo_slope_bumps } } } // Dark-Grey #declare texture_color8 = texture { pigment {rgb <0.188,0.18,0.155>*1.3 } finish{ StandardFinish } #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color8 = material { texture { texture_color8 } }#declare Color8_slope = material { texture { texture_color8 normal { lgeo_slope_bumps } } } // Light-Blue #declare texture_color9 = // Light-Blue texture texture { pigment {rgb <0.313726,0.313726,1> } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color9 = // Light-Blue brick color material { texture { texture_color9 } }#declare Color9_slope = // Light-Blue for LGEO sloped bricks material { texture { texture_color9 normal { lgeo_slope_bumps } } } // Light-Green #declare texture_color10 = // Light-Green texture texture { pigment {rgb <0.862745,1,0.0392157>*0.7 } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color10 = // Light-Green brick color material { texture { texture_color10 } }#declare Color10_slope = // Light-Green for LGEO sloped bricks material { texture { texture_color10 normal { lgeo_slope_bumps } } } // Cyan #declare texture_color11 = // Cyan texture texture { pigment {rgb <0.65098,0.94902,1>*0.8 } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color11 = // Cyan brick color material { texture { texture_color11 } }#declare Color11_slope = // Cyan for LGEO sloped bricks material { texture { texture_color11 normal { lgeo_slope_bumps } } } // Light-Red #declare texture_color12 = // Light-Red texture texture { pigment {rgb <1,0.4,0.4>*0.8 } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color12 = // Light-Red brick color material { texture { texture_color12 } }#declare Color12_slope = // Light-Red for LGEO sloped bricks material { texture { texture_color12 normal { lgeo_slope_bumps } } } // Pink #declare texture_color13 = // Pink texture texture { pigment {rgb <1,0.5,0.8>*0.8 } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color13 = // Pink brick color material { texture { texture_color13 } }#declare Color13_slope = // Pink for LGEO sloped bricks material { texture { texture_color13 normal { lgeo_slope_bumps } } } // Yellow #declare texture_color14 = // Yellow texture texture { pigment {rgb <255/255,212/255,0/255>*0.74 } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color14 = // Yellow brick color material { texture { texture_color14 } }#declare Color14_slope = // Yellow for LGEO sloped bricks material { texture { texture_color14 normal { lgeo_slope_bumps } } } // White #declare texture_color15 = // White texture texture { pigment {rgb <253,253,251>/255*1.35 } //0.8 finish{StandardFinish diffuse 0.5} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color15 = // White brick color material { texture { texture_color15 } }#declare Color15_slope = // White for LGEO sloped bricks material { texture { texture_color15 normal { lgeo_slope_bumps } } } // Pastel-Green #declare texture_color17 = // Pastel-Green texture texture { pigment {rgb <0.4,1,0.6>*0.8 } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color17 = // Pastel-Green brick color material { texture { texture_color17 } }#declare Color17_slope = // Pastel-Green for LGEO sloped bricks material { texture { texture_color17 normal { lgeo_slope_bumps } } } // Light-Yellow #declare texture_color18 = // Light-Yellow texture texture { pigment {rgb <1,0.95,0.4> } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color18 = // Light-Yellow brick color material { texture { texture_color18 } }#declare Color18_slope = // Light-Yellow for LGEO sloped bricks material { texture { texture_color18 normal { lgeo_slope_bumps } } } // Tan #declare texture_color19 = // Tan texture texture { pigment {rgb <0.8,0.666667,0.4>*0.8 } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color19 = // Tan brick color material { texture { texture_color19 } }#declare Color19_slope = // Tan for LGEO sloped bricks material { texture { texture_color19 normal { lgeo_slope_bumps } } } // Light-Purple #declare texture_color20 = // Light-Purple texture texture { pigment {rgb <0.7875,0.72,0.84375>*0.8 } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color20 = // Light-Purple brick color material { texture { texture_color20 } }#declare Color20_slope = // Light-Purple for LGEO sloped bricks material { texture { texture_color20 normal { lgeo_slope_bumps } } } // Glow-In-The-Dark #declare texture_color21 = // Glow-In-The-Dark texture texture { pigment {rgb <0.83125,0.95,0.653125>*0.8 } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color21 = // Glow-In-The-Dark brick color material { texture { texture_color21 } }#declare Color21_slope = // Glow-In-The-Dark for LGEO sloped bricks material { texture { texture_color21 normal { lgeo_slope_bumps } } } // Purple #declare texture_color22 = // Purple texture texture { pigment {rgb <0.48,0,0.48>*1.1 } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color22 = // Purple brick color material { texture { texture_color22 } }#declare Color22_slope = // Purple for LGEO sloped bricks material { texture { texture_color22 normal { lgeo_slope_bumps } } } // Purple-Blue #declare texture_color23 = // Purple-Blue texture texture { pigment {rgb <0.2682,0,0.72> } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color23 = // Purple-Blue brick color material { texture { texture_color23 } }#declare Color23_slope = // Purple-Blue for LGEO sloped bricks material { texture { texture_color23 normal { lgeo_slope_bumps } } } // Solid-Orange #declare texture_color25 = // Solid-Orange texture texture { pigment {rgb <1,0.2,0> } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color25 = // Solid-Orange brick color material { texture { texture_color25 } }#declare Color25_slope = // Solid-Orange for LGEO sloped bricks material { texture { texture_color25 normal { lgeo_slope_bumps } } } // Dark-Pink #declare texture_color26 = // Dark-Pink texture texture { pigment {rgb <0.95,0.19,0.57> } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color26 = // Dark-Pink brick color material { texture { texture_color26 } }#declare Color26_slope = // Dark-Pink for LGEO sloped bricks material { texture { texture_color26 normal { lgeo_slope_bumps } } } // Lime-Green #declare texture_color27 = // Lime-Green texture texture { pigment {rgb <0.678431,0.866667,0.313726>*0.8 } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color27 = // Lime-Green brick color material { texture { texture_color27 } }#declare Color27_slope = // Lime-Green for LGEO sloped bricks material { texture { texture_color27 normal { lgeo_slope_bumps } } } // Solid-Tan #declare texture_color28 = // Solid-Tan texture texture { pigment {rgb <0.96,0.8,0.48>*0.7 } finish{StandardFinish} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color28 = // Solid-Tan brick color material { texture { texture_color28 } }#declare Color28_slope = // Solid-Tan for LGEO sloped bricks material { texture { texture_color28 normal { lgeo_slope_bumps } } } // Black Rubber #declare texture_color256 = texture { pigment {rgb <0.15,0.15,0.16>} finish{ ambient #if(rad_setting = 5) 0.35 #else 0 #end diffuse 1 #if (QUAL > 1) brilliance 0.1 phong 0.05 phong_size 10 #end } normal { bumps 0.15 scale 0.25} } #declare Color256 = // Rubber brick color material { texture { texture_color256 } } // Chrome #declare texture_color383 = // Chrome texture texture { pigment {rgb 0.0 } finish{ ambient 0 diffuse 0.8 #if (QUAL > 1) brilliance 5 metallic specular 0.80 roughness 1/100 reflection {0.65,0.9 falloff 4} #end } #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color383 = // Chrome brick color material { texture { texture_color383 } }#declare Color383_slope = // Chrome for LGEO sloped bricks material { texture { texture_color383 normal { lgeo_slope_bumps } } } // Santa Fe color #declare texture_color399 = // Santa Fe color texture texture { pigment {granite turbulence 2 color_map { [ 0.0 rgb <0.710,0.70,0.720> ] [ 0.9 rgb <0.634,0.63,0.622> ] } scale 48 } finish { ambient 0.05 diffuse 1 #if (QUAL > 1) specular 1 reflection {0.025,.7 falloff 4} brilliance 5 #end } #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color399 = // Santa Fe color brick color material { texture { texture_color399 } }#declare Color399_slope = // Santa Fe color for LGEO sloped bricks material { texture { texture_color399 normal { lgeo_slope_bumps } } } // Milk-White (old Technics Axles) #declare texture_color511 = // Milk-White (old Technics Axles) texture texture { pigment { rgbf <1,1,0.975, 1/4 > } finish{phong 0.5 phong_size 40 reflection 0.08 refraction 1 ior 1.25} #if (BUMPS) normal { BUMPNORMAL } #end } #declare Color511 = // Milk-White (old Technics Axles) brick color material { texture { texture_color511 } }#declare Color511_slope = // Milk-White (old Technics Axles) for LGEO sloped bricks material { texture { texture_color511 normal { lgeo_slope_bumps } } } #declare Color33 = #if (version >= 3.1) material { #end texture { pigment { rgb <0.0823529,0.376471,0.976471> #if (QUAL > 1) filter 0.85 #end } finish { ClearFinish } #if (QUAL > 1) #if (BUMPS) normal { BUMPNORMAL } #end #end } #if (version >= 3.1) #if (QUAL > 1) interior { ior 1.33 } #end } #end #declare Color34 = #if (version >= 3.1) material { #end texture { pigment { rgb <0.117647,0.627451,0.227451> #if (QUAL > 1) filter 0.85 #end } finish { ClearFinish } #if (QUAL > 1) #if (BUMPS) normal { BUMPNORMAL } #end #end } #if (version >= 3.1) #if (QUAL > 1) interior { ior 1.33 } #end } #end #declare Color36 = #if (version >= 3.1) material { #end texture { pigment { rgb <0.968627,0.160784,0.054902> #if (QUAL > 1) filter 0.85 #end } finish { ClearFinish } #if (QUAL > 1) #if (BUMPS) normal { BUMPNORMAL } #end #end } #if (version >= 3.1) #if (QUAL > 1) interior { ior 1.33 } #end } #end #declare Color37 = #if (version >= 3.1) material { #end texture { pigment { rgb <0.627451,0.313726,0.498039> #if (QUAL > 1) filter 0.85 #end } finish { ClearFinish } #if (QUAL > 1) #if (BUMPS) normal { BUMPNORMAL } #end #end } #if (version >= 3.1) #if (QUAL > 1) interior { ior 1.33 } #end } #end #declare Color40 = #if (version >= 3.1) material { #end texture { pigment { rgb <0.47451,0.47451,0.45098> #if (QUAL > 1) filter 0.85 #end } finish { ClearFinish } #if (QUAL > 1) #if (BUMPS) normal { BUMPNORMAL } #end #end } #if (version >= 3.1) #if (QUAL > 1) interior { ior 1.33 } #end } #end #declare Color41 = #if (version >= 3.1) material { #end texture { pigment { rgb <0.313726,0.313726,1> #if (QUAL > 1) filter 0.85 #end } finish { ClearFinish } #if (QUAL > 1) #if (BUMPS) normal { BUMPNORMAL } #end #end } #if (version >= 3.1) #if (QUAL > 1) interior { ior 1.33 } #end } #end #declare Color42 = #if (version >= 3.1) material { #end texture { pigment { rgb <0.862745,1,0.0392157> #if (QUAL > 1) filter 0.85 #end } finish { ClearFinish } #if (QUAL > 1) #if (BUMPS) normal { BUMPNORMAL } #end #end } #if (version >= 3.1) #if (QUAL > 1) interior { ior 1.33 } #end } #end #declare Color45 = #if (version >= 3.1) material { #end texture { pigment { rgb <1,0.654902,0.811765> #if (QUAL > 1) filter 0.85 #end } finish { ClearFinish } #if (QUAL > 1) #if (BUMPS) normal { BUMPNORMAL } #end #end } #if (version >= 3.1) #if (QUAL > 1) interior { ior 1.33 } #end } #end #declare Color46 = #if (version >= 3.1) material { #end texture { pigment { rgb <1,0.905882,0.211765> #if (QUAL > 1) filter 0.85 #end } finish { ClearFinish } #if (QUAL > 1) #if (BUMPS) normal { BUMPNORMAL } #end #end } #if (version >= 3.1) #if (QUAL > 1) interior { ior 1.33 } #end } #end #declare Color47 = #if (version >= 3.1) material { #end texture { pigment { rgb <1,1,1> #if (QUAL > 1) filter 0.85 #end } finish { ClearFinish } #if (QUAL > 1) #if (BUMPS) normal { BUMPNORMAL } #end #end } #if (version >= 3.1) #if (QUAL > 1) interior { ior 1.33 } #end } #end #declare Color57 = #if (version >= 3.1) material { #end texture { pigment { rgb <1,0.4,0> #if (QUAL > 1) filter 0.85 #end } finish { ClearFinish } #if (QUAL > 1) #if (BUMPS) normal { BUMPNORMAL } #end #end } #if (version >= 3.1) #if (QUAL > 1) interior { ior 1.33 } #end } #end