Myinout blue stripe down middle myinout smoothstep
632 CHAPTER 18 Advanced Buffers
LISTING 18.10 Continued
// red star on yellow background
vec3 surfColor = mix(yellow, red, myInOut);// blue stripe down middle
myInOut = smoothstep(0.0, smoothEdgeTol,
abs(NV.z) - stripeThickness); surfColor = mix(blue, surfColor, myInOut);
FIGURE 18.10 | Making Your Whites Whiter and Your Brights Brighter | 633 |
---|---|---|
|
due to floating-point clamping because all color channels exceed 1.0.