[2022.1] Fix shadow rendering correctly to work with shader stripping in WebGl#6300
Conversation
… shadow texture there.
|
Hi! This comment will help you figure out which jobs to run before merging your PR. The suggestions are dynamic based on what files you have changed. URP Depending on the scope of your PR, you may need to run more jobs than what has been suggested. Please speak to your lead or a Graphics SDET (#devs-graphics-automation) if you are unsure. |
|
It appears that you made a non-draft PR! |
| { | ||
| CommandBuffer cmd = CommandBufferPool.Get(); | ||
| CoreUtils.SetKeyword(cmd, ShaderKeywordStrings.AdditionalLightShadows, true); | ||
| cmd.SetGlobalTexture(m_AdditionalLightsShadowmap.id, m_AdditionalLightsShadowmapTexture); |
There was a problem hiding this comment.
I supposed this might be obsolete with RTHandles PR? can you check?
There was a problem hiding this comment.
I will check, but in any case I think we need to land this regardless the rt handles
…universal/fix-webgl-strip # Conflicts: # com.unity.render-pipelines.universal/CHANGELOG.md
…universal/fix-webgl-strip
|
Build URP_2D on iPhone_Metal_il2cpp_Linear_Standalone_build_Player on version trunk URP_Foundation on Android_OpenGLES3_Standalone_il2cpp_Linear on version trunk URP_Foundation on Linux_Vulkan_Standalone_mono_Linear on version trunk URP_Foundation on OSX_Metal_playmode_mono_Linear on version trunk URP_Foundation on Win_DX11_Standalone_XR_mono_Linear on version trunk URP_Foundation on Win_DX11_playmode_XR_mono_Linear on version trunk URP_Foundation on Win_DX12_Standalone_XR_mono_Linear on version trunk URP_Foundation on Win_Vulkan_Standalone_mono_Linear on version trunk URP_Foundation on iPhone_Metal_Standalone_il2cpp_Linear on version trunk URP_Lighting on OSX_Metal_playmode_mono_Linear on version trunk URP_PostPro on Android_OpenGLES3_Standalone_il2cpp_Linear on version trunk URP_PostPro on Android_Vulkan_Standalone_il2cpp_Linear on version trunk URP_PostPro on OSX_Metal_playmode_mono_Linear on version trunk URP_Terrain on Android_OpenGLES3_Standalone_il2cpp_Linear on version trunk URP_Terrain on Linux_Vulkan_Standalone_mono_Linear on version trunk URP_Terrain on OSX_Metal_playmode_mono_Linear on version trunk URP_Terrain on Win_Vulkan_Standalone_mono_Linear on version trunk Universal_Stereo on Win__Standalone_mono_Linear on version trunk No new failures found, added links to same failures in master. |
|
Merging straight to master as this is fix for shipstopper. I see the backport PR had QA on it. |
Purpose of this PR
Fix for case https://fogbugz.unity3d.com/f/cases/1381881/.
Testing status
Tested if it fixes bug case.