// Sample scene. // povray image_indexed_textures_v38.pov +w900 +h700 +p +a +mv3.8 global_settings { assumed_gamma 1 } #declare VarOrthoMult = 3.0/max(image_width/image_height,image_height/image_width); #declare Camera01z = camera { orthographic location <0,0,-2> direction z right VarOrthoMult*x*max(1,image_width/image_height) up VarOrthoMult*y*max(1,image_height/image_width) } #include "functions.inc" #declare ImgIdxTxtrs = texture { material_map { function 45 35 { pigment { user_defined { function { x*(4/255) }, function { 0 }, function { 0 }, function { 0 }, function { 0 } } } } map_type 0 interpolate 3 // Acts on palette register / index entries too // which is of 'iffy' usefulness... texture { pigment { rgb <0.05,0.05,0.05> } finish { emission 1 } } texture { pigment { rgb <1,0,0> } finish { emission 1 } } texture { pigment { rgb <0,1,0> } finish { emission 1 } } texture { pigment { rgb <0,0,1> } finish { emission 1 } } texture { pigment { rgb <1,1,1> } finish { emission 1 } } } } plane { -z, 0 texture { ImgIdxTxtrs scale <1,-1,1>} } camera { Camera01z } sphere { <+0,0,0>, 0.02 pigment { rgb <1,0.5,0.1>} finish { emission 1.0 } } sphere { <+1,0,0>, 0.02 pigment { rgb <1,0.5,0.1>} finish { emission 1.0 } } sphere { <-1,0,0>, 0.02 pigment { rgb <1,0.5,0.1>} finish { emission 1.0 } } sphere { <+0,+1,0>, 0.02 pigment { rgb <1,0.5,0.1>} finish { emission 1.0 } } sphere { <+0,-1,0>, 0.02 pigment { rgb <1,0.5,0.1>} finish { emission 1.0 } }