Make pixel lighting like terraria and starbound

旧街凉风 提交于 2019-12-12 03:54:19

问题


I'm making a 2D sandbox game like "Terraria" and "Starbound". This is my game

The light is filling the whole terrain but i don't want it. I want following:


回答1:


You're probably using Directional Lighting, which illuminates the whole terrain equally in the direction you made it. You could use Spot Lights or Point Lights, which will illuminate only the surface you want to.

Edit: although using this method, this could take way more resources due to the number of single lights placed throughout the map.



来源:https://stackoverflow.com/questions/41443130/make-pixel-lighting-like-terraria-and-starbound

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!