GithubHelp home page GithubHelp logo

jsulpis / realtime-planet-shader Goto Github PK

View Code? Open in Web Editor NEW
329.0 329.0 18.0 7.63 MB

Realtime planet shader in WebGL

Home Page: https://jsulpis.github.io/realtime-planet-shader/earth/

License: GNU General Public License v3.0

TypeScript 21.22% GLSL 44.75% Astro 34.02%
glsl shader webgl

realtime-planet-shader's People

Contributors

jsulpis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

realtime-planet-shader's Issues

NPM Package

Fantastic work! Would love to see this published on NPM.

Something seems off with the rendering

When I look at the moon and watch a landmark near the equator leave the horizon on the right and become hidden, it comes back up on the left side WAY sooner than I would expect. Is it just an illusion? I trust the 3d mapping better than my eye, but it looks really strange / off.

add 3D rotation controls

currently the rotation control is only on one axis, because it's easy. It would be nice to be able to rotate the planet on all directions, but I'm not sure about the maths to do that

support normal maps

a normal map is more performant than a bump map, so it would be nice to support it

Which Run Environement

I'm new to typescript, but I believe I have it working properly. I have installed modules four and tweakpane, because they no longer error, but I am hitting an error using npx tsc:

src/earth/earth.ts:23:18 - error TS2322: Type '"nearestMipmapLinear"' is not assignable to type 'Filter'.
23 options: { minFilter: "nearestMipmapLinear" },
~~~~~~~~~
node_modules/four/src/Sampler.ts:22:3
22 minFilter: Filter
~~~~~~~~~
The expected type comes from property 'minFilter' which is declared here on type 'Partial'
src/earth/earth.ts:32:18 - error TS2322: Type '"linearMipmapLinear"' is not assignable to type 'Filter'.
32 options: { minFilter: "linearMipmapLinear" },
~~~~~~~~~
node_modules/four/src/Sampler.ts:22:3
22 minFilter: Filter
~~~~~~~~~
The expected type comes from property 'minFilter' which is declared here on type 'Partial'
Found 2 errors in the same file, starting at: src/earth/earth.ts:23

How best to deploy this? I started on typescript because I couldn't get any webserver to send the *.ts files. It complained about mime type issue. I am curious what you are using for development and testing as well.
Thank you for your time

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.