![]() |
Help Obi7Fluid_beta Shader errors on build - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html) +--- Thread: Help Obi7Fluid_beta Shader errors on build (/thread-4063.html) |
Obi7Fluid_beta Shader errors on build - Snail921 - 30-11-2023 Hi, After successfully installing Obi7Fluid_beta with a few small code modification you explained here, I add xr related plugin to the project, replace the main camera to OVR camera rig and tried to build it for the meta quest, then I received two shader errors in the log. They are two but seems the same error so maybe I can assume I got one error. The message is as below: Code: Shader error in 'Shader Graphs/IndirectTransparent': invalid subscript 'shadowCoord' at /UnityProjects/URP_Obi7/Library/PackageCache/com.unity.shadergraph@14.0.9/Editor/Generation/Targets/BuiltIn/Editor/ShaderGraph/Includes/Varyings.hlsl(132) (on vulkan) How can I fix this? Unity 2022.3.13f1 (Android/URP/Vulkan) Universal RP 14.0.9 Burst 1.8.9 Collections 2.1.4 Mathematics 1.2.6 [attachment=1948] RE: Obi7Fluid_beta Shader errors on build - josemendez - 30-11-2023 (30-11-2023, 04:53 AM)Snail921 Wrote: Hi, Hi, Can't reproduce this. What are your project's quality settings for Android, and your lighting settings for the scene? RE: Obi7Fluid_beta Shader errors on build - Snail921 - 30-11-2023 (30-11-2023, 07:28 AM)josemendez Wrote: Hi,Indeed I have never changed settings yet, so quality settings has been set to URP-Baranced without any tweaks. For the lighting, I don't touch any lighting or light settings of the FluidViscosty.scene. This project only contains Obi7Fluid_beta and minimal assets for Meta Quest development because I newly created a project to scope down the source of issues. I have another project which I have tweaked some quality settings such as lighting and shadows emits the exact same error though. I attach a screenshot with which you may be able to grab some information of the project but if you need any other information, let me know please. Thanks! [attachment=1949] RE: Obi7Fluid_beta Shader errors on build - josemendez - 30-11-2023 Hi, Could reproduce this, and found a somewhat strange solution: remove "Built-in" from the shader's compilation targets list in ShaderGraph: ![]() Now, why would having an unused render pipeline in the list of targets affect compilation for an entirely different pipeline is beyond me. Imho, this is a bug in ShaderGraph. let me know whether this fixes it for you too. kind regards, RE: Obi7Fluid_beta Shader errors on build - Snail921 - 30-11-2023 (30-11-2023, 09:50 AM)josemendez Wrote: Hi,By removing Built in from the Active Target, I got another error like this: Code: Shader error in 'Shader Graphs/Master': Invalid conditional expression. at /UnityProjects/URP_Obi7/Library/PackageCache/com.unity.render-pipelines.universal@14.0.9/ShaderLibrary/Shadows.hlsl(284) Thanks. RE: Obi7Fluid_beta Shader errors on build - josemendez - 30-11-2023 (30-11-2023, 10:07 AM)Snail921 Wrote: By removing Built in from the Active Target, I got another error like this: This isn't an error on any of the Obi shaders, but on URP itself. A quick search reveals it's a bug in URP 14, see: https://forum.unity.com/threads/unity-2022-2-urp-shadows-hlsl-error.1390798/ This is the bug entry in their bug tracker: https://issuetracker.unity3d.com/issues/shader-error-in-shader-graphs-slash-master-invalid-conditional-expression-is-logged-when-a-project-is-opened RE: Obi7Fluid_beta Shader errors on build - Snail921 - 30-11-2023 (30-11-2023, 10:52 AM)josemendez Wrote: This isn't an error on any of the Obi shaders, but on URP itself. A quick search reveals it's a bug in URP 14, see:Oh I see. Thank you so much for the information. Some people said 2023 has performance overhead issue so I almost decided to go with 2022 for the next project but I will try 2023 for Obi7. Few questions.
|