Lighting in the deep ocean

Post Reply
TheFourthPlace
Member
Posts: 13
Joined: Mon Jan 23, 2017 03:45

Lighting in the deep ocean

by TheFourthPlace » Post

So I'm playing with the mapgen example mod suggested (LVM) and managed to get deep oceans. Very first thing I noticed that there is some kind of ambient light reduction in effect that make ~100m down (assuming 1 block = 1m) pretty bloody dark, except if I look up, so it;s not just deepness, it's also directional.

Is this definable or is this baked in to the engine?

Also, when i started using a new mapgen it look me a whole bunch of reloads to find a map where I was not spawning inside solid ground. I imagine this is a common problem with a common solution, and I'm ahppy to keep looking but the lighting problem has me perplexed. Not finding much with forum searches. I'm ok with adding light o night time, but not during the daytime.

User avatar
Nathan.S
Member
Posts: 1147
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: Lighting in the deep ocean

by Nathan.S » Post

Water does reduce the light level. You can probably change that by modifying the code for the water if you wanted.
Just add,

Code: Select all

 sunlight_propagates = true,
to the node registration in minetest_game/mods/default/nodes.lua
You could also play around with the alpha and post_effect_color, but I don't think either of those are actually going to do anything to the light level.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

TheFourthPlace
Member
Posts: 13
Joined: Mon Jan 23, 2017 03:45

Re: Lighting in the deep ocean

by TheFourthPlace » Post

Thankyou

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 6 guests