SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
86 stars 18 forks source link

First person Emitter doesnt copy original light rotation #3940

Closed Wyvernaed closed 1 year ago

Wyvernaed commented 1 year ago

Im trying to made lights with shadows using spot light instead of small point light on selected gameobject: image

But there is problem that gameobject named Emitter that simulate light in first person doesnt copy rotation of original light source: image image

On headlamp that Emitter is not supported at all.

Can you copy rotation for that Emitter at least? At most, made it for headlamps too. Also you can check #3941 for one of solutions.

SDGNelson commented 1 year ago

The reason the world position is not used for the viewmodel is otherwise there is noticeable jitter even on 4x4km maps. The .dat spotlight is intentional rather than attaching lights like this because it allows graphics settings to potentially control spotlight shadows.