Planetside Software Forums

General => Terragen Discussion => Topic started by: shadowphile on April 17, 2010, 08:39:19 PM

Title: argh, can't remember where 'shade by elevation' is...
Post by: shadowphile on April 17, 2010, 08:39:19 PM
I don't mean the altitude and slope constraint settings in the distribution shader, I mean the one-click checkbox that automatically maps color between the minimum and maximum elevation present.
thanks!

ooops: apparently that function is only available to the heightmap shader.  Guess I'll have to roll my own altitude shader for power fractals.
Title: Re: argh, can't remember where 'shade by elevation' is...
Post by: domdib on April 18, 2010, 05:28:52 AM
Or use a distribution shader as blending shader??
Title: Re: argh, can't remember where 'shade by elevation' is...
Post by: Tangled-Universe on April 18, 2010, 06:15:02 AM
Quote from: shadowphile on April 17, 2010, 08:39:19 PM
Guess I'll have to roll my own altitude shader for power fractals.

I'd use a displacement shader then. Feed the powerfractal into the function-input of the displacement-shader and set the desired amount of displacement = height in the displacement shader node.

You might want to clamp the colors of the powerfractal first before feeding them into the function-input. You can do this by adding a "clamp 0-1 colour" function. Connect the output of the powerfractal to it and feed the output of the clamp 0-1 colour to the function input of the displacement shader.
This way the min and max colours are 0 - 1 and therefore the maximum displacement/height will always be the value you've set in your displacementshader.

Martin