fix: remove black edges from world splats
This commit is contained in:
parent
d89040e9f1
commit
13a6e3df83
@ -1620,8 +1620,6 @@ function WorldSplatScene({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<color args={["#020617"]} attach="background" />
|
|
||||||
<fog attach="fog" args={["#020617", 10, 45]} />
|
|
||||||
<ambientLight intensity={1.6} />
|
<ambientLight intensity={1.6} />
|
||||||
<directionalLight intensity={1.25} position={[6, 10, 4]} />
|
<directionalLight intensity={1.25} position={[6, 10, 4]} />
|
||||||
{groundPlaneOffset !== null ? (
|
{groundPlaneOffset !== null ? (
|
||||||
@ -2033,13 +2031,23 @@ function WorldSplatViewer({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative h-full w-full">
|
<div className="relative h-full w-full overflow-hidden bg-zinc-100">
|
||||||
|
{previewImageUrl ? (
|
||||||
|
<img
|
||||||
|
alt=""
|
||||||
|
aria-hidden="true"
|
||||||
|
className="pointer-events-none absolute inset-0 h-full w-full object-cover opacity-35 blur-md saturate-90"
|
||||||
|
decoding="async"
|
||||||
|
src={previewImageUrl}
|
||||||
|
/>
|
||||||
|
) : null}
|
||||||
<Canvas
|
<Canvas
|
||||||
camera={{ position: [0, 1.6, 4], fov: 55 }}
|
camera={{ position: [0, 1.6, 4], fov: 55 }}
|
||||||
className="h-full w-full bg-[radial-gradient(circle_at_top,_rgba(15,23,42,0.95),_rgba(1,1,1,1)_68%)]"
|
className="relative h-full w-full bg-transparent"
|
||||||
dpr={minimalFrame ? [1, 1.5] : [1, 2]}
|
dpr={minimalFrame ? [1, 1.5] : [1, 2]}
|
||||||
frameloop="always"
|
frameloop="always"
|
||||||
gl={{
|
gl={{
|
||||||
|
alpha: true,
|
||||||
antialias: true,
|
antialias: true,
|
||||||
powerPreference: "high-performance",
|
powerPreference: "high-performance",
|
||||||
preserveDrawingBuffer: Boolean(onCaptureReady),
|
preserveDrawingBuffer: Boolean(onCaptureReady),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user