Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No reflection on macOS (Metal) #12

Open
Torgo13 opened this issue Dec 3, 2022 · 4 comments
Open

No reflection on macOS (Metal) #12

Torgo13 opened this issue Dec 3, 2022 · 4 comments

Comments

@Torgo13
Copy link

Torgo13 commented Dec 3, 2022

@ColinLeung-NiloCat Thank you very much for fixing the reflection when changing the height of the plane. Reflections now work perfectly on Windows and Android with Vulkan.

Screenshot 2022-12-03 at 14 54 12

Unfortunately reflections are missing on the M1 MacBook Air using Metal. Enabling them gives this error:

CommandBuffer: temporary render texture _MobileSSPR_PackedDataRT not found while executing SSPR (SetComputeTextureParam)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

I get the same error in my own project as well as a clone of this repo. The error occurs in the latest Unity 2021 LTS (2021.3.15f1) as well as the latest Unity 2020 LTS (2020.3.42f1).

@Gu-yusi
Copy link

Gu-yusi commented Aug 31, 2023

Hello, I also have no reflection on the macOS (Metal) platform. Have you solved it?

@Torgo13
Copy link
Author

Torgo13 commented Sep 1, 2023

@Gu-yusi Unfortunately not. There is a paid asset called Shiny SSRR 2 which supports Metal though.

If you want to use SSR for water in URP then I'd recommend the water from the Boat Attack sample. I've found version 2.0.0-preview.1 works better since it's easier to configure at runtime and works with the line renderer ripples from Boat Attack. You can test it yourself in the 2021-update branch of Boat Attack.

It's great because you can use either reflection probes, cubemap, SSR or planar reflections and change it during runtime.

@Gu-yusi
Copy link

Gu-yusi commented Sep 1, 2023

@Torgo13 Oh, thank you very much for your answer, I have solved it. The problem is in MobileSSPRComputeShader.computer, you should put RWTexture2D ColorRT; Texture2D _CameraOpaqueTexture; changed to RWTexture2D ColorRT;Texture2D _CameraOpaqueTexture; This will solve the problem. But unfortunately, it will have an error in higher versions of unity (like 2022.3.3), and I'm trying to solve it.
image
changed to
image

@Gu-yusi
Copy link

Gu-yusi commented Sep 1, 2023

Thank you for your recommendation, this plugin is excellent. But what I really need is SSPR, because I need to consider the mobile platform :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants