Top "Shader" questions

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

Chroma key shader for WebCamTexture in Unity3D

How can I make chroma key attribute to eleminate a color from WebCamTexture. WebCamTexture provides very limited control on texture.

c# image-processing unity3d shader chromakey
Why do people use sqrt(dot(distanceVector, distanceVector)) over OpenGL's distance function?

When using ShaderToy I often see people using something like: vec2 uv = fragCoord / iResolution; vec2 centerPoint = vec2(0.5); vec2 distanceVector = uv …

opengl-es glsl shader webgl
OpenGL - Are animations done by shaders?

I started to study OpenGL and I learned how to show figures and stuff using Vertex and Fragment shader. I …

c++ opengl animation shader vertex
Images and mask in OpenGL ES 2.0

I'm learning OpenGL ES 2.0 and I'd like to create an App to better understand how it works. The App has …

opengl-es-2.0 shader
Transform Normal and Tangent from Object space to World space?

As to correctly transform the Normal (which is a direction not a position) from Object space to World space, we …

matrix shader game-engine hlsl cg
fixed function vs shader based

I'm a beginner to computer graphics and am trying to get a better understanding. My professor has discussed fixed function …

graphics shader
Unable to retrieve an error message from glGetShaderInfoLog

I am attempting to build a simple OpenGL 3.2 program which consists of a single fragment shader, but I do not …

c++ macos opengl shader nsopenglview
What are all the different HLSL sampler types for?

I'm working with DX9/SM3 at the moment, and the MSDN documentation on HLSL samplers seems to be sorely lacking …

directx direct3d shader hlsl
How much performance do conditionals and unused samplers/textures add to SM2/3 pixel shaders?

We've one pixel shader in HLSL which is used for slightly different things in a few places, and as such …

rendering shader hlsl pixel-shader
Opacity of material in THREE.js

I'm using lambert shader and in the exaple it sets the material like this: this.material.uniforms.emissive.value = new …

javascript three.js shader autodesk-forge