From be9dd9721d692308ecb7f1985cf595581fbd63fc Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sun, 8 Nov 2026 18:30:07 -0600 Subject: [PATCH] non transparent ground --- .../TankSandbox/components/SceneProps/index.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/SceneProps/index.tsx b/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/SceneProps/index.tsx index ca26e8c94..49acf7566 100644 --- a/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/SceneProps/index.tsx +++ b/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/SceneProps/index.tsx @@ -47,10 +47,10 @@ export function SceneProps() { ${shader.fragmentShader} `.replace( - "#include ", + "#include ", ` - #include + #include vec3 scaled = vWorldPosition / size; float radius = length(scaled.xz); @@ -59,7 +59,10 @@ export function SceneProps() { discard; } - diffuseColor.a *= (1.0 - radius); + float x = 1.0 - radius; + float y = x * x; + + gl_FragColor.rgb *= y; `, ); }, @@ -78,7 +81,6 @@ export function SceneProps() {