|
![](/i/fill.gif) |
Christoph Hormann wrote:
>
> Vahur Krouverk wrote:
> >
> > Shader in POV-Man is object's pigment and modifies pigment's color and
> > opacity (transparency), so it should work with regular "stuff" more or
> > less as expected. At least I hope so: I haven't tested it yet with
> > advanced features (such as multiple layered textures, media, photons,
> > glows etc.) and perhaps there are problems, lurking around.
> > Or did You meant something else?
>
> That's somehow what i meant, but as in your sample, it also seems to be capable
> of surface perturbation and therefore i wonder how things work with CSG,
> 'trace', etc.
Well, forgot to mention, that shader can modify shading normal (i.e.
change normal's direction).
But in this hypertexture example it is just play with transparency and
color, shading calculation (for diffuse, highlights etc.) in shader uses
own calculated normal, object itself remains still sphere. I guess that
trace will detect as sphere, same with CSG. But such example is probably
not the "usual" use of shader, mostly it just modifies object pigment's
color.
Post a reply to this message
|
![](/i/fill.gif) |