Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Change rendering context before rendering specific objects

Discussion in 'General Graphics' started by Neran28, Mar 23, 2022.

  1. Neran28

    Neran28

    Joined:
    Mar 14, 2016
    Posts:
    15
    Hello

    i am using a plugin for Variable Rate Shading (VRS) that uses CommandBuffers to enable VRS before rendering opaque geometry and disables VRS after alpha. Is there a way to achieve VRS rendering only for specific objects while other objects are rendered without VRS?

    For example before rendering a specific material/object is it possible to execute code that changes D3D states? Or
    First render objects with VRS then disable VRS then render all other objects, but with scene-correct shadow maps (both set of objects being rendered into the shadow map).
     
    Last edited: Mar 23, 2022
  2. RyanKeable

    RyanKeable

    Joined:
    Oct 16, 2013
    Posts:
    62
    I can't answer your question, but could you please provide a link to your plug in?