Forum Discussion
dkweon
2 years agoHonored Guest
Some Errors occurred from HLSL codes when drawing a outline Through the wall
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
Replies have been turned off for this discussion
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device