How can force no specular reflections on a material in a scene that has scene.environmentTexture.
I was under the impression if you set the material.reflectionTexture = null it would fallback and use the scene.environmentTexture instead.
I need it to not use ANY reflectionTexture and I cannot just set material.environmentIntensity = 0.
I need the diffuse ibl, but I need to disable the specular reflections ?
Maybe something like that will work for you? Just use NodeMaterial and combine PBR outputs to fragment in a way you want to. Upload some IBL to see results
Not quite what i was looking for… I way so that NEITHER material.reflectionTexture or scene.environmentTexture contribute specular reflections.. for a BABYLON.PBRMaterial
I think your code above should work? If you can setup a simple repro, we should be able to find why it doesn’t.
Also, you can access finalRadianceScaled (which is the very final radiance value that will be added to the pixel color) in the CUSTOM_FRAGMENT_BEFORE_FINALCOLORCOMPOSITION point, if that can help.
Yeah, i figured that one out as well. My UnityStyleLightingPlugin does the IBL split for me. Now diffuseIBL wont contribute to my lightmapped textures, but Specular Reflections can contribute full (or even scaled up or down reflections… including passing 0 to the Specular IBL split to turn off reflections no matter if it has a reflectionTexture or getting reflections from the environment)