rt scope hdr tonemap thing smooth now

This commit is contained in:
Darsu 2025-01-26 05:02:56 +07:00
parent cd524a3e56
commit 174162fb13

View File

@ -344,7 +344,8 @@ function SWEP:DoRTScope(model, atttbl, active)
render.PopRenderTarget()
-- if sd > 0 then render.SetToneMappingScaleLinear(render.GetToneMappingScaleLinear()*0.2) end
if sd > 0.5 then render.SetToneMappingScaleLinear(vec1) end
if sd > 0.33 then render.SetToneMappingScaleLinear(LerpVector(sd * 1.5 - 0.5, render.GetToneMappingScaleLinear(), vec1)) end
local counterrotation = self.LastViewModelAng.z - sightzang + (arc9_cheapscopes:GetBool() and 0 or self.SubtleVisualRecoilAng.z * 2)
rtsurf:SetTexture("$basetexture", rtmat)