shader
OpenGL 2.0 vs GL_ARB_vertex_program
I\'m confused about the real differences, if any, between the shader APIs integrated into the GL standard as of GL 2.0, and the shader API in the GL_ARB_vertex_program extension (and friends).[详细]
2023-03-27 09:35 分类:问答Why isn't this orthographic vertex shader producing the correct answer?
My issue is that I have a (working) orthographic vertex and fragment shader pair that allow me to specify center X and Y of a sprite via \'translateX\' and \'translateY\' uniforms being passed in.I mu[详细]
2023-03-26 06:46 分类:问答OpenGL / GLSL - using glShaderSource with multiple source to support include files
Since GLSL doesn\'t have an include-file option I\'m trying to add this by using a \"#pragma include\" parser.(I want this because I have some generic methods I\'d like to implement only once but migh[详细]
2023-03-25 13:06 分类:问答XNA pixel shader clamping error
I want to apply a pixel shader onto my background sprite, to create some sort of lighting. So i draw a Render Target with the light on it and want to merge it onto the background via the Pixel shader.[详细]
2023-03-25 10:21 分类:问答using setvertexdeclaration with fixed-function pipeline in directx 9
I am trying to use my own vertex structure, upload the vertices into a vertex buffer (indices into index buffer, without FVF code), set up the vertex declaration and stream source and use, and draw th[详细]
2023-03-24 03:09 分类:问答Creating blur filter with a shader - access adjacent pixels from fragment shader?
I want to create a blur effect using a fragment shader in OpenGL ES 2.0.The algorithm I am interested in is simply an averaging blur - add all adjacent pixels to myself and divide by 9 to normalize.[详细]
2023-03-23 21:27 分类:问答How to create a high-resolution offscreen fragment shader?
I figured out my fragment shader is limited to the pixel dimensions of the OpenGL ES viewport. Could I create an \"offscreen fragment shader\" or rendering environment which has 开发者_JAVA百科a lot[详细]
2023-03-23 12:08 分类:问答How to test shaders again different version of shaders model
I have many OpenGl shaders. We try to use as many different hardware as possible to evaluate the portability of our product. One of our customer recently ran into some rendering issues it seems that t[详细]
2023-03-22 23:31 分类:问答How can a fragment shader use the color values of the previously rendered frame?
I am learning to use shaders in OpenGL ES. As an example: Here\'s my playground fragment shader which takes the current video frame and makes it grayscale:[详细]
2023-03-22 14:01 分类:问答First tackling Shaders. Having initial confusion with a DirectX Tutorial
I\'m following a DirectX Tutorial with very little knowledge of C++ on Visual C++ 2010. I know enough to follow/understand everything up to this far, but now I\'m trying to include a HLSL shader. I ha[详细]
2023-03-22 04:17 分类:问答