Top "Fragment-shader" questions

A GPU program used in rendering.

GLSL pow function?

I have this: float xExponential = pow(xPingPong, 5); And is not working, claiming: ERROR: 0:53: No matching overload for call to function …

iphone opengl-es glsl fragment-shader
LookAt function: I'm going crazy

I must do a homework and I try to implement a lookAt function. I tried in many ways but the …

opengl vector matrix fragment-shader glulookat
How to write pass-through vertex and fragment shaders for a framebuffer with attached texture?

I'm attempting to use shaders to modify a texture that is bound to a framebuffer, but I'm confused as to …

opengl fragment-shader vertex-shader
Unity3D visible seams on borders when tiling texture

For my game I have written a shader that allows my texture to tile nicely over multiple objects. I do …

unity3d shader textures fragment-shader tiling
Screen coordinates in fragment shader

In a fragment shader like the below: Shader "ColorReplacement" { Properties { _MainTex ("Greyscale (R) Alpha (A)", 2D) = "white" {} } SubShader { ZTest LEqual …

unity3d shader fragment-shader vertex-shader cg
2 Textures, 1 Shader - OpenGL ES 2.0

ES 2.0 newbie here. I'm currently trying to make some 3D interlaced images from stereo images with ES 2.0 and the PowerVR …

opengl-es-2.0 textures texture-mapping fragment-shader
Android OpenGL ES 2.0: Is "switch-case" syntax possible in GLSL fragment shader on Samsung Galaxy S2?

Does anybody know how to do switch case syntax in the fragment shader on the Samsung Galaxy S2? I get …

android opengl-es glsl fragment-shader
How exactly does OpenGL do perspectively correct linear interpolation?

If linear interpolation happens during the rasterization stage in the OpenGL pipeline, and the vertices have already been transformed to …

opengl graphics projection fragment-shader linear-interpolation
Three.js use framebuffer as texture

I'm using an image in a canvas element as a texture in Three.js, performing image manipulations on the canvas …

three.js fragment-shader
Can you have multiple pixel (fragment) shaders in the same program?

I would like to have two pixel shaders; the first doing one thing, and then the next doing something else. …

opengl glsl shader pixel fragment-shader