Facepunch / sbox-issues

175 stars 12 forks source link

Ability to use Color Temperature Kelvin Values for lights #3525

Open QuackCola opened 1 year ago

QuackCola commented 1 year ago

For?

S&Box

What can't you do?

In newer versions of source 2 namely dota2 & cs2 you are able to use Color Temperature Values to set the color of a light among a bunch of other things for more control over how your light looks and feels. It would be nice to be able to specify real world Kelvin values for lets say a 60w bulb instead of having to convert that k value first to RGB and then use it in the engine.

How would you like it to work?

2 Additional Parameter values, the first one for changing the color mode and the other for changing the Color Temperature value in Kelvin

Color Mode Choices : Color (Default) Color Temperature

Color Temperature (K) :

example

Screensh**ot 2023-06-30 102145

Note : When Color mode is set to Color Temperature you will be unable to select and change Color. And when Color Mode is set to Color the Color Temperature (K) keyvalue will be grayed out.

What have you tried?

You could eyeball it or use external tools to calculate the RGB Value for the light from the specified Kelvin value . But I don't see why you couldn't be able to just use the color temp value in engine directly instead.

Additional context

There's also the some additional settings for Units that could be implemented in conjunction with the above stuff.

Screenshot 2023-06-30 101531

chrisspieler commented 1 year ago

The majority of lights I make are modelled after the warm interior lights of residential homes or the cool fluorescent lights of commercial spaces. I suspect that this is probably the same for many mappers, so having a slider with the most common values immediately available is a nice UX improvement.

GAMEDEVTYCOONXD commented 1 year ago

PLEASE YES PLEASE YES PLEASE YES PLEASE YES |

Jammie3d commented 6 days ago

This but for scene lights would be lovely