SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. float theta = 2.0 * PI * world_position.x / world_radius;
  2. float phi = 2.0 * atan(exp(world_position.y / world_radius)) - PI / 2.0;
  3. float radius = world_position.z
  4.  
  5. gl_Position = vec4(radius * vec3(sin(theta)*cos(phi), sin(phi), cos(theta)*cos(phi)), 1.0);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top