Ebiten: examples/shader: Add an example for lighting with a normal map

Created on 3 Jul 2020  路  7Comments  路  Source: hajimehoshi/ebiten

Most helpful comment

All 7 comments

I can probably do this if you want.

Do you have anything special in mind?

This is pretty cool:
https://blog.selfshadow.com/sandbox/normals.html

That'd be a great help! I don't have any special requests. Do we need handling multiple images?

I think multiple images is not required, but would be make the example a bit cooler.

I didn't know normal maps existed before today, so I'll take a while to familiarize myself with the concept :-)

I'll report in when I have something working.

normal_map

First go

https://gyazo.com/71694373d534a1e1e6e57a14197a3630

I found a tool (https://www.codeandweb.com/spriteilluminator) and succeeded to create a normal map.

@kyeett I'll be working on adding a new example with this. Sorry if you've already started, but is that fine to you?

@hajimehoshi no problem! Glad you got it to work!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hajimehoshi picture hajimehoshi  路  7Comments

mortenson picture mortenson  路  7Comments

joaowiciuk picture joaowiciuk  路  5Comments

hajimehoshi picture hajimehoshi  路  5Comments

silbinarywolf picture silbinarywolf  路  4Comments