Top "Shader" questions

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

What are shaders in OpenGL and what do we need them for?

I'm not native English speaker and when I'm trying to get through openGL wiki and tutorials on www.learnopengl.com, …

opengl shader
openGL: lines with shaders

How would I create a line (possibly colored) with shaders? I'm using programmable pipeline and I'm a beginner with openGL. …

c++ opengl graphics glsl shader
OpenGL ES 2.0 Multiple Programs or Multiple Shaders or what? How does it work?

The Problem (TL;DR) My problem, fundamentally, is that I do not know how OpenGL ES 2.0 expects me to write …

android opengl-es-2.0 shader
Directx 11, send multiple textures to shader

using this code I can send one texture to the shader: devcon->PSSetShaderResources(0, 1, &pTexture); Of course i made …

c++ shader textures directx-11
Why is glGetUniformLocation failing me?

I found Gwen a few days ago and thought it looked like the perfect GUI toolkit for my project. But …

opengl glsl shader opengl-3
GLSL Problem: Multiple shaders in one program

I must have misunderstood something with shaders: I thought that as you can attach multiple shaders to one program, you'd …

c++ opengl glsl shader
Why do I need to define a precision value in webgl shaders?

I'm trying to get this tutorial to work but I ran into two issues, one of which is the following. …

three.js glsl webgl shader fragment-shader
Clipping-planes in OpenGL ES 2.0

I need to clip a few hundred objects under a clipping plane in OpenGL ES 2.0 and would appreciate ideas from …

opengl-es glsl shader opengl-es-2.0 clipping
Depth as distance to camera plane in GLSL

I have a pair of GLSL shaders that give me the depth map of the objects in my scene. What …

opengl 3d glsl shader depth
GLSL gl_FragCoord.z Calculation and Setting gl_FragDepth

So, I've got an imposter (the real geometry is a cube, possibly clipped, and the imposter geometry is a Menger …

opengl glsl shader