laymur 0.3.10 → 0.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4973,7 +4973,7 @@ class UIElement extends UIAnchor {
|
|
|
4973
4973
|
}
|
|
4974
4974
|
}
|
|
4975
4975
|
|
|
4976
|
-
var source$2 = "void main() {\n vec4 diffuseColor = texture(map,
|
|
4976
|
+
var source$2 = "void main() {\n vec2 transformedUV = (vec3(io_UV, 1.0) * uvTransform).xy;\n vec4 diffuseColor = texture(map, transformedUV) * color;\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n gl_FragColor = diffuseColor;\n #include <colorspace_fragment>\n}\n";
|
|
4977
4977
|
|
|
4978
4978
|
/**
|
|
4979
4979
|
* UI element for displaying textured images.
|
|
@@ -5004,6 +5004,7 @@ class UIImage extends UIElement {
|
|
|
5004
5004
|
const color = options.color ?? new UIColor();
|
|
5005
5005
|
super(layer, options.x ?? 0, options.y ?? 0, w, h, source$2, {
|
|
5006
5006
|
map: texture,
|
|
5007
|
+
uvTransform: texture.matrix,
|
|
5007
5008
|
color,
|
|
5008
5009
|
});
|
|
5009
5010
|
/** Event handler for when the color changes */
|