Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Lighting normal not correct when flipping #33

Closed
jwu opened this issue Apr 26, 2012 · 1 comment
Closed

Dynamic Lighting normal not correct when flipping #33

jwu opened this issue Apr 26, 2012 · 1 comment

Comments

@jwu
Copy link
Contributor

jwu commented Apr 26, 2012

http://forum.unity3d.com/threads/101811-ex2D-the-best-2D-sprite-solution-for-Unity-RELEASED?p=903612&viewfull=1#post903612

Hi!

It seems that the lighting does not work correctly for ex2D sprites with H-flip or V-flip on (sprites seems to be ok when both flips are off or both are on). I'm using standard diffuse/transparent diffuse shaders.

In my game, I'm using four ex2D sprites to create the background in the way that they are rotated/flipped (example: a texture have one quarter of circle, with flipping, you can create whole circle with four sprite objects and one texture by using flip/rotation -> your level background requires only 1/4 of the memory when compared to one big texture)

Br,

  • Moopi
@jwu
Copy link
Contributor Author

jwu commented Aug 7, 2013

The normal will always face the screen in ex2d v2.0, so this problem has fixed.

@jwu jwu closed this as completed Aug 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant