OSL Reflect Refract Bug

Hi,

I’ve found some irregularities using OSL map and VrayMtl. When connecting the reflect map, refract map, refl gloss and refr gloss at certain combination of values refraction or reflections disappear.
I’ve simplified the code to illustrate the problem.


This should look like normal glass material, but because everything is set to 1 it looks like a grey ball with no reflections.

When I put the Reflect gloss to 0.99 instead of 1.0 the reflections return. Still no refractions though

can’t add more attachments, too be continued

To get everything too work as expected I need to put 1 of the maps to a higher value (1.01 for this example), just 1, if I put them both on the same impossible high value then it breaks again.
And I need to clamp the refl gloss to .9999.

Thanks for listening to my ted talk.

Hi,
Thank you for the feedback. We will look into this and get back to you.

Best regards,
Milva