mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +01:00
Increase hillshading contrast
This commit is contained in:
parent
8547a3310a
commit
20f1003ce6
@ -84,6 +84,7 @@ QImage HillShading::render(const Matrix &m, quint8 alpha, double z,
|
||||
if (std::isnan(L))
|
||||
pixel = 0;
|
||||
else {
|
||||
L = sqrt(L * 0.8 + 0.2);
|
||||
quint8 val = (L < 0) ? 0 : L * alpha;
|
||||
pixel = (alpha - val)<<24;
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
class HillShading
|
||||
{
|
||||
public:
|
||||
static QImage render(const Matrix &m, quint8 alpha = 64, double z = 0.3,
|
||||
static QImage render(const Matrix &m, quint8 alpha = 96, double z = 0.3,
|
||||
double azimuth = 315, double elevation = 25);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user