Top "Shader" questions

A shader is a program to perform calculations on geometry or pixel data in computer graphics.

Rotate Normals in Shader

I have a scene with several models with individual positions and rotations. Given normals, the shaders apply simple bidirectional lighting …

glsl shader lighting vertex-shader normals
Can you have multiple pixel (fragment) shaders in the same program?

I would like to have two pixel shaders; the first doing one thing, and then the next doing something else. …

opengl glsl shader pixel fragment-shader
Using QPainter over OpenGL in QGLWidget when using shaders

Many of you Qt (4.6 specifically) users will be familiar with the Overpainting example supplied in the OpenGL tutorials, I'm trying …

qt opengl overlay shader qpainter
RGB filters for different forms of color blindness

My father is color blind and given that I work in games where the visuals are important, I've always wanted …

graphics colors shader blindness
Get results of GPU calculations back to the CPU program in OpenGL

Is there a way to get results from a shader running on a GPU back to the program running on …

opengl cpu shader video-card
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
what are passes and multiple shader passes and their private variables

I know that multi pass rendering is about rendering separate parts of the scene and combining them into on image …

opengl unity3d glsl shader cg
Draw a dashed and dotted bezier curve in QML

I've seen there is an example implementation of a Bezier curve in QML, but I'm looking for a hint how …

c++ qt opengl shader qml
glCreateShader and glCreateProgram fail on android

I'm having a very difficult problem creating a shader program on android. when I call glCreateShader or glCreateProgram each always …

java android opengl-es-2.0 shader nexus-7
Compute Shaders Input 3d array of floats

Writing a Compute Shader to be used in Unity 4. I'm attempting to get 3d noise. The goal is to get …

c# unity3d shader hlsl compute-shader