renamed polar function to spherical.
This commit is contained in:
parent
f482aaa428
commit
13c35a57b0
@ -1,8 +1,8 @@
|
||||
vec3 polar(float radian1, float radian2, float radius) {
|
||||
vec3 spherical(float radian1, float radian2, float radius) {
|
||||
return vec3(
|
||||
cos(radian1) * cos(radian2) * radius,
|
||||
sin(radian1) * radius,
|
||||
cos(radian1) * sin(radian2) * radius
|
||||
);
|
||||
}
|
||||
#pragma glslify: export(polar)
|
||||
#pragma glslify: export(spherical)
|
||||
|
Loading…
Reference in New Issue
Block a user