Top "Shader" questions

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

Random / noise functions for GLSL

As the GPU driver vendors don't usually bother to implement noiseX in GLSL, I'm looking for a "graphics randomization swiss …

random shader glsl noise perlin-noise
What are Vertex and Pixel shaders?

What are Vertex and Pixel shaders? What is the difference between them? Which one is the best?

graphics shader terminology
What is state-of-the-art for text rendering in OpenGL as of version 4.1?

There are already a number of questions about text rendering in OpenGL, such as: How to do OpenGL live text-rendering …

opengl text glsl shader opengl-4
What is the correct file extension for GLSL shaders?

I'm learning glsl shading and I've come across different file formats. I've seen people giving their vertex and fragment shaders .…

opengl glsl shader
Creating a GLSL Arrays of Uniforms?

I would like to leave OpenGL's lights and make my own. I would like my shaders to allow for a …

arrays opengl glsl shader
Getting the true z value from the depth buffer

Sampling from a depth buffer in a shader returns values between 0 and 1, as expected. Given the near- and far- clip …

opengl graphics shader
How to calculate Tangent and Binormal?

Talking about bump mapping, specular highlight and these kind of things in OpenGL Shading Language (GLSL) I have: An array …

math opengl 3d glsl shader
How to get a "Glow" shader effect in OpenGL ES 2.0?

I'm writing a 3D app for iOS. I'm new to OpenGL ES 2.0, so I'm still getting myself around writing basic …

ios opengl-es glsl opengl-es-2.0 shader
Do conditional statements slow down shaders?

I want to know if "if-statements" inside shaders (vertex / fragment / pixel...) are really slowing down the shader performance. For example: …

opengl glsl shader direct3d hlsl
How do I get the current color of a fragment?

I'm trying to wrap my head around shaders in GLSL, and I've found some useful resources and tutorials, but I …

opengl shader glsl fragment-shader