Announcement

Collapse
No announcement yet.

Lighting only works on one side of the sprite (Pictures included)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Lighting only works on one side of the sprite (Pictures included)

    Hello,
    I am having some issues with sprite lighting. It works fine on sprites that do not change direction. My character on the other hand, when he is moving left the sprite is flipped. But when it is flipped, it will not react to lighting.
    Tried several sprite materials. The translucent one almost works, but the sprite becomes blurry when it moves.

    When facing right: (DefaultLitSpriteMaterial)
    Click image for larger version

Name:	ScreenHunter_352 Oct. 30 12.24.jpg
Views:	1
Size:	7.8 KB
ID:	1140229
    When facing left: (DefaultLitSpriteMaterial)
    Click image for larger version

Name:	ScreenHunter_353 Oct. 30 12.25.jpg
Views:	1
Size:	10.3 KB
ID:	1140230

    The transform of the sprite is the same, it is just the Z rotation that changes (effectively showing the back side of the sprite, flipping it. which works fine when sprite material is unlit).

    Any idea how I can make the lighting work fine on both sides of the sprite?

    Edit: I tried checking two-sided, but the sprite just becomes black on both sides then.

    #2
    Hey, wondering if you ever figured this out... 6 years ago....

    I'm having the same exact problem.

    Comment

    Working...
    X