Skip to content

meric/renderplanet

Repository files navigation

love2d renderplanet demo

Earth

This project demonstrate the 2D planet rendering technique described at https://habrahabr.ru/post/248381/ (Russian).

I google translated the article to English and followed the instructions as best as I can, with the difference being I used shaders for the atmosphere and shadow instead of using a translucent image.

texture_template.png is orthographic projection encoded into an image.

template

http://mathworld.wolfram.com/OrthographicProjection.html

It is generated using generate-template.lua.

All the earth textures are equirectangular projection and the rendering algorithm assumes this too.

https://en.wikipedia.org/wiki/Equirectangular_projection

You can find more planet texture data from NASA.

About

Render 2D planets in a realistic style.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages