maths.wgsl
Name | Type | Value |
---|---|---|
PI
#
![]() |
f32
![]() |
3.141592653589793 |
PI_2
#
![]() |
f32
![]() |
6.283185307179586 |
HALF_PI
#
![]() |
f32
![]() |
1.57079632679 |
FRAC_PI_3
#
![]() |
f32
![]() |
1.0471975512 |
E
#
![]() |
f32
![]() |
2.718281828459045 |
Parameter | Type |
---|---|
affine |
mat3x2<f32>
![]() |
Parameter | Type |
---|---|
affine |
mat3x4<f32>
![]() |
Parameter | Type |
---|---|
a |
mat2x4<f32>
![]() |
b |
f32
![]() |
Parameter | Type |
---|---|
affine |
mat4x3<f32>
![]() |
Parameter | Type |
---|---|
matrix |
mat3x3<f32>
![]() |
Parameter | Type |
---|---|
affine |
mat4x3<f32>
![]() |
Parameter | Type |
---|---|
m |
mat4x4<f32>
![]() |
Parameter | Type |
---|---|
z_unnormalized |
vec3<f32>
![]() |
up |
vec3<f32>
![]() |
sphere_center.w
should be 1.0.
This is used for frustum culling.Parameter | Type |
---|---|
plane |
vec4<f32>
![]() |
sphere_center |
vec4<f32>
![]() |
sphere_radius |
f32
![]() |