Tim Wendt
Tim Wendt

Reputation: 13

What is a Vector4 in Unity engine?

I have found this doc for Vector4 in Unity engine. What do you need a Vector4 for? Also, apart from the x, y, and z axes, what is the w axis for?

Upvotes: 1

Views: 3439

Answers (1)

Markus Peitl
Markus Peitl

Reputation: 76

I found this

In OpenGL vertex shaders, what is w, and why do I divide by it?

Thread which explains why the w - component is used in an opengl vertex shader, in unity it should pretty much have the same meaning.

Upvotes: 1

Related Questions