Class TLspHypsometricHillShadingShader


public class TLspHypsometricHillShadingShader extends ALspHypsometric3DDirectionShader
A shader that computes the cosine of the angle between a given 3D reference direction and the normal. The reference direction should generally have a positive z-component. Negative cosine values are clamped to 0, so the values lie in the range [0, 1].

This shader is typically useful for computing hill shading, by selecting a reference direction that specifies the direction of the sun (in the local coordinate system of the raster). The computed values then correspond to diffuse shading resulting from the sunlight, ranging for 0 for unlit areas to 1 for brightly lit areas.

This shader provides similar results to the TLcdHypsometricSlope.

Since:
2012.0