Frames are rendering with hardcoded kernel
a5kin opened this issue · comments
- create GPU array (int3) for cells' color values;
- add fade in / out mechanism for each cell (absorb kernel);
- write basic render kernel for zoom=1 case;
- extend render kernel with zooming feature;
- extend render kernel with scrolling feature;
- extend the example with appropriate render() method.
Frames are now rendering directly on GPU, with zoom and scroll parameters passed to render kernel. The kernel itself is hardcoded along with emit and absorb kernels, it is planned to generate the render code somewhere in the Lattice subclasses later. Also, the color calculation will be defined directly in CellularAutomaton subclasses, as shown in GoL example.