Rewrite Checkered Image node to use GLSL instead of OIIO
Correct-Syntax opened this issue · comments
In an effort to remove our hard dependence on OpenImageIO which is difficult to install properly, this issue should rewrite the Checkered Image node (https://github.com/GimelStudio/GimelStudio/blob/master/src/nodes/corenodes/input/checkered_image_node.py) using a GLSL shader.
Is there any way(Article or documentation) that you would like to mention that can be referred to achieve this migration ?
Hi @kshitiz305, for converting the node to a glsl node you can refer to the existing nodes here that use glsl. e.g: the color balance node.
The main work is probably going to be creating the glsl shader itself. I have not attempted to create a checkboard pattern with glsl before so I can only suggest looking at some code online:
https://www.geeks3d.com/hacklab/20190225/demo-checkerboard-in-glsl/
https://stackoverflow.com/questions/4694608/glsl-checkerboard-pattern
...