Shader's frame buffer Clear(color+Z+stencil) in Unity


Preface

framebuffer


1. What is a frame buffer?

Please add image description

2. Fragment operation

Please add image description

3. Randomly scan the display (frames can be drawn according to a custom path)

Please add image description

4. Raster scan display (drawing from left to right, top to bottom, in order)

Please add image description

5. Buffering methods: single buffering and double buffering

1. Single buffer

Please add image description

2. Double buffering

Please add image description

6. Important frame buffer - color buffer

1. What frame buffers are there?

Please add image description

2. Color buffer

Please add image description

3. 1bit color

Please add image description

4. 24bit color (commonly used screen color now)Please add image description

5. How much memory does the 1920 x 1080 color buffer occupy?

Please add image description

6. Before writing to the cache, it is generally necessary to clear the cache (the following is generally enabled by default)Please add image description

7. Set the camera like this in Unity, run the game, and you will see the strange effect of not clearing the cache.

Insert image description here

Guess you like

Origin blog.csdn.net/qq_51603875/article/details/132572382