Skip to content

DOTS Compatibility | Shader does not appear to work with Hybrid Renderer V2 #96

Open
@krooq

Description

@krooq

When I try to use this shader in DOTS with hybrid renderer V2 I get the following error.

A Hybrid Renderer V2 batch is using the shader "Universal Render Pipeline/Toon", but the shader is either not compatible with Hybrid Renderer V2, is missing the DOTS_INSTANCING_ON variant, or there is a problem with the DOTS_INSTANCING_ON variant.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

I also get a bunch of warnings about the shader not supporting skinning, e.g.

Shader [Universal Render Pipeline/Toon] on [Face] does not support skinning. This can result in incorrect rendering.
Please see documentation for Linear Blend Skinning Node and Compute Deformation Node in Shader Graph.

I have the following relevant defines declared
ENABLE_HYBRID_RENDERER_V2
ENABLE_COMPUTE_DEFORMATIONS

Using packages:
Unity 2020.3.25f
Universal RP 10.7.0
Hybrid Renderer 0.11.0-preview.44
Universal Toon Shader for URP 2.3.0

This is probably a URP/Hybrid Renderer bug, but I am not shader savvy enough to figure it out, hoping someone here can help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions