When ALINE is used in a project with HDRP realtime reflection probes, following error is printed on each frame. This happens only when running a built player but not inside Unity Editor. Everything still appears to work fine regardless of the error.
Dimensions of color surface ("ProbeRealTimeTexture_Main Camera") do not match dimensions of depth surface ("CameraDepthStencil_2560x1440_D32_SFloat_S8_UInt_Tex2DArray_Dynamic"): (256, 256) != (2560, 1440)
To reproduce:
- Create a HDRP project. (e.g. sample one from Unity Hub)
- Add a reflection probe in scene and set its mode to Realtime, updated on Every Frame.
- Import ALINE.
- Add a MonoBehaviour to scene that attempts to use
Drawing.ingameAPI to draw. - Build and run project.
- Check logs at
%USERPROFILE%\AppData\LocalLow\CompanyName\ProductName\Player.log
- ALINE version: 1.7.8
- Unity version: 6000.3
- Render pipeline: HDRP 17.3
I thought maybe ALINE is trying to draw to reflection probe map using camera buffer size so I attempted to patch AlineHDRPCustomPass to ignore UnityEngine.CameraType.Reflection but it didn’t seem to help. Disabling custom passes in HDRP settings mitigates the issue while breaking ALINE.
I can provide a reproduction repo if helpful. Thank you for this amazing package!