world.ts 0.3.17 → 0.3.18
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 +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1624,8 +1624,9 @@ void main() {
|
|
|
1624
1624
|
float d = length(uv_out.xy);
|
|
1625
1625
|
if (d >= 1.0) discard;
|
|
1626
1626
|
float a = atan(uv_out.y, uv_out.x) / 2. / 3.14159;
|
|
1627
|
-
|
|
1628
|
-
if (
|
|
1627
|
+
vec4 value = texture(image, vec2(d, a));
|
|
1628
|
+
if (value.r == 0.f) discard;
|
|
1629
|
+
result = vec4(0, 1., 0, value.r);
|
|
1629
1630
|
}`, ii = `#version 300 es
|
|
1630
1631
|
|
|
1631
1632
|
precision highp float;
|