Top "Pixel-shader" questions

Pixel shaders, also known as fragment shaders, compute color and other attributes of each fragment.

Can I generate a random number inside a pixel shader?

I'm trying to write a very simple shader that adds random sparkle to applicable objects. The way I'd like to …

random hlsl directx-9 pixel-shader
WebGL/GLSL - How does a ShaderToy work?

I've been knocking around Shadertoy - https://www.shadertoy.com/ - recently, in an effort to learn more about OpenGL …

javascript glsl webgl shader pixel-shader
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; gl_Position = gl_ModelViewProjectionMatrix * …

opengl shader pixel-shader vertex-shader
Passing colors through a pixel shader in HLSL

I have have a pixel shader that should simply pass the input color through, but instead I am getting a …

direct3d hlsl pixel-shader
Rendering to multiple textures with one pass in directx 11

I'm trying to render to two textures with one pass using C++ directx 11 SDK. I want one texture to contain …

directx-11 pixel-shader render-to-texture compute-shader
DirectX 11 Pixel Shader What Is SV_POSITION?

I am learning HLSL for DirectX 11, and I was wondering what exactly is the SV_POSITION that is the output …

directx-11 hlsl vertex-shader pixel-shader
HLSL: Gaussian Blur Effect

I'm trying to achieve a gaussian blur using post-processing. I have two render passes; first pass renders the scene and …

directx hlsl pixel-shader post-processing
What kind of blurs can be implemented in pixel shaders?

Gaussian, box, radial, directional, motion blur, zoom blur, etc. I read that Gaussian blur can be broken down in passes …

glsl shader gpu hlsl pixel-shader
HLSL Normal Mapping Matrix Multiplication

I'm currently working in directx9 and have the following code for my normal mapping: (Vertex Shader): float4x4 gWorldMatrix; float4…

c++ directx hlsl pixel-shader
Pixel Shader Effect Examples

I've seen a number of pixel-shader effect examples, stuff like swirl on an image. But I'm wondering if anyone knows …

wpf effects hlsl pixel-shader