Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

7 lines
699 B

The effect works in two passes :
- The screen and the volumetric sphere mask are stored in an intermediate render texture (Screen = RGB, Mask = A).
By enabling the render texture's mipmaps and by setting the filter mode to point (no interpolation between pixels) we can achieve a virtually free pixelization of the texture. Each mip level will be twice more pixelated than the previous one.
You can change the mask for any other at this stage (see the "Screen And Mask" shader) and the rest of the pixelization will still work with your own mask.
- We then iterate through the render texture and layer by layer sample in a different mip level, according to the wanted amount of pixelization.