Shaders are like mini programs that let us make programmatic adjustments to the pixels we’re about to display on the screen, kind of like how CG artists insert stuff into movie after the scenes have been shot via digital replacement. Then, once we figure all of that out, the rendering engine figures out what the camera sees and what all of the pixels should look like. The final result of this is a bunch of pixels set to specific colors at specific locations on the screen. When we want to draw something on the screen, we first do a bunch of calculations about what model is where, what texture is where, what animation it’s playing, and so on and so forth. Before we get into how custom shaders are created, we should talk for a minute about what a shader actually is.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |