ericw-tools icon indicating copy to clipboard operation
ericw-tools copied to clipboard

_bouncecolorscale seems to have no effect

Open 4LT opened this issue 1 year ago • 3 comments

A light source adjacent to an orange wall seems to have no effect on the tint of a nearby off-white wall. Not sure if this is because the orange wall is too dark or what, but I can't detect a hint of orange on the white wall.

lim_4lt_2024-05-06_23-06-36 lim_4lt_2024-05-06_23-06-42

Settings:

_bounce 3
_bouncecolorscale 1

Version: 2.0.0-alpha7-6-g9985d6c8-dirty

4LT avatar May 07 '24 03:05 4LT

I added some debug prints, light_options.bouncecolorscale.value() is returning 0 in the function CacheTextures

4LT avatar May 07 '24 22:05 4LT

Cool, I think I can repro this if I set _bouncecolorscale 1 in worldspawn. Previously I was setting -bouncecolorscale 1 as a light command-line arg.

Does it fix it if you pass -bouncecolorscale 1 as a light command line arg?

ericwa avatar May 07 '24 22:05 ericwa

Yes, it works now! Although the effect is much more subtle than I had hoped for; I see why, though, the direct lighting is overpowering the bounced light. Emissive surfaces would probably look better

4LT avatar May 07 '24 23:05 4LT