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

Diffuse shader + spot light + extruded tiles = light only affects intersections #160

Open
valba8 opened this issue Mar 6, 2018 · 0 comments

Comments

@valba8
Copy link

valba8 commented Mar 6, 2018

Hi,

I was trying to illuminate a tiled map imported with Tiled2Unity, so I imported the map as usual and then I changed the shader to Tiled2Unity/Diffuse Depth (Instanced). An important point is that my tiles were extruded some pixels to avoid or minimize the seams problem. So finally I added a point light to the scene and then I got this result:

tiles_light

As you can see, it seems like only the extruded parts are illuminated, while the main part of each tile remains dark. I tried several other shaders (like DefaultDiffuse and others) and the effect is always the same. With a directional light the effect disappears (but if you have another spot/point light in the scene the effect keeps appearing in the near tiles).

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