playcanvas / editor

Issue tracker for the PlayCanvas Editor
https://playcanvas.com/
160 stars 28 forks source link

Material CubeMap projection properties - are not available #1226

Open Maksims opened 5 days ago

Maksims commented 5 days ago

If the material does not have an explicitly set cubemap, it will use a global scene cubemap. While cubeMapProjection is still applied from the material.

But now there is a problem, when explicit cubemap is not set, UI hides projection properties. So if you set explicit cubemap on a material and switch to a box projection, and then remove a cubemap from it, then box projection will still apply, but UI will be hidden.

Cubemap projection and its related fields should be visible regardless of materials cubemap value as it still affects its appearance with global cubemap.

The specific lines to change are: editor/inspector/assets/material.js#L1571-L1575