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.

Question Does tessellation in URP with Entities.Graphics not work at all even with custom shaders?

Discussion in 'Graphics for ECS' started by ashwinFEC, Aug 2, 2023.

  1. ashwinFEC

    ashwinFEC

    Joined:
    May 19, 2013
    Posts:
    48
    Is tessellation completely missing for URP in Entities.Graphics? I bought the urp tessellation shader from Nicolás Ezcurra on the asset store and it works on normal GameObjects but not on entities. Is it on the roadmap and the feature matrix says LitTessellation.shader is "N/A" for URP how is that different from "No"
     
  2. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    4,012
    The shader needs to explicitly support Entities Graphics. Most custom shader authors don't bother. But you can always ask the author for support.
     
    apkdev likes this.
  3. ashwinFEC

    ashwinFEC

    Joined:
    May 19, 2013
    Posts:
    48
    I looked into the shader and it has all the DOTS_INSTANCING boiler code included, there was just a weird bug in the shader. Calling unity_ObjectToWorld directly in the hull and domain functions for some reason makes the shader fail compilation on my machine for Entities Graphics. But when I replaced every
     mul(unity_ObjectToWorld, pos) 
    with
    TransformObjectToWorld(pos)
    then the shader compiles and works. Weird
     
    apkdev likes this.