A repository where some gizmos about CG are stored. Shadertoy is a platform providing WebGL programming and demonstrating functions. This repo is still in update.
A further development based on nimitz's "Re-entry". First time modelling on space to combine primitives with math in ray-marching. Additional cinematic camera behaviour when using telescope and create a tense atmosphere. The flame is created by combining FBMs of different frequencies. Also multiple pass ray-marching create a dramatic volumetric shading.
An applycation of fluid dynamics using navier-stokes. Read the introduction of GPU Gem Chap. 8 and adjusted according to Shaderstory. Shaderstory has the limitation of only single fragment-shader call between two frames. A brilliant solution is provided by trirop that a pre-calculated weight kernel is used to fake the Jacobi iteration. In Buffer A the smoke flows up according to its temporature and sinks according to its density. The cooling function is pseudo-exponential, after several heuristic tries.
After leaning about Fractional Brownian motion, and read the inspirational shader by iq, this eye with two iris color is created, but with more realistic animation. Eye reacts according to lighting intensity, FBM procedural iris texture. simple environment reflection on iris.
A simple PBR shader with environment map. Forward shading, directional+point light sources. Unity-style approximation. Rather a research experiment, gamma correction or more still fails.
- GGX: Walter et al.
- Fresnel term: Schlick C.
- Visibility/geometry term: Smith shadow-masking
- Distribution term: Trowbridge-Reitz
A moving ball in 3D space. Motion blurred by averaging the multi-sampling of past 24 frames.
First time knowing Shadertoy. In the visualization's course, the Voronoi diagram reminds me of the caustic in swimming pool (although they are way from realistic).