fragment-shader
Passing array of vec2 to Fragment Shader Opengl es 2.0
I am trying to pass in an array of vec2 to a fragment shader but i can\'t seem to work out how. In my application i have the following array.[详细]
2023-03-01 09:21 分类:问答enable/disable frag & vert shaders
Currently I\'m using glUseProgramObjectARB(ProgramObject); and glUseProgramObjectARB(0); But it doesn\'t switch back properly,and gives me an “invalid operation glError” along these lines[详细]
2023-02-23 16:50 分类:问答Run multiple OpenGL shaders on a CVImageBuffer
Relating to my previous two questions I\'ve spent a week attempting to figure out how to run multiple shaders against a core video buffer. I know what I need to do but I, frankly, can\'t get the code[详细]
2023-02-20 21:57 分类:问答Combine multiple opengl fragment shaders
I\'m wanting to port some image processing work to OpenGL for performance using OpenGL ES. I\'ve got a very simple thresholding algorithm in place but I\'d like to combine additional filters to the im[详细]
2023-02-17 22:07 分类:问答Could someone confirm whether texture mapping in fragment shaders is supported on iPads running 3.2.x?
In the simulator I don\'t get any issues when testing under 3.2, however, on the device the texture doesn\'t show up. Under 4.2 it works fine, both in simulator and the device.[详细]
2023-02-11 08:59 分类:问答Texture and color together in GLSL?
I cant figure out, how to get with OpenGL ES 2.0 similiar Results to OpenGL ES 1.1. I want to use actually a Sampler2D (to blend my texture with Alpha Channel to the Framebuffer) and also set an Color[详细]
2023-02-10 17:07 分类:问答GLSL: How to get pixel x,y,z world position?
I want to adjust the colors depending on which xyz position they are in the world. I tried this in my fragment shader:[详细]
2023-02-09 03:01 分类:问答Strange floating point arithmetics in WebGL fragment shader
I\'m writing a simple WebGL program. I\'m stuck with a strange behavior in a shader program: condition ( 1.01 * 2.0 > 1.0 ) evaluates to true but[详细]
2023-01-31 00:07 分类:问答Vertex shader vs Fragment Shader [duplicate]
This question already has answers here: 开发者_JAVA百科 What are Vertex and Pixel shaders? (6 answers)[详细]
2023-01-30 07:55 分类:问答Shader framebuffer readback
I was wondering if there is support in the newer shader models to read-back a pixel value from the target framebuffer. I assume that this is alrdy done in later (non-programmable) stages in the drawin[详细]
2023-01-29 03:46 分类:问答