Search Issue Tracker

Won't Fix

Votes

20

Found in

5.6.0b7

Issue ID

879280

Regression

No

[XR][Android] Image effects are not rendering properly with single-pass

XR SDK

-

1) Download project, set up Singleppass stereo capable android device
2) Observe settings are set to Single pass and Daydream
3) Deploy to device
4) Look at the terbuchet thingy in the scene
5) Wait for the image effect to enable
6) Observe that when the image effect is enabled, it renders a small viewport of the post-effectd scene in the top right corner of each eye.

Note:

-This happens with each of the standard asset image effects

  1. Resolution Note:

    Unity's support for GearVR has been deprecated in our 2019.3 release and will be removed in a future release. As such, we're deprioritizing our support of GearVR, and won't be actively fixing issues related to the platform.

    This issue is being marked as Won't Fix. If that resolution isn't appropriate, please reopen the issue and let us know the issue's impact for you.

Comments (9)

  1. shubhamswaraj2021

    Aug 18, 2020 11:27

    good one <a href="https://www.lyricsauto.com">lyricsauto</a>

  2. Atley

    Feb 13, 2019 21:11

    I used the @ARKADE fix in Unity 2018.3.4f1 and got the following error. Any advice?

    Shader error in 'Hidden/HxVolumetricDownscaleDepth': 'tex2D': no matching 2 parameter intrinsic function; Possible intrinsic functions are: tex2D(sampler2D, float2|half2|min10float2|min16float2) tex2D(sampler2D, float2|half2|min10float2|min16float2, float2|half2|min10float2|min16float2, float2|half2|min10float2|min16float2) at line 58 (on gles3)

  3. bennedich-resolution

    Dec 13, 2018 13:32

    Thanks @ARKADE your fix works perfectly in 2018.2.5f1.

  4. jonny2027

    Nov 14, 2018 15:11

    This issue still exists in 2018.2.1f1

  5. ibyte

    May 28, 2018 18:43

    Arkades solution worked for me!

  6. Arkade

    Jan 31, 2018 19:59

    FYI to fix any shader with this problem, swap the declaration of the sampler from:

    > uniform sampler2D_float _CameraDepthTexture;

    to

    > UNITY_DECLARE_DEPTH_TEXTURE(_CameraDepthTexture);

  7. sskenth

    May 30, 2017 19:55

    I've got the issue with daydream. Single pass fails on every version 5.6.0f2 onwards.
    Works on 5.6.0f1only.

  8. Kabutak

    May 04, 2017 14:49

    A similar issue is produced on GearVR, presumably this happens on all android vr devices. There is an issue in shaders when compiling for single-pass and only for single-pass. "Shader error in '<Shader Name>': undeclared identifier 'sampler_CameraDepthTexture' at <Line Number> (on gles3)"

    Even unity's built in shaders give this error when building. It seems to have to do with the line SAMPLE_DEPTH_TEXTURE(_CameraDepthTexture, i.uv); Hopefully this bug is fixed in the near future, but it seems to be considered lower priority. A workaround IS possible, but since that workaround is either not using post-processing or single-pass stereo, it isn't ideal.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.