We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
vid:SV_VertexID
float animMap_x = (vid + 0.5) * _AnimMap_TexelSize.x;
请问为什么vid需要加0.5呢
The text was updated successfully, but these errors were encountered:
因为纹理过滤模式(FilterMode)的原因,库用的是 “Bilinear”模式有对像素进行插值,所以需要+0.5取到两个像素中间。你把纹理过滤设置为 Point 就不需要 +0.5 了~
Sorry, something went wrong.
谢谢大佬!!
No branches or pull requests
vid:SV_VertexID
float animMap_x = (vid + 0.5) * _AnimMap_TexelSize.x;
请问为什么vid需要加0.5呢
The text was updated successfully, but these errors were encountered: