02-03-2023 01:58 AM - edited 03-20-2023 06:01 PM
Ben Peck - Writing - UE4 Outline Effect for VR (ben-peck.com)
I tried to draw a outline like that link and succeeded in every Platform except Quest2 stand-alone.
That link simply used stencil buffer to caculate outline, and it's material includes some hlsl code. The problem comes from them..One of hlsl codes like this "return SceneTextureLookup(UVs, 25, false);" printed ERROR when I executed build packaging.
Error code:
PackagingResults: Error: 'return' with wrong type , in function 'CustomExpression12' returning half3 PackagingResults: Error: no matching function for call to 'SceneTextureLookup(half2, int, bool)' PackagingResults: Error: 'return' with wrong type , in function 'CustomExpression3' returning vec3 PackagingResults: Error: no matching function for call to 'SceneTextureLookup(vec2, int, bool)'
Anyone knows why?
Is it impossible for Quest Stand-alone to use custom stencil value? OR Are there other ways to make HLSL work for Stand-alone?
Please reply me if you know how to fix it OR why it happened!! Just a little related is OK too...PLEASE!!!!
Thanks,
Regards.
David