#include "woods.inc" #local C1=rgb <223/255, 191/255, 87/255>; #local C2=rgb <224/255, 161/255, 50/255>; #local C3=rgb <224/255, 171/255, 64/255>; #declare M_MyWood11A = color_map { [0.222 color C1] [0.342 color C2] [0.393 color C1] [0.709 color C1] [0.821 color C3] [1.000 color C1] } #macro MakeLightWoodTexture(IsEnd) #local Finish = finish { phong 0.1 reflection 0.005 #if (IsEnd) diffuse 0.55 #else diffuse 0.65 #end ambient 0.1 * pow(Brightness, 2) } texture { pigment { P_WoodGrain19A color_map { M_MyWood11A } } finish { Finish } scale 4 } texture { pigment { P_WoodGrain19B color_map { M_Wood11B }} finish { Finish } scale 4 } #end #declare LightWoodTexture = MakeLightWoodTexture(0) #declare LightWoodEndTexture = MakeLightWoodTexture(1) #declare M_MyWood6B = color_map { [0.0 color rgbt <0.25, 0.10, 0.10, 0.40>] [0.3 color rgbt <0.25, 0.10, 0.10, 0.80>] [0.5 color rgbt <0.60, 0.15, 0.10, 1.00>] [0.7 color rgbt <0.25, 0.10, 0.10, 0.80>] [0.7 color rgbt <0.60, 0.15, 0.10, 0.80>] [1.0 color rgbt <0.25, 0.10, 0.10, 0.40>] } #macro MakeDarkWoodTexture(IsEnd) #local Finish = finish { phong 0.1 reflection 0.005 #if (IsEnd) diffuse 0.55 #else diffuse 0.65 #end ambient 0.1 * pow(Brightness, 2) } texture { pigment { P_WoodGrain16A color_map { M_Wood6A } } finish { Finish } scale 2 } texture { pigment { P_WoodGrain16B color_map { M_MyWood6B }} finish { Finish } scale 4 } #end #declare DarkWoodTexture = MakeDarkWoodTexture(0) #declare DarkWoodEndTexture = MakeDarkWoodTexture(1)