Code Monkey home page Code Monkey logo

Comments (2)

candycat1992 avatar candycat1992 commented on May 22, 2024

人眼方向的条件就是用来判断是顺时针还是逆时针的。你应用左手法则后,如果结果值的z值为负,说明叉积结果是指向z轴负方向的,如图4.52所示的情况,此时从人眼看过去就是顺时针的排列。图4.52画的就是顺时针的情况,其实逆时针的话他们之间不是图示这种关系,会是类似交换了p1和p2之后的样子,只有这样它们的叉积结果才会为正,而此时从人眼看过去就是逆时针了。

from unity_shaders_book.

CaigerDeng avatar CaigerDeng commented on May 22, 2024

想了有一会,再查了下资料,终于弄懂了。
附上我看到的资料,方便也不清楚这个题目的人参考参考:
[Unity游戏开发]向量在游戏开发中的应用(一):
http://blog.csdn.net/wenxin2011/article/details/50810102
[Unity游戏开发]向量在游戏开发中的应用(二):
http://blog.csdn.net/wenxin2011/article/details/50972976
[Unity游戏开发]向量在游戏开发中的应用(三):
http://blog.csdn.net/wenxin2011/article/details/51088236

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.