shader
Using a gradient along a path
I\'m trying to create a \'glow\' effect using the Android Path class. However, the gradient is not being warped to fit around the path. Instead, it is simply being display \'above\' it and clipped to[详细]
2023-03-15 09:00 分类:问答Issues with Z-axis rotation matrix in glsl shader
I\'ve recently began putting together an OpenGL ES 1.1/2.0 2D pipeline from the ground up (iPhone only). This pipeline is intended to be used by engineers with no 3D math experience.[详细]
2023-03-14 19:34 分类:问答OpenGl Fragment Shader Texture Speed
I have the following fragment shader. varying highp vec2 tCoord; void main() { vec4 hc = texture2D(hair, tCoord);[详细]
2023-03-14 17:35 分类:问答Writing the correct value in the depth buffer when using ray-casting
I am doing a ray-casting in a 3d texture until I hit a correct value. I am doing the ray-casting in a cube and the cube corners are already in world coordinates so I don\'t have to multiply the vertic[详细]
2023-03-14 17:27 分类:问答OpenGLES 2.0 Phong shader strange result, makes my object transparent when texture is enabled!
I\'ve been stuck for several days now, trying to make my shader working properly. The problem is that when I\'m not attaching a texture on my object, I multiply the ambient by the light color and I ge[详细]
2023-03-14 16:08 分类:问答What is the relationship between gl_Color and gl_FrontColor in both vertex and fragment shaders
I have pass-through vertex and fragment shaders. vertex shader void main(void) { gl_TexCoord[0] = gl_MultiTexCoord0;[详细]
2023-03-14 06:43 分类:问答Why does GLSL lighting code shift the light spot with the camera?
I am trying to make a custom light shader and was trying a lot of different things over time. Some of the solutions I found work better, others worse. For this question I\'m using the solution which w[详细]
2023-03-14 05:09 分类:问答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 分类:问答DirectX world view matrix multiplications - GPU or CPU the place
I am new to directx, but ha开发者_运维百科ve been surprised that most examples I have seen the world matrix and view matrix are multiplied as part of the vertex shader, rather than being multiplied by[详细]
2023-03-13 08:08 分类:问答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 分类:问答