OpenGL pixel shader: Difference between revisions
oops, forgot the most important part...
mNo edit summary |
(oops, forgot the most important part...) |
||
Line 1:
{{draft task|OpenGL}}
Using the triangle geometry from [[OpenGL]]. But instead of using a mechanism such as glColor3d, use a [[wp:Pixel Shader|pixel shader]] for each pixel in the triangle. The pixel shader should pick a random RGB color for each pixel.
Optional: provide an update mechanism, to repeatedly re-render the triangle. (Possibilities include a mouse event handler, a timer event handler or an infinite loop.)
|