Hi All
I want to write a shader that can drive reflection and refraction
based on a surfaces diffuse values. However I am not sure how to get
the output from the diffuse() function into a variable that I can pass
to the trace() and refract() functions.
Basically I want to set a range in which the diffuse vals fall, If in
one range light is reflected and if in another light is refracted.
Any pointers on this would be greatfully appreciated.
Dave R