wowserhq / wowser

World of Warcraft in the browser using JavaScript and WebGL
MIT License
240 stars 63 forks source link

Implement proper WMO doodad lighting #142

Open fallenoak opened 8 years ago

fallenoak commented 8 years ago

In the retail client, static WMO doodads are lit differently depending on their location in WMO groups that are exterior or interior.

Currently, we're lighting all WMO doodads with the same light as the overworld. This makes for some jarring doodad appearances.

In order to get WMO doodads to look right in interior groups, we should pass the color information from the MODD entry down to the doodad when the doodad is being instantiated. This information should override values in the light manager--it's not dynamic, so there's no need to involve the light manager.

Progress