briochie / wow.unity

A collection of assets to make working with wow.export easier in Unity.
MIT License
19 stars 7 forks source link

BUG: Terrain shader has inverted/wrong shadows/shading #6

Closed oyvind-stromsvik closed 1 year ago

oyvind-stromsvik commented 1 year ago

Here's a screenshot where I've replaced all the tiles around this tile with actual Unity terrain, which has correct shading, and you can see from the tree in the lower right corner where the directional light is coming from: Screenshot 2023-06-06 135540

I actually didn't notice this before I replaced my tiles with Unity terrain, and thought it was the terrain that was wrong, but it seems like the shader in this package is putting the side facing the directional light in shadow or something?

briochie commented 1 year ago

Weird. The shading uses the out-of-the-box lighting for URP. Unless something extra strange is going on with the coordinate system changes, I don't see why that would be the case.

If I were to guess, the terrain is using a more custom lighting implementation than the standard URP lighting. Going to close this issue, since this will be something that comes up with the terrain changes regardless.

briochie commented 1 year ago

Fixing the close type