stalomeow / StarRailNPRShader

Fan-made shaders for Unity URP attempting to replicate the shading of Honkai: Star Rail.
https://srshader.stalomeow.com
GNU General Public License v3.0
605 stars 107 forks source link

材质丢失 #7

Closed kkze closed 8 months ago

kkze commented 8 months ago

sp20240304_025121_066 我添加RendererFeature 后材质好像加载不出来 Snipaste_2024-03-04_02-54-45 image

我是新手,研究了半天没找到问题,如果是常识上的配置出错还请海涵❤️

stalomeow commented 8 months ago

unity版本是什么,还有urp的版本

kkze commented 8 months ago

unity版本是什么,还有urp的版本

unity 2022.3.14f1 urp 14.0.9

stalomeow commented 8 months ago

shader有报错吗

kkze commented 8 months ago

shader有报错吗

Shader error in 'Honkai Star Rail/Character/Hair': Couldn't open include file 'Packages/com.unity.render-pipelines.core/ShaderLibrary/FoveatedRenderingKeywords.hlsl'. at /Users/alyssa/StarRail/Library/PackageCache/com.stalomeow.star-rail-npr-shader@e9a6e51cec/Shaders/Character/Shared/CharMotionVectors.hlsl(26)

Compiling Subshader: 0, Pass: HairFakeTransparent, Vertex program with _ADDITIONAL_LIGHTS _MAIN_LIGHT_SHADOWS_CASCADE _MODEL_MMD Platform defines: SHADER_API_DESKTOP UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS Disabled keywords: FOG_EXP FOG_EXP2 FOG_LINEAR SHADER_API_GLES30 UNITY_ASTC_NORMALMAP_ENCODING UNITY_COLORSPACE_GAMMA UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_FULL_STANDARD_SHADER UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING _MAIN_LIGHT_SHADOWS _MODEL_GAME

kkze commented 8 months ago

这是我的包管理器,是缺少依赖嘛.. Snipaste_2024-03-04_08-52-33

stalomeow commented 8 months ago

把core rp library 升级一下

kkze commented 8 months ago

因为版本号的更新,我当前版本的unity最高只支持到14.0.9,最后我将unity版本升级为2023.2.11f1c1解决了问题