# OSL goodness in Vray

**URL:** <https://forums.chaos.com/t/osl-goodness-in-vray/54533>\
**Category:** General\
**Created:** [July 11, 2015, 6:18pm UTC](https://forums.chaos.com/t/osl-goodness-in-vray/54533 "2015-07-11T18:18:30Z")\
**Posts on this page:** 1\
**Showing post:** 47

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [August 31, 2015, 6:00am UTC](https://forums.chaos.com/t/osl-goodness-in-vray/54533/47 "2015-08-31T06:00:51Z")

</div>

> 2. Some other renderers use 3 values for the scatter radius instead of a single float. The idea here I think is to have the red wavelength pass more light though that the blue or green.You do have three values for the scatter radius - the meanFreePath is a color, so it has three separate values. Although it is represented as a color, the meanFreePath is actually the scatter radius for the red, green and blue light components.

> [@TexTiles texture](https://forums.chaos.com/t/textiles-texture/46894/12):
>
> Would it be possible to add subdiv control to the sss scatter in OSL in a future release?

Yes, will make a note about it.

> 1. Am I correct that the sss part of the VraySkinMtl is made of 3 layers of sss2 added together with differing values for the scatter radius (in OSL the meanFreePath)?No, not exactly. The vray\_subsurface() closure corresponds to the VRayFastSSS2 material. The VRaySkinMtl material is somewhat different; there I tried to follow the way it is implemented in other renderers and it works pretty much in the same way. It is calculated internally as three grayscale vray\_subsurface() closures multplied by the color of the respective component (with the VRayFastSSS2 material being a special case where the three components have red, green and blue colors). The VRaySkinMtl is also optimized to compute the three sub-surface components together, whereas if you just add them in an OSL material, you could get the same result, but it would lead to way more calculations.

Best regards,  
Vlado

---

_[View the full topic](https://forums.chaos.com/t/osl-goodness-in-vray/54533)._
