ValveSoftware / the_lab_renderer

Valve’s VR renderer used in The Lab (Valve’s VR launch title for the HTC Vive).
BSD 3-Clause "New" or "Revised" License
281 stars 59 forks source link

How to disable Fresnel highlighting #6

Open KevinComerford opened 8 years ago

KevinComerford commented 8 years ago

Can't seem to disable specular Fresnel highlighting effect without affecting the cubemap scaler. I know it was added to make things pop, but there are many things that I don't want to add it too as the effect is too strong. I was able to affect the flFresnelExponent to change falloff of the effect, but it doesn't affect its contribution. Is there an easy way to disable the effect entirely?

plmayer commented 8 years ago

I have the same issue. In the (Unity) standard shader there is a setting for roughness ("Smoothness") which directly affects Fresnel, but there doesn't seem to be a similar setting in the vr_standard shader (there is "Glossy", which doesn't seem to affect it).

@KevinComerford, did you manage to find a solution or do you have any further links?

plmayer commented 8 years ago

Follow-p: You can adjust the Fresnel effect in lines 177 and 566 of vr_lighting.cginc.