Closed markfrede closed 9 months ago
@markfrede I think you'd find that even using the Built-in Pipeline and the MRTK you wouldn't get true environment lighting (skybox as opposed to an single ambient color) without Spherical Harmonics.
When you don't have that ticked it falls back to a very old shader constant "glstate_lightmodel_ambient" which can only ever give you a single ambient color in Built-in Pipeline and doesn't get populated at all in URP which is why you see the discrepancy
This issue has been marked as stale by an automated process because it has not had any recent activity. It will be automatically closed in 30 days if no further activity occurs. If this is still an issue please add a new comment with more recent details and repro steps.
We appreciate your feedback and thank you for reporting this issue.
Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.
Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.
Please note that MRTK3 was released in August 2023. It features an all new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visithttps://www.mixedrealitytoolkit.org.
Thank you for your continued support of the Mixed Reality Toolkit!
Describe the bug
The MRTK Shader when upgraded to work with Universal Render Pipeline (URP) is not affected by the Environment Lighting (Skybox, Gradient, and Color).
To reproduce
Steps to reproduce the behavior:
Expected behavior
Adjusting the ambient color should affect objects using MRTK Standard Shader materials once the project is using URP.
NOTE: Turning on the "Spherical Harmonics" property in the material does make the environment lighting settings affect the object however this setting is not always desired and it does not mimic the behavior of the shader before it is upgraded to work with URP.
Screenshots
Your setup (please complete the following information)
Target platform (please complete the following information)
Additional context
The screenshots I've provided showcase the behavior I'm experiencing using 4 spheres with 4 separate materials (and shaders). The shaders are from left to right: Standard Shader (Built-in Pipeline), MRTK Standard Shader (Built-in Pipeline), MRTK Standard Shader (URP upgraded shader), and the Simple Lit Shader (URP). In order, the screenshots show how the ambient color changes affect the materials as the project gets upgraded to URP.