// POVRAY description of button with national flag #include "ceiling-lights.inc" #include "background.inc" #declare empty = object{ sphere{ <0,0,0>, 0 } } #declare highlight_color = color rgb <1.00, 1.00, 1.00> // Name of button_texture_file, button_label_file: #include "button-parameters.inc" // Definition of button shape: #declare button_shape_HX = 33 - 0.9 #declare button_shape_HY = 8 #declare button_shape_HZ = 22 - 0.9 #declare button_shape_cap_HY = 4 #declare button_max_disp_Y = 0 #declare button_min_disp_Y = -16 #declare button_hole_clearance = 1.2 #include "superellipses.inc" #declare button_cyl = object{ super_cyl } #declare button_ball = object{ super_ball } #include "button-shape-simple.inc" // Definitions of button_relief, button_dugout, button_overlay, button_relief_HY: #declare button_label_font_scale = 20 #declare button_dugout_depth = 3 * button_shape_cap_HY #include button_label_file // Definition of button_plunger_texture: #include "button-texture-ppm.inc" #declare button_plunger_texture = texture{ button_texture } // Definition of button plunger: #include "button-plunger.inc" // Definition of button_hole, button_frame: #include "button-hole-simple.inc" // Definition of button_wall_texture, button_frame_texture: #declare matte_color = color bgColor #include "textures/matte.inc" #declare button_wall_texture = texture{ texture_matte } #declare button_frame_texture = texture{ texture_matte } // Definition of button_wall_hole_frame: #include "button-wall-hole-frame.inc" // Definitions of button_in, button_out #include "button-in-hole.inc" // btn_width_pixels should be odd. #declare btn_width_pixels = 33 // img_width_pixels should be a divisor of the true image width #declare img_width_pixels = 6 + btn_width_pixels + 6 #declare img_aspect = 1 #declare win_width = img_width_pixels/btn_width_pixels * (2*button_shape_HX) #declare win_height = win_width / img_aspect #declare win_center_X = 00.00 #declare win_center_Y = 00.00 #declare win_center_Z = -16 #declare camDX = 00000.00 #declare camDY = +2000.00 #declare camDZ = 00000.00 #declare skyX = 0 #declare skyY = 0 #declare skyZ = 1