Closed aliwangzai closed 1 year ago
hi @aliwangzai -- Only properties from the API are supported. https://doc.babylonjs.com/typedoc/classes/BABYLON.PBRMaterial
Have you added your own properties?
I see ,I just want change the property by code . some properties beyond the API but actually exists in the Inspector Editor of Material . 😃 ,maybe the property are not exposed yet ?
Can you show a screenshot of where you see this? I can't find it anywhere: https://github.com/BabylonJS/Babylon.js/search?q=isFractionEnabled
above , there are also other properties not being exposed
sorry , My fault , It's "isRefractionEnabled"
oh yes @aliwangzai. that's the PBR Subsurface Configuration! 😄 You need assignFrom="subSurface"
like this (sorry it's a not easy to see, but it's in the new upcoming docs).
<pbrMaterial >...
<pbrSubSurfaceConfiguration assignFrom='subSurface' isRefractionEnabled={YourValueHere} />
</pbrMaterial>
There is an example here with ClearCoatConfiguration: https://brianzinn.github.io/react-babylonjs/?path=/story/textures--dynamic-config
Thanks for ur help !
Hi, pbrMaterial does not support propery like "isFractionEnabled" I am new to React , I tried to modify the source code . I didn't get this to work ! :(