这个是因为CoreBlit 里面的 23 24 pass 是调试版本 把url 改为本地依赖后 把他改成 正式版本就可以 // 23: Bilinear blit with color space conversion support (正式版本) Pass { Name "BilinearBlit" // 修改为正式名称 ZWrite Off ZTest Always Blend Off Cull Off HLSLPROGRAM #pragma vertex Vert #pragma fragment FragmentURPBlitBilinearSampler #pragma multi_compile_fragment _ _LINEAR_TO_SRGB_CONVERSION half4 FragmentURPBlitBilinearSampler(Varyings input) : SV_Target { half4 color = FragmentURPBlit(input, sampler_LinearClamp); #ifdef _LINEAR_TO_SRGB_CONVERSION color = LinearToSRGB(color); #endif return color; } ENDHLSL } // 24: Nearest blit with color space conversion support (正式版本) Pass { Name "NearestBlit" // 修改为正式名称 ZWrite Off ZTest Always Blend Off Cull Off HLSLPROGRAM #pragma vertex Vert #pragma fragment FragmentURPBlitPointSampler #pragma multi_compile_fragment _ _LINEAR_TO_SRGB_CONVERSION half4 FragmentURPBlitPointSampler(Varyings input) : SV_Target { half4 color = FragmentURPBlit(input, sampler_PointClamp); #ifdef _LINEAR_TO_SRGB_CONVERSION color = LinearToSRGB(color); #endif return color; } ENDHLSL }
Unity 转换微信小程序后打开报错?报错信息: plugin.js:93 RenderingCommandBuffer: shader Hidden/Universal/CoreBlit: invalid pass index 23 in DrawProcedural (env: Windows,mg,1.06.2401020; lib: 3.2.5) Unity 版本: 2022.3.20f1 测试场景: [图片] 转换设置: [图片] 微信开发者工具截图: [图片]
12-08