< Previous | Contents | Next >

Returns

No explicit returns. This function modifies the FuPixel that is passed to it.

Example


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);

}