lamina icon indicating copy to clipboard operation
lamina copied to clipboard

Add all base material properties to debugger

Open supermoos opened this issue 2 years ago • 4 comments

Seems like now it just exposes base color, alpha and lighting. Since lighting changes the base material perhaps the base materials properties (roughness, transmission etc.) could then be exposed too?

supermoos avatar Apr 04 '22 09:04 supermoos

Base material properties can be passed into the component/constructor just like you do for regular materials.

<LayerMaterial roughness={…} transmission={…} />

FarazzShaikh avatar Apr 04 '22 12:04 FarazzShaikh

I know, that's not what the issue / feature request was about :-) I'll try and explain it better. If you look at the screenshot below, it's using DebugLayerMaterial, it would be great if the default props of the base material where visible and adjustable in this dialog too, instead of just base and alpha. Screenshot 2022-04-04 at 14 15 00

supermoos avatar Apr 04 '22 12:04 supermoos

Ahh I see, that would be great but it would clutter up the debug panel with a long list of sliders.

It’s also difficult to extract properties that make sense to be sliders dynamically. I’ll give it a go for the next release but no promises haha

FarazzShaikh avatar Apr 04 '22 12:04 FarazzShaikh

Could be collapsed In a group by default :)

supermoos avatar Apr 04 '22 12:04 supermoos