Memperbarui memori tekstur melalui shader?
Apa judulnya. Apakah mungkin memperbarui tekstur melalui glsl shader? Sesuatu seperti : //Read vec4 Pixel = texture2D(TextureID,gl_TexCoord[TextureIndex].st); //Write to texture memory ? vec4 NewPixel = Pixel + vec4(0.0,0.0,0.0,AlphaPatch); // ?? How to write back to texture memory ?? texture2D(TextureID,gl_TexCoord[TextureIndex].st) = NewPixel; ??