Jump to content

C++ changing color filter of LightOmni in runtime affects light intensity


photo
Go to solution Solved by mifril,

Recommended Posts

2.18. By default LightOmni works as intended, if change color filter via code on runtime, light intensity goes insane. Currently fix issue with also setting lux suspiciously low. Still learn documentation, so maybe it's something wrong on my side, but from functions naming, probably not. Was able to reproduce it in completely different 2.17 project. Attach video, showing editor settings of LightOmni, code and issue. Run project four times:

1) No changes for light

2) Change ColorFilter

3) Set lux to issue solving levels. Tried setting lux specifically to 1, makes a little brighter than before any changes.

4) setting lux to default levels

https://youtu.be/a6BDPDBXW7Y

Link to comment
  • Solution

Hello, SirPlaceholder.

You have to pass a normalized color to vector, you can do it this way vec4(255, 132, 0, 255)/255. That is, all color values must be in the range 0..1.

Link to comment
×
×
  • Create New...