Fix and improve comments
This commit is contained in:
parent
52e4aaa21c
commit
b70a60078b
|
@ -5,7 +5,7 @@ uniform mat4 WVP;
|
||||||
// Matrix to transform normals from local into world space
|
// Matrix to transform normals from local into world space
|
||||||
uniform mat3 N;
|
uniform mat3 N;
|
||||||
|
|
||||||
// Position and normal vector in local space for the current vertex
|
// Position and normal vectors of the current vertex in local space
|
||||||
// Armory packs the vertex data to preserve memory, so nor.z values are
|
// Armory packs the vertex data to preserve memory, so nor.z values are
|
||||||
// saved in pos.w
|
// saved in pos.w
|
||||||
in vec4 pos; // pos.xyz, nor.w
|
in vec4 pos; // pos.xyz, nor.w
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
// World to view projection matrix to correctly position the vertex on screen
|
// World to view projection matrix to correctly position the vertex on screen
|
||||||
uniform mat4 WVP;
|
uniform mat4 WVP;
|
||||||
|
|
||||||
// Position and normal vector in local space for the current vertex
|
// Position vector of the current vertex in local space
|
||||||
in vec3 pos;
|
in vec3 pos;
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
|
Loading…
Reference in a new issue