jloro / ShaderPixel

Fragment shader museum with complex shaders(3D fractal, volumetric raymarching, volumetric light...) using custom game engine in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ShaderPixel

ShaderPixel is a 42 project. It's a fragment shader museum using OpenGL and C++ and a custom game engine. Most of the shader use raymarching.

video démo https://www.youtube.com/watch?v=ThAawNuKSpk

Installing

Just git clone and run make.

git clone https://github.com/jloro/ShaderPixel.git

And run ./ShaderPixel.

Commands

=== COMMANDS ===

WASD : move camera

SPACE/L-CTRL : Move camera up and down

L-SHIFT : Move faster

R : Recompile shader

0-5 : Post processing filter

keypad - + : Change offset of filter 3-5

ESC : Quit

Different shaders

3D mandelbulb with hard shadows and Ambiant Occlusion

3D mandelbox

Menger sponge

Volumetric cloud with volumetric light

Volumetric cloud

Marble using volumetric raymarching

A window to another world

Koch Snowflake using renderbuffer

Built With

  • SDL2 - Library for handling window.
  • STBI - C++ library to load image.
  • ASSIMP - C++ library to load model.
  • GLM - C++ mathematics library for graphics software based on the OpenGL Shading Language (GLSL) specifications.
  • OpenGL - OpenGL

Authors

About

Fragment shader museum with complex shaders(3D fractal, volumetric raymarching, volumetric light...) using custom game engine in C++


Languages

Language:C 63.0%Language:C++ 34.9%Language:GLSL 0.7%Language:Objective-C 0.7%Language:Makefile 0.5%Language:CMake 0.1%