Jump to content

WORLDMONGER Material Explination


Pryme8
 Share

Recommended Posts

can someone explain what is going on in http://www.babylonjs.com/Scenes/Worldmonger/index.html

I want to generate textures similar to this but the documentation on mutlimaterials does not seem to cover what he is doing.

Ive looked at http://www.babylonjs.com/Scenes/Worldmonger/Shaders/Ground/groundMaterial.js
 

and am trying to understand at what point does he actually assign the texture, and is he having to split the object up (it does not look like it)
I have tried to create my own shaders, but do not understand how to run the gulp() in order to build them and shader language is a little above my head.
It looks like he is getting around this without custom shaders though?

basically, I want to eventually be able to apply textures to elevation and angle ranges, like the terrain mask in C4D.  I also want to be able to add Levr Filters to the blending between the textures to promote break up.  Anyone able to point me in the correct direction?

Link to comment
Share on other sites

Hello

I did the worldmonger demo (a tribute to Populous and Powermonger :))

The shader responsible for elevation rendering is here: https://github.com/BabylonJS/Samples/tree/master/Scenes/WorldMonger/Shaders/Ground

You can get all the source code here: https://github.com/BabylonJS/Samples/tree/master/Scenes/WorldMonger

 

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...