diff options
author | Craig Robbins <kde.psych@gmail.com> | 2014-12-14 21:28:08 +1000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2014-12-31 02:44:31 +1000 |
commit | 3d29be24e089b1c267409f05b897ce3f03e99a07 (patch) | |
tree | 56ecebfe323bf37536dcbf44c7a0668f725abc94 /src/mapnode.h | |
parent | 2414580754734b62119369255b0e9c462381dc8a (diff) | |
download | minetest-3d29be24e089b1c267409f05b897ce3f03e99a07.tar.gz minetest-3d29be24e089b1c267409f05b897ce3f03e99a07.tar.bz2 minetest-3d29be24e089b1c267409f05b897ce3f03e99a07.zip |
Add display_gamma option for client
Diffstat (limited to 'src/mapnode.h')
-rw-r--r-- | src/mapnode.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/mapnode.h b/src/mapnode.h index e67724ec1..da6e9bdea 100644 --- a/src/mapnode.h +++ b/src/mapnode.h @@ -209,7 +209,7 @@ struct MapNode u8 getLightNoChecks(LightBank bank, const ContentFeatures *f); bool getLightBanks(u8 &lightday, u8 &lightnight, INodeDefManager *nodemgr) const; - + // 0 <= daylight_factor <= 1000 // 0 <= return value <= LIGHT_SUN u8 getLightBlend(u32 daylight_factor, INodeDefManager *nodemgr) const @@ -220,16 +220,6 @@ struct MapNode return blend_light(daylight_factor, lightday, lightnight); } - // 0.0 <= daylight_factor <= 1.0 - // 0 <= return value <= LIGHT_SUN - u8 getLightBlendF1(float daylight_factor, INodeDefManager *nodemgr) const - { - u8 lightday = 0; - u8 lightnight = 0; - getLightBanks(lightday, lightnight, nodemgr); - return blend_light_f1(daylight_factor, lightday, lightnight); - } - u8 getFaceDir(INodeDefManager *nodemgr) const; u8 getWallMounted(INodeDefManager *nodemgr) const; v3s16 getWallMountedDir(INodeDefManager *nodemgr) const; |