Skip to content

Commit

Permalink
doc(README): updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ms0g committed Nov 2, 2024
1 parent 60decaa commit 076a8e3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
# Terrain
## Overview
This project demonstrates how to generate and render a 3D terrain using raymarching. Raymarching is a technique for rendering complex 3D scenes by calculating the distance from the camera to the nearest surface using a Signed Distance Field (SDF). The terrain is defined mathematically, allowing for smooth transitions, infinite detail, and dynamic surface generation without the need for complex geometry.
Procedurally generated 3D terrain rendered in the fragment shader.

<img src="assets/terrain.png" alt="image" width="700" height="auto">

## Features
- `Procedural Terrain Generation:` The terrain is procedurally generated using noise and fbm functions to define its height and surface details.
- `Raymarching Algorithm:` The scene is rendered using raymarching, which marches rays from the camera into the scene, estimating the distance to the terrain surface.
- `Dynamic Lighting:` Includes Phong lighting models to add realistic shading and highlights on the terrain.
- `Shadows`
- `Fog and Atmosphere:` Adds atmospheric effects such as fog to enhance the depth perception of the terrain.

## Usage
Serve the `src` directory with a web server then visit `localhost` or
try [the live demo](https://ms0g.github.io/terrain/).
Expand Down

0 comments on commit 076a8e3

Please sign in to comment.