Jump to content
shadmar

Day and Night Cycle shader

Recommended Posts

having a scaling issue

 

want to make it at least 2x bigger but when I do it disappears the playing

 

Any ideas?

Share this post


Link to post

Hi Shadmar,

The shader is incompatible with Particles. The shader draws over particles. In the editor it's fine, but during gameplay when the shader is actually used the shader draws over the particles resulting to this:

You can see the particles are cut up after the outline of the buildings. 

I have confirmed that it is the day and night shader that's causing this issue by simply disabling the day-and-night shader to see if the particle system would work correctly again and it did.

Share this post


Link to post

Is there a way to have this work when there is constant camera switching?

Whenever our player switches from first to third person, or vise versa, or changes camera for cutscenes, it crashes the game with the newest version of the script.

It only does it during a camera switch (we call to destroy our current camera and create a new one)

Share this post


Link to post

Could you not camera switch and instead just snap the camera to the pos/rot it needs to be?

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...