0
votes
1answer
26 views
Shader registers for different graphics card
The title is not very explicative, so i'll try to make myself clear.
I have two "working"(on which i work on) PCs : a desktop that runs an NVIDIA GT440 an a laptop with a RADEON HD 4650. I have a ...
4
votes
0answers
155 views
+50
Optimizing performance of a heavy fragment shader
I need help optimizing the following set of shaders:
Vertex:
precision mediump float;
uniform vec2 rubyTextureSize;
attribute vec4 vPosition;
attribute vec2 a_TexCoordinate;
varying vec2 tc;
...
0
votes
1answer
153 views
How to do Triplanar Texturing
Ok maybe i'm missing something because its getting late and i've been programming now for about 72 hours straight (minus a nap or 2) ...
I'm trying to write a shader for unity that will apply ...
4
votes
0answers
113 views
Premultiplied Alpha And Alpha Testing
I have a shader that is supposed to work with either alpha blending or alpha testing, but the color values being passed in are premultiplied alpha values.
Is there an easy/standard way to have it ...
-4
votes
2answers
214 views
What shaders make a game look “next-gen”? [closed]
I'm working on a "pretty mod" for a game which adds shaders but doesn't change anything else.
Current shaders are:
1. bloom
2. motion blur
3. DOF
Is there any other kind of filter shader I could ...
0
votes
2answers
104 views
How to implement input-texture limited alphablending of 2 textures with HLSL?
I try to implement a HLSL shader the does the normal Alphablend with premultiplied colors (just as XNA4 does) but depending on some existing colors. One can think of adding a glow to a 2D terrain ...
-1
votes
1answer
202 views
New to CG shader programming, what program should I use to write and test them? [closed]
I have started witting some shaders. First ones were fairly easy to write in notepad but now I need something with a bit more meat. I have checked rendermonnkey that seems to support CG but it is ...
11
votes
2answers
361 views
Do I lose/gain performance for discarding pixels even if I don't use depth testing?
When I first searched for discard instruction, I've found experts saying using discard will result in performance drain. They said discarding pixels will break GPU's ability to use zBuffer properly ...
1
vote
1answer
185 views
Why can't a blendShader sample anything but the current coordinate of the background image?
In Flash, you can set a DisplayObject's blendShader property to a pixel shader (flash.shaders.Shader class).
The mechanism is nice, because Flash automatically provides your Shader with two input ...
2
votes
1answer
214 views
Graphic hardware texture formats shaders relational speed
I'm interested to know, is there a direct correlation to the speed that a shader will run based on the bit depth of a texture upon which it is running. For example: If I have a 2 bit stencil texture ...
7
votes
5answers
2k views
What rendering techniques would I use to draw a drop shadow effect for cards in a card game?
What type of shading algorithm might be used to create shadows like these?
the one I'm making is similar but it is all done with a 2D drawing API powered by OpenGL so there is no Z coordinate.
In ...
1
vote
0answers
462 views
How can I run the pixel shader effect?
Stated below is the code for my pixel shader which I am rendering after the vertex shader.
I have set the wordViewProjection matrix in my program but I don't know to set the progress variable i.e in ...