Skip to content

Full Scene Demo

Complete integration of all Strata features โ€” terrain, water, vegetation, sky, and volumetrics โ€” into a cohesive, explorable 3D environment.

Interactive โ€” drag to rotate
Procedural TerrainAdvanced WaterGPU VegetationProcedural SkyVolumetric FogInteractive Controls

This demo combines all Strata features into a single cohesive scene:

  • Procedural Terrain with multiple biomes and height-based materials
  • Advanced Water with reflections and wave animation
  • GPU Vegetation covering the terrain hillsides
  • Procedural Sky with atmospheric scattering
  • Volumetric Particles for atmosphere and depth
  • Interactive Controls for exploration
import { Canvas } from '@react-three/fiber';
import {
Terrain,
AdvancedWater,
GrassInstances,
TreeInstances,
RockInstances,
ProceduralSky,
VolumetricFogMesh,
createTimeOfDay,
} from '@strata-game-library/core';
import { OrbitControls } from '@react-three/drei';
function FullScene() {
return (
<Canvas camera={{ position: [0, 50, 100], fov: 60 }} shadows>
{/* Sky & Atmosphere */}
<ProceduralSky
timeOfDay={createTimeOfDay(14, 30)}
stars
/>
<VolumetricFogMesh density={0.01} color="#9ab" />
{/* Lighting */}
<ambientLight intensity={0.3} />
<directionalLight
position={[100, 100, 50]}
intensity={1.2}
castShadow
shadow-mapSize={[2048, 2048]}
/>
{/* Terrain */}
<Terrain
biomes={['grassland', 'mountain', 'snow']}
amplitude={100}
size={500}
resolution={64}
/>
{/* Water */}
<AdvancedWater
size={500}
depth={30}
position={[0, 10, 0]}
reflections
caustics
foam
/>
{/* Vegetation */}
<GrassInstances count={15000} spread={200} />
<TreeInstances count={800} spread={250} />
<RockInstances count={300} spread={200} moss />
{/* Controls */}
<OrbitControls
maxPolarAngle={Math.PI / 2.1}
minDistance={20}
maxDistance={300}
/>
</Canvas>
);
}
Full Scene
โ”œโ”€โ”€ Background Layer
โ”‚ โ”œโ”€โ”€ ProceduralSky (day/night cycle)
โ”‚ โ””โ”€โ”€ VolumetricFogMesh (atmosphere)
โ”œโ”€โ”€ Midground Layer
โ”‚ โ”œโ”€โ”€ Terrain (procedural landmass)
โ”‚ โ””โ”€โ”€ AdvancedWater (ocean/lake)
โ”œโ”€โ”€ Foreground Layer
โ”‚ โ”œโ”€โ”€ GrassInstances (ground cover)
โ”‚ โ”œโ”€โ”€ TreeInstances (forests)
โ”‚ โ””โ”€โ”€ RockInstances (terrain details)
โ””โ”€โ”€ Controls
โ””โ”€โ”€ OrbitControls (camera movement)
FeatureDraw CallsGPU Time
Sky1~0.5ms
Terrain1-4~2ms
Water2-3~3ms
Vegetation3~4ms
Fog1~1ms
Total~10~10ms
InputAction
Left Click + DragOrbit camera
Right Click + DragPan camera
Scroll WheelZoom in/out