-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
第十一章中 Billboard 的 Shader 代码是不对的 #337
Comments
亲╭(╯3╰)╮邮件收到啦 ! O(∩_∩)O~
-----徐方凯
|
叉乘结果在左手坐标系下是左手法则吗 |
亲╭(╯3╰)╮邮件收到啦 ! O(∩_∩)O~
-----徐方凯
|
这是来自QQ邮箱的自动回复邮件。
您好,我已收到邮件,尽快给您回复。
|
所以整个模型翻转了,导致 Cull Back 时模型看不见了,不知道我理解的对不对? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
第十一章中
Billboard
的Shader
代码是不对的。如果你把Chapter11-Billboard.shader
代码中的Cull Off
修改为:Cull Back,就看不到任何 `Billborad 了。其原因在于:方向转换应该在模型空间的左手坐标系中旋转(结果是正面朝向摄像机),而不是在右手坐标系中旋转(结果是背面朝下摄像机)。因此正确的转换代码应该为:The text was updated successfully, but these errors were encountered: