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.

6 lines
699 B

  1. The effect works in two passes :
  2. - The screen and the volumetric sphere mask are stored in an intermediate render texture (Screen = RGB, Mask = A).
  3. 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.
  4. 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.
  5. - We then iterate through the render texture and layer by layer sample in a different mip level, according to the wanted amount of pixelization.