Solved
Reset shader values of a model in Vuforia Studio
Hello, I made a function that cuts my model based on the value of a slider, to obtain a dynamic section-like effect.
This model has some element which are glass-like (material wise) and when I apply the "cut" which is basicall a shader this "glass" becomes darker, more like plastic. I would like to know if there is a way to reset the model shader value to its default value.
The code for the section is the following:
planarCutmodel.shader = `planar_cut; clipCenterX f ${$scope.clipCenterX}; clipCenterY f 0.0; clipCenterZ f 0.0; clipAxisX f 1.0; clipAxisY f 0.0; clipAxisZ f 0.0; clipLineWidth f 0.003`;
I tried with $scope.view.wdg["model-1"]['shader'] = undefined; or tml3dRenderer.setProperties('model-1', {'shader': undefined}); but nothing happens.
I tried with $scope.view.wdg["model-1"]['shader'] = undefined; or tml3dRenderer.setProperties('model-1', {'shader': undefined}); but nothing happens.
Thanks in advance

