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

坐标问题 #1

Open
qdx opened this issue Oct 24, 2020 · 0 comments
Open

坐标问题 #1

qdx opened this issue Oct 24, 2020 · 0 comments

Comments

@qdx
Copy link

qdx commented Oct 24, 2020

m_LocalScale: {x: -0.2, y: 0.2, z: -0.2}

QinZhuo你好,我是在bilibili看到你的战争迷雾教学来这里学习的~感谢你的教程,非常受用!
我有个疑问研究了好久没搞明白,所以只能在这里向你提问。

FowFogRenderer prefab里面,你把plane的scale设置为(-0.2, 0.2, -0.2),请问这是为什么?为何x和z需要设为负数?

我自己在尝试按照你的思路实现战争迷雾的时候,发现如果把scale都保持为整数,unity的Texture2D.SetPixels32的Array映射到平面上就变成了从右上角开始,一行一行的从右往左展开。而不是unity自己官方文档说的从左下角一行行从左向右展开。

我接触shader和图形学很浅,所以可能有些常识性问题并没有意识到,感谢你耐心解答

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