Giter VIP home page Giter VIP logo

fogofwar_forunity's Issues

坐标问题

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和图形学很浅,所以可能有些常识性问题并没有意识到,感谢你耐心解答

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.