Coder Social home page Coder Social logo

Comments (4)

candycat1992 avatar candycat1992 commented on August 18, 2024

因为我们最终得到的应该是世界空间的点坐标,这个坐标很明显的特征就是它的w分量应该是1。而代码在从H得到D的过程中是不会保证w分量为1的,所以最后需要除以w分量保证它是一个有效的点坐标。

from unity_shaders_book.

adachigit avatar adachigit commented on August 18, 2024

多谢作者的解答,我想我应该明白了。:)

from unity_shaders_book.

vipshenji avatar vipshenji commented on August 18, 2024

作者您好:
关于这一节能否接着问个问题 :
Matrix4x4 currentViewProjectionMatrix = camera.projectionMatrix * camera.worldToCameraMatrix;书中代码中得到的是当前帧的视角*投影矩阵(VP矩阵)。因为变换的结果是依赖于变换顺序的。想请问下这个相乘顺序能麻烦作者给解释下。 看你第四章说我们使用的是列矩阵,因此阅读顺序是从右到左不是很明白。

from unity_shaders_book.

candycat1992 avatar candycat1992 commented on August 18, 2024

@vipshenji 你好,你可以再仔细阅读一下第4章的相关内容,在纸上做一下练习题,仍然不懂的话欢迎再来更详细地提问 :)

from unity_shaders_book.

Related Issues (20)

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.