Open SpaxscE opened 3 months ago
I haven't looked beyond far into it, but with the current rendering system, I don't think it's possible to render dark white values as the ALPHA multiplier just goes down rather than these values. Would this be possible with your new rework I presume being done eventually in the future?
it can be done with custom textures. The ones i included are rendermode color additive so they act as light, and light can not be black. See
https://github.com/SpaxscE/lscs_public/blob/main/materials/lscs/effects/lightsaber_blade.vmt#L5 https://github.com/SpaxscE/lscs_public/blob/main/materials/lscs/effects/lightsaber_glow.vmt#L4
https://github.com/SpaxscE/lscs_public/blob/main/materials/lscs/effects/lightsaber_core.vmt#L8 https://github.com/SpaxscE/lscs_public/blob/main/materials/lscs/effects/lightsaber_tip.vmt#L8 https://github.com/SpaxscE/lscs_public/blob/main/materials/lscs/effects/lightsaber_trail.vmt#L8
Blade rendering is hardcoded. This can be made editable. See TODO entry: https://github.com/SpaxscE/lscs_public/blob/main/lua/weapons/weapon_lscs/cl_effects.lua#L218