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() {