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

Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/sharkrj/dimage/wp-content/plugins/types/vendor/toolset/types/embedded/includes/wpml.php:644) in /usr/www/users/sharkrj/dimage/wp-content/plugins/google-apps-login/core/core_google_apps_login.php on line 482
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.