Skip to main content
1-Visitor
February 16, 2021
Solved

Toggling of Shaders not working

  • February 16, 2021
  • 2 replies
  • 6402 views

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.  

Best answer by sebben

You can apply the "Default" shader by using:

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

 

2 replies

1-Visitor
February 17, 2021

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

14-Alexandrite
February 17, 2021

Hi,

 

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

 

Thanks.

1-Visitor
February 17, 2021

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.

 

14-Alexandrite
February 17, 2021

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

That works for me.