Search Unity

DrawingsSettings.overrideMaterial per-object material properties

Discussion in 'Universal Render Pipeline' started by Drulks, Aug 3, 2020.

  1. Drulks

    Drulks

    Joined:
    Aug 29, 2015
    Posts:
    1
    Hello there,
    Am I doing something wrong or does MaterialPropertyBlock not work with the DrawingsSettings.overrideMaterial?


    I am trying to create a desaturation effect for a 2d game using a mask to control the strength of the desaturation. To generate the mask, I'm using a Renderer Feature(Render Objects) to redraw some GameObjects using an replacement material.
    I tried to render the mask using one replacement material with MaterialPropertyBlock to change the color of each object, but it doesn't seem to work with DrawingsSettings.overrideMaterial.