Steps to reproduce:
1. Open the attached project "T1357998_NoGraphics.zip" with the following commands: "EditorPath" -batchmode -nographics -projectPath "Path" -executeMethod Test.MyTest -logfile "Path\Test.txt" -buildTarget Android
2. Open the log file
3. Notice that this error is logged constantly: "RenderTexture.Create with shadow sampling failed: Hardware does not support shadow compare sampling"
Expected: Performing Android and iOS batch-mode builds does not cause RenderTexture errors
Result: The “RenderTexture.Create with shadow sampling failed: Hardware does not support shadow compare
sampling” error is spammed in the log file
Reproducible on: 2021.3.8f1, 2022.1.15f1, 2022.2.0b8, 2023.1.0a12
Could not test on 2020.3.40f1 due to build not performing in batchmode
Notes:
-Reproducible with Android and iOS platforms