What is the simpliest way to use shaders in OpenTK? Is it possibile to use only pixel shader?
What I want to do, is drawing lot of pixels on screen ( only in 2D ).
Posted Saturday, 21 January, 2012 - 20:46 by XZibit
I havent even foind out how to draw many pixels with OGL in a performant way but it is possible to use only pixel shader. In there, yout have to write a pixel shader and compile it with at least an empty (so default) fragment shader. To get a shader working, you need to do following steps:
Comments
Re: Shaders
I havent even foind out how to draw many pixels with OGL in a performant way but it is possible to use only pixel shader. In there, yout have to write a pixel shader and compile it with at least an empty (so default) fragment shader. To get a shader working, you need to do following steps:
This you do with each of these programs
And last step create the program