Search Unity

Oculus Quest Sobel effect with a RenderFeature not showing on build.

Discussion in 'Universal Render Pipeline' started by cocapasteque, Jul 14, 2020.

  1. cocapasteque

    cocapasteque

    Joined:
    Sep 30, 2016
    Posts:
    20
    Hello there. I am trying to get a sobel effect (or outline/sketch effect) to work on a Oculus Quest build. It is working in the editor, and also with Oculus Link (emulates Oculus Rift). I am working in Single Pass.

    upload_2020-7-14_15-41-31.png
    Here is the effect I want to achieve. However after a build on my quest, all the objects that should have the sobel effect are just black.

    I am using a BlitPass custom RenderFeature like this to get this result:

    upload_2020-7-14_15-42-54.png

    And I've attached the shader I'm using, I adapted a shader from ShaderToy to get the effect I was looking for.

    I guess it is some kind of limitation from the mobile GPU of the quest, but I'm not sure what and can't find a lot of documentation about this. I'm not using anything too fancy in my shader also, no depth or anything like that.
     

    Attached Files:

  2. cocapasteque

    cocapasteque

    Joined:
    Sep 30, 2016
    Posts:
    20
    Update: Moved the assets for the effect to another clean project and it worked, probably something was wrong with my setup in that project (test project so a bunch of junk in there)