Starting point

This is the image we will use.

For all shaders here, we use a simple vertex shader that does not do much. Normally a vertex shader could be used to transform the vertices of the underlying 3D model. This would include, for instance, scaling or rotating them.

Since we only want to render 2D images, we use a simple plane that covers the whole canvas. We save the coordinate of the plane we are processing in texturePos.


        

Negative


        

Black and white (linear)