Skip to content

DaedalusOA/Reaction-Diffusion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reaction-Diffusion Simulation

This is a Reaction-Diffusion simulation I made using shaders with WebGL and Three.js, you can play with the website at https://daedalusoa.github.io/Reaction-Diffusion/

RDD

How it works

It works by using two shaders that interchange themselves with a ping-pong system, each cell computes its future value by adding up its current neighbors with the weights of the reaction-diffusion simulation, and inputting them into the reaction-diffusion equations, with blue representing B and red representing A.

For the simulation to avoid certain areas of the website I coded it to put green in the areas it should avoid, it then multiplies the kill variable by a small amount to make the area inhospitable AKA make it avoid areas.

About

Reaction Diffusion simulation using shaders with Webgl and Three.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published