This function can be used to set the hill shading strength of 2D maps. This does not apply to aerial maps (FS_MAP_VIEW_MODE_AERIAL). To disable hill shading, call this function with a strength of 0. By default, the hill shading strength is set to 0.

Syntax
bool fsMapViewSetMapHillShadeStrength(
    FsContext ctx,
    FsTextureId id,
    float fStrength
);
Members
ParametersDescription
ctxA value of type FsContext provided as an argument of the gauge callback.
idThe MapView render ID as returned by the function fsMapViewCreate.
fStrengthThe hill shading strength, where 0 corresponds to no shading and 1 to nominal shading strength. Must be greater than or equal to 0.
Return Values

Returns false if:

  • no texture matches the given MapView ID
  • the ctx is invalid

Otherwise it will return true.

Remarks

N/A

0/255