shader
OpenGL ES 2.0 Shader best practices
I\'ve been searching for examples of shaders in OpenGL and I\'ve seen some varying styles. Some shaders specifically use the built in types (ie. gl_Vertex) to transfer data to and from the application[详细]
2023-04-08 15:34 分类:问答using geometry shader to create new primitives types
Is it possible to output new primitive type from geometry shader other than was input? I\'d like to input a point and render a triangle. The point would be used just as center for this triangle. If no[详细]
2023-04-06 14:41 分类:问答Why same fragment shader gives different results on different android phones?
I am trying to implement a blur filter with OpenGL ES 2.0 on Android. Here is the code i am using: varying highp vec2 fragTexCoord;[详细]
2023-04-04 15:22 分类:问答Using HTML5 WebGL Shaders for Computation
It seems to me like one could theoretically use WebGL for computation--such as computing primes or π or something along those lines.However, from what little I\'ve seen, the shader itself isn\'t writ[详细]
2023-04-04 12:53 分类:问答Clipping-planes in OpenGL ES 2.0
I need to clip a few hundred objects under a clipping plane in OpenGL ES 2.0 and would appreciate ideas from people more experienced with this subset of OpenGL.[详细]
2023-04-04 11:43 分类:问答Validate HLSL file at compile time in Visual Studio
I\'m looking for an easy way of detecting errors in HLSL file at program compile time from visual studio. I want to add a custom build to my shader files that compiles them and make sure the build fai[详细]
2023-04-04 02:42 分类:问答Why is glGetUniformLocation failing me?
I found Gwen a few days ago and thought it looked like the perfect GUI toolkit for my project.But oh, dear, look at all that OpenGL 2 code in the renderer.So I thought I\'d write an OpenGL 3 renderer[详细]
2023-04-03 14:22 分类:问答framebuffer and using shaders in opengl
I\'m quite a bit confused about framebuffers. What I wan开发者_运维百科t to do is using a framebuffer with multiple textures attached, fill every texture and then use a shader to combine (blend) all t[详细]
2023-04-03 13:00 分类:问答Water simulation using shaders in WPF
I am searching for a way to implement a water effect for in WPF like the one demonstrated on Lee Whitney\'s blog. This is for a full screen application so it should rely on shaders in order to utilize[详细]
2023-04-01 22:43 分类:问答CG Shader Semantics with OpenGL 3.x?
I used to have CG shaders working with vertex arrays in OpenGL 2.x, but I\'ve updated to use VBOs and VAOs in OpenGL 3.x and now the semantics don\'t seem to be working, except for POSITION.CG doesn\'[详细]
2023-04-01 22:43 分类:问答