Jump to content

Recommended Posts

So I'm currently working on a mod (3 player coop) and currently I've implemented a new camera system that works with zoom. Everything works fine, except that water stops rendering if you zoom out too far.

Does anyone know how change that?

For example, in Minecraft you have a "Render Distance" option. Is something like that coded in Don't Starve too?

If anyone knows of the existence of such a thing, I will be really grateful if you tell me.

 

Thanks in advance,

Pointer.

 

P.S. Here's a screenshot of what I mean in case I didn't explain it correctly:  BfJWbpF.png

Pretty sure it has to do with this code in prefabs/forest.lua (lines 92-95):

--add waveslocal waves = inst.entity:AddWaveComponent()waves:SetRegionSize( 40, 20 )waves:SetRegionNumWaves( 8 )

You can access it externally like so:

GetWorld().WaveComponent
Edited by squeek

Pretty sure it has to do with this code in prefabs/forest.lua (lines 92-95):

--add waveslocal waves = inst.entity:AddWaveComponent()waves:SetRegionSize( 40, 20 )waves:SetRegionNumWaves( 8 )
You can access it externally like so:

GetWorld().WaveComponent

 

 

Thanks a lot, I will look into it. :-)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...