Skip to main content
1-Visitor
Feb 16, 2021 2:07 PM UTC
Solved

Toggling of Shaders not working

Since the update, I have come across a lot of issues. Recently I was checking the toggling of shaders on model items, it doesn't toggle anymore. Also the orientation of model items are getting inverted.  

sebbenAnswer
14-Alexandrite
Feb 17, 2021 7:28 AM UTC

You can apply the "Default" shader by using:

$scope.view.wdg["model-1"].shader = "Default";

 

19 replies

1-Visitor
Feb 17, 2021 4:30 AM UTC

Same thing is happening with me too. Can anyone help me in this

Translate
14-Alexandrite
Feb 17, 2021 5:44 AM UTC

Hi,

 

could you explain in more details how you are trying to toggle the shader?

 

Thanks.

Translate
1-Visitor
Feb 17, 2021 7:13 AM UTC

Let me explain with the help of an example,

I have two buttons, with one I am applying X Ray shader to model items. And with the other, I am removing/ undoing the X Ray Shader to the same model items. Before the update this toggling of shaders to model items  were working fine but since the update, the shaders get applied to model items but now they don't get removed unless another shader is applied to those model items. Is this an issue with the latest update.

 

Translate
14-Alexandrite
Feb 17, 2021 7:18 AM UTC

Try to replace the shader with the "Default" shader.

That works for me.

Translate