You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.
If I run a scene with some Light2D lights, but then resize the game window, the lights become offset from the intended positions.
I think the lighting is still consistent with the obstacles (as the LightOverlay material's LightSources render target looks sensible though possibly stretched), but it doesn't overlay back correctly to the game.
I'm guessing it's some aspect ratio or scaling value for the overlay shader that isn't being updated.
Edit: I'm using a normals camera, and the normal map render target doesn't resize, so it might be related.
Edit2: Though if I turn NormalMapping off, the lights are in the right place, but then the obstacles are in the wrong place, casting incorrect shadows. Weird.
Tested on Unity 2017.1.0f3
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If I run a scene with some Light2D lights, but then resize the game window, the lights become offset from the intended positions.
I think the lighting is still consistent with the obstacles (as the LightOverlay material's LightSources render target looks sensible though possibly stretched), but it doesn't overlay back correctly to the game.
I'm guessing it's some aspect ratio or scaling value for the overlay shader that isn't being updated.
Edit: I'm using a normals camera, and the normal map render target doesn't resize, so it might be related.
Edit2: Though if I turn NormalMapping off, the lights are in the right place, but then the obstacles are in the wrong place, casting incorrect shadows. Weird.
Tested on Unity 2017.1.0f3
The text was updated successfully, but these errors were encountered: