March 2013
Intermediate to advanced
984 pages
26h 18m
English
One way to achieve good results without aliasing is to avoid situations in which aliasing occurs.
For instance, if you know that a particular object will always be a certain size in the final rendered image, you can design a shader that looks good while rendering that object at that size. This is the assumption behind some of the shaders presented previously in this book. The smoothstep(), mix(), and clamp() functions are handy functions to use to avoid sharp transitions and to make a procedural texture look good at a particular scale.
Aliasing is often a problem when you are rendering an object at different sizes. Mipmap textures address this very issue, and you can do something similar with shaders. If you know that a particular ...