Hi Etienne,
galinette wrote:
I wanted to use real volume absorbance for tinting the glass, but as far as I know, it's not possible yet to use shaders for the volumic absorbance.
Ono demonstrated otherwise !
http://www.indigorenderer.com/forum/vie ... 069#p96069
http://www.indigorenderer.com/forum/vie ... 601#p89601
galinette wrote:It would also be tricky, as I suppose that absorbance shader will use "pos" and no UV coordinates, whereas bump uses only UV and no "pos".
Good point. I guess that you could use a
closest UV from pos function, is this correct ?
Given a position within a volumetric shader, it would returne the UV coordinates of the closest point on the surface containing the medium. However, as I am understanding it, this may require to return an array or stuff when multiple UV sets are present, but that's just me telling
edit: ah, scratch the limitation I'm talking about; the queried index could be one of the two arguments provided, the function would then return a single vec2.