Planetside Software Forums

General => Terragen Discussion => Topic started by: CG MANIA on January 20, 2018, 12:37:41 PM

Title: How do I apply different shaders to different mountains?
Post by: CG MANIA on January 20, 2018, 12:37:41 PM
How do I apply different shaders to different mountains?
When I apply a shader it affects everything, the planet. I import height field maps from World Machine and I want to apply different image maps to each mountain, otherwise the whole scene is quite monotonous.
Title: Re: How do I apply different shaders to different mountains?
Post by: Dune on January 21, 2018, 01:52:44 AM
If one mountain can be defined by a rectangular or spherical shape, you can mask all shaders needed for a particular mountain by simple shapes. If it's many shaders for each mountain, just add those all to a surface shader's child input and mask the latter. Do that for each mountain.
Title: Re: How do I apply different shaders to different mountains?
Post by: CG MANIA on January 21, 2018, 04:23:24 AM
Thank you. I manage to get the shader (red color as test) applied only to th mountain, but the edges are very harsh, is there a way to introduce some fuzziness to allow for a smother transition with the rest of the planet?
Title: Re: How do I apply different shaders to different mountains?
Post by: Dune on January 21, 2018, 09:04:44 AM
If you used a simple shape you can smooth the edges by bevel or smooth step, use some 100m or so to start with