Engine icon indicating copy to clipboard operation
Engine copied to clipboard

Enhancement: Add optional multiplier parameter for ConVar material proxy

Open ErinRoseWebs69 opened this issue 1 year ago • 3 comments

What would this enhancement be for?

Rendering

Describe your enhancement suggestion in more detail

Currently $color, at least via pulling ConVar values, requires a 0-1 color range, but this breaks cvars such as cl_portals_sp_primary_color and cl_portals_sp_secondary_color, as those require a 0-255 color range. Allowing the material proxy to utilize both 0-1 and 0-255 range would be great for cvar pulling or other material proxy shenanigans

ErinRoseWebs69 avatar Jan 09 '25 02:01 ErinRoseWebs69

This doesn't really need to be built in? Define a material var with a custom name, write to that, then use a Multiply proxy after MaterialModify to do the multiplication. You could even just keep the one variable, and use it both for srcVar1 and resultVar.

TeamSpen210 avatar Jan 09 '25 02:01 TeamSpen210

Might be nice to have as shorthand syntax.

JJL772 avatar Jan 09 '25 02:01 JJL772

True, several other proxies have a scale option.

TeamSpen210 avatar Jan 09 '25 02:01 TeamSpen210