Easy framework for OpenGL Shaders in C/C++

后端 未结 4 377
萌比男神i
萌比男神i 2020-11-29 20:54

I just wanted to try out some shaders on a flat image. Turns out that writing a C program, which just takes a picture as a texture and applies, let\'s say a gaussian blur, a

4条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 21:41

    This tutorial might be useful (note that it does contain GLSL material besides the old Cg stuff).

    Note that I'd consider writing shaders to implement non-graphical, GPGPU-type things to be an obsolete approach these days. OpenCL or CUDA are clearly they way to go in future.

提交回复
热议问题