Ian
June 28, 2019, 9:18am
1
Hi, is it possible to inspect the FresnelParameters (i.e emissiveFresnelParameters.leftColor) of the standardMaterial? It is possible with a GUI control like ColorPicker().
This code doesn’t work:
mat.inspectableCustomProperties = [
{
label: "LeftColor",
propertyName: "emissiveFresnelParameters.leftColor",
type: BABYLON.InspectableType.Color3
}
]
https://www.babylonjs-playground.com/#TAZ2CB#53
Thanks.
inspectable can only be referencing object properties directly.
You could nevertheless add a property to material matching the child fresnel left color like this:
https://www.babylonjs-playground.com/#TAZ2CB
Hope that helps.
Ian
June 28, 2019, 10:16am
3
Hi Sebavan, I think you forgot to add your code to the playground or you provided the wrong link?
Ian
June 28, 2019, 1:37pm
5
Awesome! Very handy static method. Thanks for your help. I can now get rid of my 400 line fresnel gui stack panel.