-
Notifications
You must be signed in to change notification settings - Fork 1
Vect3
Shmellyorc edited this page Aug 31, 2026
·
2 revisions
Vect3 is a 3D vector structure with floating-point components primarily used for shader uniforms and 3D spatial calculations.
| Field | Type | Description |
|---|---|---|
X |
float |
The X-component of the vector |
Y |
float |
The Y-component of the vector |
Z |
float |
The Z-component of the vector |
// Create from X, Y, and Z components
var v1 = new Vect3(10f, 20f, 5f);| Property | Description |
|---|---|
X |
The X-component of the vector |
Y |
The Y-component of the vector |
Z |
The Z-component of the vector |
Vect3 is commonly used for shader uniforms that require 3D vectors.
// Set a vec3 uniform in a shader
shader.SetUniform("uColor", new Vect3(1f, 0.5f, 0f));
shader.SetUniform("uPosition", new Vect3(10f, 20f, 5f));
shader.SetUniform("uDirection", new Vect3(0f, 1f, 0f));- MathHelper
- FileHelper
- HashHelper
- JsonHelper
- MapHelper
- TextHelper
- SoundHelper
- AlignHelpers
- Instance Helper
- Enum Extensions
- String Extensions
- Int Extensions
- Float Extensions
- IEnumerable Extensions
- Random Extensions
- Sound Extensions
- Font Extensions