jsulpis/realtime-planet-shader
关于
使用 WebGL 实时渲染行星的着色器
其他项目实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Realtime planet shader in WebGL
Procedural
This is a GLSL fragment shader I originally made on Shadertoy when learning raymarching. Later I switched to analytic raycasting for better performance. It's made by raycasting simple spheres with a bunch of fbm noises used for the normals and colors, and a fake atmosphere computed with distance functions.
I wanted to display it on a web page so that I can make a nice GUI to tweak the uniforms. Here it is !
It runs at 60fps on my old low-end phone, so it should also be quite smooth on whatever device you have.
Textures
After the procedural version, I found a bunch of textures to display a realistic view of some planets of our solar system. Still with a few controls, and no quality setting because it should already run at full fps on most devices.
Note
If you want a minimalist setup to render GLSL shaders on a canvas like this one, you can check out the little study I made before this project.
More renders
探索相关项目
加载中…