vertex-shader
OpenGL Transform Feedback got reverse-order result
I tried to use the transform feedback function, and I made 2 vertex shaders which only affects vertex position.[详细]
2023-04-13 05:08 分类:问答How to get the right type of texture coordinate input in vertex shader in DX9
Here are two version of HLSL vertex shader input 开发者_如何学运维struct VS_INPUTS_0 { float3 Pos: POSITION;[详细]
2023-04-12 05:47 分类:问答Using multiple vertex shaders on the same program
I\'m trying to implements projection, using a vertex shader. Is there a way to have a separate vertex shader to handle set the gl_Position, and having another vertex shader to set the values required[详细]
2023-04-07 04:47 分类:问答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 分类:问答Why won't this GLSL Vertex Shader compile?
I\'m writing my own shader with OpenGL, and I am stumped why this shader won\'t compile. Could anyone else have a look at it?[详细]
2023-03-21 23:10 分类:问答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 分类:问答Retrieving data from GLSL vertex shader
I have lots of transparent primitives I want to sort before drawing, but to get the Z coordinate, the sorting key, I have perform in software all the transformations performed by the vertex shader in[详细]
2023-03-09 19:18 分类:问答Number of Geometry Shader Executions?
So a vertex shader is executed for each vertex and a fragment shader for each fragment (right?). How many times is a geometry shad开发者_如何学运维er executed?It\'s executed once for each primitive ([详细]
2023-03-02 21:12 分类:问答GLSL: vertex shader to fragment shader without varing
How to transfer data from vertex shader to fragment shader without changes? I need to say to the vertex p开发者_运维知识库ixels that they have this color. This color I can obtain only in the vertex sh[详细]
2023-03-02 18:19 分类:问答enable/disable frag & vert shaders
Currently I\'m using glUseProgramObjectARB(ProgramObject); and glUseProgramObjectARB(0); But it doesn\'t switch back properly,and gives me an “invalid operation glError” along these lines[详细]
2023-02-23 16:50 分类:问答