Converting old materials isl to accommodate the new roughness attribute
- pixie
- Posts: 2332
- Joined: Sat Dec 29, 2007 4:54 am
- Location: Away from paradise
- 3D Software: Cinema 4D
- Contact:
Converting old materials isl to accommodate the new roughness attribute
There's quite a few materials which uses the old way of dealing with roughness, normally it can be easily converted but materials that have it coded in ISL have it hardcoded to the old way. How can one convert it in code?
Re: Converting old materials isl to accommodate the new roughness attribute
Code: Select all
roughnessForExponent(Real exponent)
{
return pow(2 / (exponent + 2), 1.f / 6.f);
}
Who is online
Users browsing this forum: No registered users and 111 guests