shader
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 分类:问答opengles 2.0 2D scene graph implementation
I want to create a 2d opengles engine to use for my apps. This engine should support a scene graph. Each node of the graph can have it\'s own shader, texture, material and transformation matrix accord[详细]
2023-04-01 06:47 分类:问答OpenGL ES 2.0 Per Fragment Lighting for Untextured Generated Geometry
I\'m currently generating geometry rather than importing it as a model. This makes it necessary to calculate all normals within the application.[详细]
2023-04-01 06:10 分类:问答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 分类:问答OpenGL ES 2.0 with iPhone: GL_POINT_SMOOTH draws squares with ES 2.0 but works in ES 1.0
I\'m trying to draw circles by using a Vert开发者_如何学Pythonex Buffer Object to draw points with GL_POINT_SMOOTH enabled in OpenGL ES 2.0 on iPhone.[详细]
2023-03-31 18:57 分类:问答OpenGL ES 2.0 - Can't find Attribute in Vertex Shader
I\'ve looked for a while for an answer for this - but I\'m not having much luck. All I\'m trying to do is pass my normal data into my vertex shader. Positions are passing in correctly, however I\'m re[详细]
2023-03-31 12:35 分类:问答Multiple Effect on the sprite
I have implement the effect and Transition using pixel shader files. When i apply effect and transition separately it working fine, but if i am applying both simultaneously it is not working. How can[详细]
2023-03-30 11:52 分类:问答In glsl, what is the formula used to compute gl_fragCoord from gl_position?
Please correct me if I\'m wrong. When using vertex and pixel shaders, we usually provide the code to compute the output gl_position of the vertex shader.[详细]
2023-03-29 20:16 分类:问答Custom glBlendFunc a lot slower than native
I\'m trying to do my own custom glBlendFunc through fragment shaders, however, my solution is a lot slower than the native glBlendFunc, even 开发者_如何学Cwhen they do the exact blending function.[详细]
2023-03-28 12:08 分类:问答Ensure GLSL compatibility
How can ensure that GLSL shaders are compatible with most modern cards? I\'ve got a software where I use GLSL code from here. But even though I\'ve added #version 120 to the beginning of my final sha[详细]
2023-03-27 13:18 分类:问答