I have written some static HTML and CSS code before. When the components overlap in alignment in the file, there is a z-index as an indicator parameter for rendering. The larger z-index is, the fronter it is on the top. I'm curious if the z-index in CSS has anything to do with the z-buffer mentioned in the lecture?
Stafftancik
@fredho0514 Yep, great analogy! The z-buffer or z-index is just a way to keep track of what is "closet" and should be rendered.
I have written some static HTML and CSS code before. When the components overlap in alignment in the file, there is a z-index as an indicator parameter for rendering. The larger z-index is, the fronter it is on the top. I'm curious if the z-index in CSS has anything to do with the z-buffer mentioned in the lecture?
@fredho0514 Yep, great analogy! The z-buffer or z-index is just a way to keep track of what is "closet" and should be rendered.