You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems not possible to "unset" the image uniform for a Material.
Just as I can create a Material with image: undefined, I expect I can set image = undefined to achieve the same state.
However, it seems setting image = Cesium.Material.DefaultImageId ('czm_defaultImage') does not work either; nothing can achieve this, the only work-around is to create a new Material (and destroy the old one).
I can confirm that this is the current behavior. It would make more sense if setting image to undefined removes the previous image from the geometry.
I made this Sandcastle which could be a potential workaround: link. Although it also removes the base color of the geometry and setting base color to RED again does not seem to have an effect. I tried setting requestRenderMode = true and call requestRender after setting the image to undefined but that did not help.
This might be related to an older issue here: #5080
It seems not possible to "unset" the
image
uniform for aMaterial
.Just as I can create a
Material
withimage: undefined
, I expect I can setimage = undefined
to achieve the same state.However, it seems setting
image = Cesium.Material.DefaultImageId
('czm_defaultImage'
) does not work either; nothing can achieve this, the only work-around is to create a newMaterial
(and destroy the old one).See the following demo (paste into Sandcastle):
The text was updated successfully, but these errors were encountered: