shader
Problems applying directional light using normals in a webgl scene
Okay, So I have been all over the net trying to find ways to correctly render using normals, and directional light (origonally found in one of learningwebgl.com tutorials). In the learningwebgl tutor[详细]
2023-03-13 05:13 分类:问答Java OpenGL apply fragment shader to partially transparent texture mapped quad
I\'m drawing a texture mapped quad with a texture that has some transparent pixels on it. So, I load the texture and then draw it[详细]
2023-03-12 16:59 分类:问答OpenGL ES2 GLubyte colors in vertex array not working
Apple suggests using the GLubyte data type for col开发者_如何学JAVAor data on iOS, so I am trying to get this to work. The result I get is that all color components <255 are completely black, and o[详细]
2023-03-12 03:31 分类:问答OpenGL ES shader to convert color image to black-and-white infrared?
I was able to create a fragment shader to convert a color im开发者_Python百科age to greyscale, by:[详细]
2023-03-11 22:44 分类:问答Computing normals from terrain elevation data in fragment shader
The application loads terrain elevation data into floating point textures. Textures are then rendered on a float color buffer (using *GL_ARB_color_buffer_float*).[详细]
2023-03-11 15:22 分类:问答Javascript text input editing: How to turn multiple string text shader in one text input into another representation?
So I want to have 2 input feilds, one editable.I need some script that would turn such shader text input:[详细]
2023-03-11 09:22 分类:问答Trying to texture a sphere using shaders in OpenGL
I am learning OpenGL from the book OpenGL SuperBible. I am trying to render a sphere created using the function gltMakeSphere(). I bind a texture and run useProgram(). The shaders work with a triangle[详细]
2023-03-11 02:43 分类:问答OpenGL Pixel Shader: how to generate random matrix of 0s and 1s (on each pixel)?
So what I need is simple: each time we perform our shader (meaning on each pixel) I need to calculate random matrix of 1s and 0s with resolution == originalImageResolution. How to do such thing?开发者[详细]
2023-03-10 21:30 分类:问答Multiple Effects in a Shader
My question does have a slight basis in GLSL, since that happens to be the shading language I know. Its my opinion that shaders & the programmable graphics pipeline are a huge step up from the fi[详细]
2023-03-10 19:33 分类:问答OpenCV: is it possible to perform openGL pixel shading with it?
How to execute OpenGL pixel shaders on top of openCV images开发者_StackOverflow中文版 structures? is there any library or plugin for OpenCV for that?I won\'t include setting up a OpenGL context, perfo[详细]
2023-03-10 12:08 分类:问答