Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /usr/www/users/sharkrj/dimage/wp-content/plugins/types/vendor/toolset/types/embedded/includes/wpml.php on line 644

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /usr/www/users/sharkrj/dimage/wp-content/plugins/types/vendor/toolset/types/embedded/includes/wpml.php on line 661
programming | Dimage Sapelkin

Category Archives: Programming

Conway’s Life as a shader

A while ago i’d done a Conway’s Life using WebGl just for fun. Today I visited that site, and it was broken. After looking into it, it appeared that the texture sizes now have to be equal to a power of 2. Fixed it, and now it works:

Move the mouse cursor around to move the circle; click to restart.
See it at WebGL playground.