/raymarching-godot

Implement real-time raymarching renderer on fragment shader using Godot game engine

Primary LanguageGDScriptGNU General Public License v3.0GPL-3.0

Raymarching Godot

This is my attempt to create a Raymarching Renderer in Godot Game engine. I'm using a fullscreen ColorRect node with a custom fragment shader.

This is more of a reference project for those of you interested in learning this amazing rendering technique. I also have series of blog posts that cover raymarching in a greater detail.

This demo supports FPS style camera with WASD as movement keys and QE as up/down keys. Press ESC to exit mouse capture mode. There is a slider on the left top corner to change the FOV of camera.

You can navigate between tags to get code for each chapter in my tutorial. For example, git checkout part3-fov will get you code for the final chapter in part3.

Screenshots

Screenshot

Build

Clone this repository.

Download Godot Game Engine (Standard version).

Run Godot and import this project

That's it! Just run it in editor or export to the platform of your choise.