问题描述
我目前正在研究OpenGL中的照明,该照明利用了GLSL中称为标准化的功能.根据OpenGL文档,它说它计算两个向量的归一化乘积".但是,它仍然没有解释规范化"的含义.我曾尝试在Google上查找标准化产品,但是似乎找不到任何相关信息.谁能解释归一化的含义并提供归一化值的一些示例?
I'm currently studying lighting in OpenGL, which utilizes a function in GLSL called normalize. According to OpenGL docs, it says that it "calculates the normalized product of two vectors". However, it still doesn't explain what "normalized" mean. I have tried look for what a normalized product is on Google, however I can't seem to find anything about it. Can anyone explain what normalizing means and provide a few example of a normalized value?
推荐答案
这是一个数学术语,并且此链接用非常简单的术语来解释其含义:
It's a mathematical term and this link explains its meaning in quite simple terms:
- 然后计算其长度
- 将其每个(
xy
或xyz
)组件除以其长度...
- calculate its length, then,
- divide each of its (
xy
orxyz
) components by its length...
这篇关于标准化值是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!