Advanced Shaders for realtime lighted terrains [update_04]

this thread is about unity 2.6. in case you are using unity 3.x please look for the advanced terrain shaders:

http://forum.unity3d.com/threads/119127-Coming-soon-Advanced-terrain-shaders-�-Volume-2

after a long time of working on hacking the built in terrain shaders i come up with the first version to be published to the community.
although all my changes are pretty far away from being a proper solution i think they really improve the overall look.
maybe someone more familiar with shaderlab and cg will continue to work on those.

what happened so far?

  • hacked bark shader for trees: now receiving shadows
  • hacked vertexlit shader for detail meshes placed on the terrain (foliage): now casting and receiving shadows
  • hacked grass shader (detail meshes): now waving a bit more accuratley
  • hacked terrain shader: added some kind of bumpmapping

updates
webplayer is online
full package of the project is online
more information is online [see page 2 of this thread]

lars

p.s.: i would be pleased to see some pictures of your terrains – in case you decide to use the shaders. that would be interesting.

whaaa… this sounds awesome… :shock:
One of the MOST NEEDED updates to unity imho…

Looks great! Looking forward to seeing a webplayer!

webplayer is online

http://dl.dropbox.com/u/2322017/advancedShaders.html

Nice work! :slight_smile:

Now the unitypackage is online

it contains all shaders, scripts, textures and models that you find in the webplayer.
just download and import it into a new project.
doing so will cause some errors as the locomotion system needs some more input axises to be defined. but you can easily do this in → edit → project setting → input [the console will log all missing input axises]
maybe you will have to save and restart unity to have the new shaders take effect.

http://dl.dropbox.com/u/2322017/advancedTerrainShaders.unitypackage – [133MB]

awesome!!! like as Unreal)))) :shock:

looks nice! how did you get those trees ? modeled then your self ?

no, most of them are from the unitree project, the standard terrain asset or a mod pack…

This is looking verrrrrry nice

Wow, thanks alot. Just what I was wanting.

Looks great,
I assume I wont be able to use this with Unity Indie? (since it seems like realtime lighting)

Really nice, thank you so much for sharing.

Thank you! :smile:

How did you implement the fog?

Fantastic work!!!

I love showcase section. Every now and then a genius comes up and shows their work. Are these dynamic shadows or is it lightmap?

Spectacular. Thank you!

What scripts is missed on the camera ?

looks nice,would somebody upload this to another host? can’t download it!!thanks a lot!

nothing important – just remove it!

This is simply great! Makes ground look so much more natural. Trees look great too with all those shadows. Thank you.