Oct 02 2006

Landscape Height-Based Coloring

Published by Renaud Bédard at 11:22 under C#, HLSL, Samples, TV3D 6.5

Downloads

HeightBasedLandscape.rar [152Kb] – C# 2.0 (VS.NET 2005)

Description

A über-simple landscape shader that maps a color ramp to a landscape’s height. Basically, it demonstrates that shaders on landscapes is possible, and can be a nice addition to a visual landscape editor.

Features

  • Shader Model 1.4-compatible
  • 1D texture usage
  • Works with any terrain scale
  • Features two ramps, one greyscale and the other colored, but other ones can be made
  • Very fast, but of course because it’s very simple…

Screenshots

One response so far

One Response to “Landscape Height-Based Coloring”

  1. Dirty Billon 24 Jun 2008 at 12:05

    I like this approach for blending terrain textures based on the color mask, but what about adding slope as part of the coloration process? Neighbor pixel sampling or…?

Trackback URI | Comments RSS

Leave a Reply