glsl
GLSL geometry shader: iterate over entire mesh
My goal was to color the vertexes according to their order EDIT: long time goal: access to preceding and following vertexes to simulate gravity behavior[详细]
2023-04-02 04:00 分类:问答Improve performance of dense optical flow analysis (easily)?
I wrote a program that uses OpenCV\'s cvCalcOpticalFlowLK. It performs fine on a low-resolution webcam input, but I need to run it on a full HD stream with significant other computation following the[详细]
2023-04-01 20:59 分类:问答How can I get depth value from depth texture?
I have complete-filled depth texture, but it seems not to get a proper value from it. GLSL code, fragment shader:[详细]
2023-04-01 12:06 分类:问答How is the right way to do that in OpenGL 3.x?
After googling a lot, I only have this space to ask you the next question. I\'m trying to writing a simple OpenGL 3.x sample to learn how works the new programmable pipeline (shaders). This tutorial[详细]
2023-04-01 11:01 分类:问答OpenGL ES 2.0. GLSL - cannot use two sampled colors at the same time in fragment shader
I have a fragment shader that does parallax mapping and lighting computations. I\'ve managed to trace the problem to the sampling of textures and/or lighting computation so I\'ll only post code for th[详细]
2023-04-01 07:37 分类:问答AlphaFunctions in WebGL?
Is it possible to achieve an transparency effect where fragments with alpha lower than 0.5 are discarded and fragments with alpha higher than 0.5 are rendered rendered opaque? From what I\'ve read,[详细]
2023-04-01 04:51 分类:问答GLSL Problem: Multiple shaders in one program
I must have misunderstood something with shaders: I thought that as you can attach multiple shaders to one program, you\'d be able to simply attach more than one fragment shader, as an example: A cra[详细]
2023-03-31 19:27 分类:问答WebGL - How to pass unsigned byte vertex attribute colour values?
My v开发者_如何转开发ertices are made up of an array with this structure: [Position][colour] [float][float][float][byte][byte][byte][byte][详细]
2023-03-31 11:44 分类:问答Setting the GLSL version on Mac
How does one go about setting the GLSL version on Mac? Is this even possible? I\'m running a fragment shader and would like to create an array of vec3s, but the shader compiler is 开发者_如何学Cproduc[详细]
2023-03-31 03:48 分类:问答Interpolating three textures in one fragment in GLSL (webgl)
I would like to be able to blend three different textures in one fragment so that they interpolate equally.[详细]
2023-03-30 20:32 分类:问答