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

人物的阴影效果怎么实现? #23

Open
nodeSoya opened this issue Mar 11, 2019 · 1 comment
Open

人物的阴影效果怎么实现? #23

nodeSoya opened this issue Mar 11, 2019 · 1 comment

Comments

@nodeSoya
Copy link

你好,请问下如果采用你这个方案的话人物的阴影是否就没法实现了呢?

@jacketjlz
Copy link

由于蒙皮操作是在vs上面执行的,所以阴影的pass上面,vs要同步执行一次蒙皮操作。
自己写一个ShadowCaster的pass,然后重写vert,关键代码:(基于GPUSkinning_Specular_Skin4)
float4 pos = skin4(v.vertex, v.uv1, v.uv2);
o.pos = UnityObjectToClipPos(pos);

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

2 participants