|
|
Why interior_texture doesn't work at all with CSG?
Here is an example scene (change the merge with any other CSG keyword to
see that it doesn't work with any of them). The object at the left is a
sphere with almost transparent outer texture and then a blue interior
texture (I bumped up the ambient to make it more visible). The object at
the right is a CSG of two spheres; interior_texture has absolutely no
effect in it.
#version Unofficial MegaPov 0.5;
global_settings { ambient_light 4 }
camera { location <-1,2,-5>*1.3 look_at 0 angle 35 }
light_source { <170,200,-50>, 1 }
plane { y, -1 pigment { checker rgb 1, rgb .5 } }
sphere
{ -x*1.2, 1
pigment { rgbt <1,1,0,.9> }
interior_texture { pigment { rgb <0,1,1> } }
}
merge
{ sphere { x*1.2, 1 }
sphere { <1.2,.5,0>, 1 }
pigment { rgbt <1,1,0,.9> }
interior_texture { pigment { rgb <0,1,1> } }
}
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|