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

Unity2019.3 UV1显示结果为UV2 #2

Open
CloudLTY opened this issue Sep 24, 2020 · 0 comments
Open

Unity2019.3 UV1显示结果为UV2 #2

CloudLTY opened this issue Sep 24, 2020 · 0 comments

Comments

@CloudLTY
Copy link

CloudLTY commented Sep 24, 2020

感谢分享,这个工具让我受益匪浅。
这个问题稍微看了一下应该是 这里的值总是 >= 0.5
比如: UVMaterial.SetFloat("_UVIndex", 0.5f);

而 shader里写的:
if (_UVIndex <=0.5)
.....

所以总是跳过了UV1

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

1 participant