Top "Shader" questions

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

Shader for Android OpenGL ES

Is it possible to use vertex or pixel shaders in android app? please give an example if possible of setting …

android opengl-es shader
In OpenGL is there a way to get a list of all uniforms & attribs used by a shader program?

I'd like to get a list of all the uniforms & attribs used by a shader program object. glGetAttribLocation() & …

opengl 3d shader glsl
Is discard bad for program performance in OpenGL?

I was reading this article, and the author writes: Here's how to write high-performance applications on every platform in two …

android opengl-es opengl-es-2.0 shader
Opengl Shader, what's the gl_FragColor's alpha components?

I think it'll be a little bit simple answer. But I can't find the answer with googling. It's OpenGLES shader …

opengl-es glsl shader cocos2d-x
WebGL: passing uniform arrays to shader

Tried to do just like here: Pass array to shader And like here: Passing an array of vectors to a …

arrays glsl webgl shader uniform
YUV to RGB conversion by fragment shader

I've a problem with convertion of camera preview in Android from YUV format to RGB. The purpose of conversion is …

android opengl-es camera shader fragment-shader
OpenGL ES (2.0) Shading Language: How to input boolean into vertex shader and pass to fragment shader?

I'm trying to pass a boolean into my vertex shader for the first time; I've only been using floats until …

opengl-es glsl shader opengl-es-2.0
What does the GL_ARRAY_BUFFER target mean in glBindBuffer?

I was confused about the VBO, glGenBuffers(1, &positionBufferObject); glBindBuffer(GL_ARRAY_BUFFER, positionBufferObject); Besides GL_ARRAY_BUFFER, there are …

opengl graphics opengl-es glsl shader
Unity3D - Shader for sprite clipping

I am trying to create a shader that can be used to clip 2D sprites in a game, I found …

unity3d shader sprite 2d-games
How does vertex shader pass color information to fragment shader?

In a simple hello-world OpenGL program, which simply draws a static triangle on the window, when I set the 3 vertex …

opengl glsl shader