阅读背景:

使用opengl将每像素绘制成后备缓冲区或纹理以显示到屏幕 - 没有glDrawPixels()

来源:互联网 

Basically, I have an array of data (fluid simulation data) which is generated per-frame in real-time from user input (starts in system ram). I want to write the density of the fluid to a texture as an alpha value - I interpolate the array values to result in an array the size of the screen (the grid is relatively small) and map it to a 0 - 255 range. What is the most efficient way (ogl function) to write these values into a texture for use?Basically, I have an array of data (fluid simul




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: