On this page
fsMapViewSetMapHillShadeStrength
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
| Parameters | Description |
|---|---|
ctx | A value of type FsContext provided as an argument of the gauge callback. |
id | The MapView render ID as returned by the function fsMapViewCreate. |
fStrength | The 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
ctxis invalid
Otherwise it will return true.
Remarks
N/A
