< Previous | Contents | Next >
No explicit returns. This function modifies the FuPixel that is passed to it.
void ShadePixel(inout FuPixel f)
{
// get source pixel EvalShadePixel(f);
// apply Gamma
vec4 gamma = vec4(Gamma, Gamma, Gamma, Alphagamma);
f.Color = sign(f.Color) * pow(abs(f.Color), gamma);
}