Top "Shader" questions

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

Rotating a texture on a Fragment Shader in GLSL ES

I'm trying to rotate a texture in a fragment shader, instead of using the vertex shader and matrix transformations. The …

rotation shader glsles
Using HTML5 WebGL Shaders for Computation

It seems to me like one could theoretically use WebGL for computation--such as computing primes or π or something along those …

javascript html shader webgl
How to get full list of Unity shader properties

I am quite new to shaders and have been searching for a full list of Unity shader properties. I haven't …

unity3d shader unity5 cg
glGetAttribLocation returns -1 when retrieving existing shader attribute

I'm trying to pass in attributes to my vertex shader but for some reason it keeps giving me a -1 …

c++ opengl shader vertex-shader
How to render text in modern OpenGL with GLSL

I want to render text in LWJGL by using modern OpenGL (rendering with VBO and shader) but I have no …

opengl fonts glsl shader lwjgl
Full setup of Transform Feedback(openGL)

GLSL 1.50, openGL 3.3. I've been lately trying to get my tranform feedback working but without success. I still receive error after …

c++ opengl glsl shader feedback
What are the advantage of using indirect rendering in OpenGL?

I read that the APIs like glDrawElementsIndirect, glDrawArraysIndirect help us in indirect rendering. Indirect rendering is different from direct in …

opengl opengl-es shader
HLSL branch avoidance

I have a shader where I want to move half of the vertices in the vertex shader. I'm trying to …

optimization branch shader hlsl
OpenGL Shader Compilation Issue -- Unexpected EOF

So I decided to try writing a simple OpenGL app using Java, just to see how it compared to my …

opengl shader jogl
Using OpenGL Toon Shader in GLSL

I'm interested in learning how to write toon shaders in OpenGL Shading Language. I found a demo, but haven't been …

opengl glsl shader processing