I’m trying to create a custom shader for an Image Element.
Here is the project:
https://playcanvas.com/project/532246/overview/ui-custom-shader
I used the Custom Shader example and changed just the line to access the model inside the element:
// var model = this.entity.model.model;
var model = this.entity.element._image._model;
It works, but the image is very small and is not respecting the anchors.
Any hint how to fix it?