Up-in-the-Air – commitdiff

You can use Git to clone the repository via the web URL. Download snapshot (zip)
Pinwheel texture needs no alpha transparency
authorJulian Fietkau <git@fietkau.software>
Sat, 28 Sep 2024 02:47:50 +0000 (04:47 +0200)
committerJulian Fietkau <git@fietkau.software>
Sat, 28 Sep 2024 02:47:50 +0000 (04:47 +0200)
main.js

diff --git a/main.js b/main.js
index 6ba62b1e29e894e1db24e7cdcc970d4177756d6f..055cf5b0093fbd04e7583b903b2a327c7000bfe1 100644 (file)
--- a/main.js
+++ b/main.js
@@ -209,7 +209,7 @@ function init(game, canvas) {
   const pinwheelMaterial = new THREE.MeshPhongMaterial({
     map: game.assets.textures.pinwheel,
     transparent: true,
-    alphaTest: 0.01,
+    alphaTest: 0.5,
     opacity: 0.0,
   });
   game.objects.pinwheel = new THREE.Mesh(pinwheelGeometry, [null, null, null, null, pinwheelMaterial, null]);