Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Some messy shader code calculating longitude and latitude lines, and then clipping the result to somewhere around 70 degrees North and South void fragment() { float long = round(step(0.98, fract(acos(world_position.y) / (3.14159 / 16.0) - 0.01))); float lat = round(step(0.98, fract(atan(world_position.x, world_position.z) / (3.14159 / 16.0) - 0.01))); ALPHA = clamp(long + lat, 0.0, 1.0) * step(0.019, (abs(world_position.y) * -1.0 + 1.0)); }

Download link

https://files.mastodon.social/media_attachments/files/108/515/191/693/681/393/original/05f339534eebebb1.png

Notices where this attachment appears

  1. Cheeseness (cheeseness@mastodon.social)'s status on Tuesday, 28-Jun-2022 14:25:44 UTC Cheeseness Cheeseness
    in reply to

    Ah ha! I have achieved Number Godhood and mastered the rendering of Almost Longitude and Messy Latitude. I shall now ascend to a Pure Numeric Form. Or sleep. Whichever comes first. #gamedev #indiedev

    In conversation Tuesday, 28-Jun-2022 14:25:44 UTC from mastodon.social permalink
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.