Change Fragment_Before_FragColor after applied to material

With the reference to below playground, Can we change the border-color and thickness even after it’s applied to a material

https://playground.babylonjs.com/#IIURAR#4

Adding @nasimiasl the king of custom materials

You need to update the values that are passed here:

mat.getEffect().setColor3("borderColor", borderColor);
mat.getEffect().setFloat("borderThickness", thickness);
3 Likes

i see so late :slight_smile:

1 Like