Hi Guys,
I would like to know what would be the correct workflow to achieve this.
I would like to :
- get the length of the refracted ray inside the object.
- remap this length beetween 0cm to 5cm to a floating value beetween 0 to 1
- use the normalize float in a color ramp that i will plug in the fog color
- use the normalize float in a float ramp that i will plug in the refraction roughness
My goal is to be able to control
- refraction color
- refraction roughness
Throw a ramp to get a full control on the aspect of the refraction.
I'm coming from a Mantra / Prman Background so maybe the way i want to do it is stupid in the vray world,
so if any other methods is better to achieve this i would be happy to know it !
Thanks for your time !
I have attach a screenshot of what i try to do without success at the moment !
Cheers
E
I would like to know what would be the correct workflow to achieve this.
I would like to :
- get the length of the refracted ray inside the object.
- remap this length beetween 0cm to 5cm to a floating value beetween 0 to 1
- use the normalize float in a color ramp that i will plug in the fog color
- use the normalize float in a float ramp that i will plug in the refraction roughness
My goal is to be able to control
- refraction color
- refraction roughness
Throw a ramp to get a full control on the aspect of the refraction.
I'm coming from a Mantra / Prman Background so maybe the way i want to do it is stupid in the vray world,
so if any other methods is better to achieve this i would be happy to know it !
Thanks for your time !
I have attach a screenshot of what i try to do without success at the moment !
Cheers
E
Comment