Today I wanna show a short video of the finished terrain specular mapping shader.

For EACH of the 12 texture layers you can adjust
  • normalmap strength
  • specularity strength
  • sharpness of specular highlights
  • texture scale

There's only specular mapping available yet, but I plan to add also a bump mapping shader. Then you can choose in the editor between specular mapping or bump mapping (or nothing) for each texture layer.

The terrain shader will be a little slower in the editor than in the final level/game, because there are some image processing routines in the pixel shader for tweaking the normal maps and specular maps at runtime.

[video:youtube]http://www.youtube.com/watch?v=z_72p4mcdec[/video]