glsl
Why Not Applying the Model View Matrix on Normal Vector in Toon Shading (Lighthouse3d Tutorial)?
I am learning GLSL by going through a tutorial on the Web. The tutorial has an example called the Toon Shading. Here is the link to Toon Shading - Version I.[详细]
2023-03-13 22:28 分类:问答Why My Flatten Shader (from Lighthouse3d Tutorial) Is Not Working?
The tutorial has an example called the Flatten Shader, which displays the GLUT teapot as a flatten teapot. Here is the link to the Flatten Shader.[详细]
2023-03-13 06:53 分类:问答Determining if a polygon is inside the viewing frustum
here are my questions. I heard that opengl ignores the vertices which are outside the viewing frustum and doesn\'t consider them in rendering pipeline. Recently开发者_StackOverflow中文版 I ran into a[详细]
2023-03-13 06:20 分类:问答How to copy depth buffer to a texture on the GPU?
I want to get the current depth buffer to a texture, to access it in a shader. For various reasons I can\'t do a separ开发者_运维问答ate depth pass, but would need to copy the already-rendered depth.[详细]
2023-03-13 00:39 分类:问答GLSL for full resolution image manipulation?
I am currently using GLSL shaders to render effects to live video on iOS devices. The video resolution is 640x480. When you capture a picture, the image can come in at any res开发者_运维知识库olution[详细]
2023-03-12 12:28 分类:问答OpenGL shaders questions
I have a running program that uses glVertexPointer, glNormalPointer etc to draw a large number of elements. This works around 30 FPS. Now I\'ve reach a point where integrating shaders would be a viabl[详细]
2023-03-11 16:00 分类:问答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 分类:问答Trouble understanding the use of dot product in this example?
Usually, I use the dot product of 2 vectors either to find out how perpendicular they are or the cosine of the angle between them. In this shader, a toon shader, the dot product is used on 2 colors an[详细]
2023-03-10 23:51 分类:问答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 分类:问答