skycoin / cx-game

Game Prototype
7 stars 15 forks source link

[Shader] Automatically generate black outlines #442

Closed Luis-Tavares closed 3 years ago

Luis-Tavares commented 3 years ago

The foreground tiles must have their outlines generated automatically by code. I'm currently using color #1b1b1b for outlines, but we can try other tones of black. It's a little hard to notice the difference right now, but this is very important for some brighter areas.

image

ted537 commented 3 years ago

Steps to Implement

For each layer:

The result of (2) can be rendered directly to the viewport.

https://en.wikipedia.org/wiki/Edge_detection