7,009 questions
57
votes
4
answers
36k
views
In OpenGL is there a way to get a list of all uniforms & attribs used by a shader program?
I'd like to get a list of all the uniforms & attribs used by a shader program object. glGetAttribLocation() & glGetUniformLocation() can be used to map a string to a location, but what I ...
0
votes
1
answer
2k
views
Is there any GLSL's ftransform() translation in HLSL?
When using GLSL vertex shaders, a way to let the shader work as a fixed-function pipeline is to call the:
ftransform();
function. Is there a similar function for HLSL's vertex shaders?
Thank you
8
votes
4
answers
13k
views
Jogl Shader programming
I just started Shader programming(GLSL) and created a few with RenderMonkey. Now I want to use this Shaders in my java code. Are there any simple examples of how I do that?
0
votes
2
answers
779
views
glProgramStringARB causing GL_INVALID_OPERATION....or Help with fragment programs
I am trying to write a fragment program that will take a texture and clamp the texels between two values. That is, if the min value is say 0.2 and the max value is 0.6, any texel less than 0.2 will ...
4
votes
2
answers
1k
views
Applying PixelShaders on offscreen Bitmaps
i'm currently experimenting using PixelShaders introduced with .net 3.5 sp1 to improve image processing performance. everything is much faster , but til yet i just had effects applied to some elements ...
1
vote
1
answer
234
views
At what point do MaxTextureRepeat limitations come into play?
When executing a pixel shader under Direct3D, do the limits on texture coordinates imposed by MaxTextureRepeat only become an issue during calls to texture lookup functions such as Tex2D(), or do they ...
2
votes
1
answer
2k
views
Count image similarity on GPU [OpenGL/OcclusionQuery]
OpenGL. Let's say I've drawn one image and then the second one using XOR. Now I've got black buffer with non-black pixels somewhere, I've read that I can use shaders to count black [ rgb(0,0,0) ] ...
7
votes
5
answers
4k
views
How can I tint a sprite to white in XNA?
I don't think this is possible just using the color setting in SpriteBatch, so I'm trying to work out a simple shader that would take every pixel and make it white, while respecting the alpha value of ...
19
votes
9
answers
6k
views
Beginning Shader Development [closed]
I want to get started doing some game development using Microsoft's XNA. Part of that is Shader development, but I have no idea how to get started. I know that nVidia's FX Composer is a great tool to ...