Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shader error in 'Kingsoft/TT_Character/Skin': invalid subscript '_LightCoord' at Assets/ExtendStandard/Shaders/TT_UnityStandardCore.cginc(442) (on d3d11) #1

Open
mgwade528 opened this issue Mar 26, 2019 · 4 comments

Comments

@mgwade528
Copy link

大佬,2018.3有报错
Shader error in 'Kingsoft/TT_Character/Skin': invalid subscript '_LightCoord' at Assets/ExtendStandard/Shaders/TT_UnityStandardCore.cginc(442) (on d3d11)
指向 UNITY_TRANSFER_LIGHTING(o, v.uv1);
奈何水平有限查不出来到底什么原因~请指教

@HiKit
Copy link

HiKit commented Apr 24, 2019

替换成这个吧,可以先用着
UNITY_TRANSFER_SHADOW

@yaukeywang
Copy link

下载对应版本的 unity builtin_shaders,然后 copy 下 VertexOutputForwardBase 和 VertexOutputForwardAdd 的定义,同时维持 eyeVec 为 float3 即可。版本升级对应 shader 定义不同导致的问题。

@Werido
Copy link

Werido commented Dec 22, 2020

下载对应版本的 unity builtin_shaders,然后 copy 下 VertexOutputForwardBase 和 VertexOutputForwardAdd 的定义,同时维持 eyeVec 为 float3 即可。版本升级对应 shader 定义不同导致的问题。

2019.3.14F1 亲测没用.........

@HHHHHHHHHHHHHHHHHHHHHCS

这样就好了

// #if !defined (UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS)
// UNITY_SHADOW_COORDS(6)
// UNITY_FOG_COORDS(8)
// #else
UNITY_LIGHTING_COORDS(6,7)
UNITY_FOG_COORDS(8)
// #endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants