Quantcast
Channel: Questions in topic: "webgl"
Viewing all articles
Browse latest Browse all 2390

Lighting doesn't work properly in WebGL build

$
0
0
So I have a 2d game where a player walks around the level (top view) with a flashlight in front of him. Everything works fine in the editor, however whenever I build it for WebGL and test it in my browser, one room only one, has a problem with lighting, and as I walk in different parts of the room lighting changes in a weird way, and the floor is blinking in the first half of the room, as well as the flashlight is barely visible (sometimes not at all). Here's how it looks in the editor and is supposed to look like: ![alt text][1] And here's a few screenshots from the web build: ![alt text][2] P.S. Everything works fine in a standalone build. [1]: /storage/temp/82281-scrensht1.png [2]: /storage/temp/82282-scrnsht5.png

Viewing all articles
Browse latest Browse all 2390

Trending Articles