Adam's Lair Forum

game development and casual madness
It is currently 2017/04/26, 00:20

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 41 posts ]  Go to page Previous  1, 2, 3, 4, 5
Author Message
PostPosted: 2016/09/25, 04:59 
Member
Member

Joined: 2015/11/04, 20:02
Posts: 69
Location: Canada
Role: Hobbyist
hsnabn wrote:
Ooh, nice! I'm going to start learning OpenGL and in turn shaders some time, so it'll be useful. Thanks!

Side note: The shader seems to be 80% noise functions. The main function is actually quite digestible. Nice.


Yup, the noise functions are the biggest chunk of it. Basically all you're doing for the stars is intelligently shaping the noise. A big reason the noise functions are so large is that they are quite optimized to run on the GPU by their authors. The planets are far more involved, due to their more complex topology and variation, and because they rotate, but I'm going to hold on to that code for the moment.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 41 posts ]  Go to page Previous  1, 2, 3, 4, 5

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group