Angramme / interference

A simple visualization of wave interference with GPU acceleration.

Home Page:https://angramme.github.io/interference/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

interference

A simple visualization of wave interference with GPU acceleration.

screenshot

implementation

Calculates the wave value per pixel which is calculated the the following formula for a given point:

point => sum(wave_sources.map( origin => sin(distance(point, origin)))) 

graphisme setting

This setting uses basic refraction formulas to calculate the color of the refracted "pool floor" and adds it to the phong shading with specular reflections based on the fixed light position and the surface normal calculated with the wave value function.

About

A simple visualization of wave interference with GPU acceleration.

https://angramme.github.io/interference/


Languages

Language:HTML 98.7%Language:JavaScript 1.3%