RTScopePostInvertFunc

This commit is contained in:
Darsu 2022-12-13 15:15:23 +07:00
parent f3e708fe75
commit 9cfa8216ad
2 changed files with 6 additions and 0 deletions

View File

@ -177,6 +177,7 @@ ATT.RTScopeFLIRCCCold = { -- Color correction drawn only on FLIR targets
}
ATT.RTScopeFLIRFunc = function(swep) end
ATT.RTScopeFLIRHotOnlyFunc = function(swep) end -- same but only for hot targets (try `DrawSobel(0.05)` here!!))
ATT.RTScopePostInvertFunc = function(swep) end -- only when InvertColors is true
ATT.RTScopeMotionBlur = false

View File

@ -92,6 +92,11 @@ function SWEP:DoRT(fov, atttbl)
render.DrawTextureToScreen(rtmat_spare)
render.OverrideBlend(false)
if atttbl.RTScopePostInvertFunc then
atttbl.RTScopePostInvertFunc(self)
end
render.PopRenderTarget()
end
end