# 相机空间转换Camera space transformations

V = V * wvMatrixV = V * wvMatrix

N = N * (wvMatrix⁻¹)TN = N * (wvMatrix⁻¹)T

N = norm(N)N = norm(N)

Lₚ = Lₚ * vMatrixLₚ = Lₚ * vMatrix

Ldir =-范数 (Ldir * wvMatrix)Ldir = -norm(Ldir * wvMatrix)

Ldir = norm (V * Lₚ)，如果在下表中定义参数。Ldir = norm(V * Lₚ), where the parameters are defined in the following table.

LdirLdir 不适用N/A 3D 矢量（x、y 和 z 浮点值）3D vector (x, y, and z floating-point values) 从对象顶点到光线的方向矢量Direction vector from object vertex to the light
VV 不适用N/A 3D 矢量（x、y 和 z 浮点值）3D vector (x, y, and z floating-point values) 相机空间中的顶点位置Vertex position in camera space
wvMatrixwvMatrix 标识Identity 浮点值的 4 x 4 矩阵4x4 matrix of floating-point values 包含通用和视图转换的复合矩阵Composite matrix containing the world and view transforms
NN 不适用N/A 3D 矢量（x、y 和 z 浮点值）3D vector (x, y, and z floating-point values) 顶点法线Vertex normal
LₚLₚ 不适用N/A 3D 矢量（x、y 和 z 浮点值）3D vector (x, y, and z floating-point values) 相机空间中的光线位置Light position in camera space
vMatrixvMatrix 标识Identity 浮点值的 4 x 4 矩阵4x4 matrix of floating-point values 包含视图转换的矩阵Matrix containing the view transform