Garry's Mod

Garry's Mod

GShader Library
Showing 11-20 of 88 entries
< 1  2  3  4 ... 9 >
Update: 4 Oct @ 11:24am

Fixes

Update: 4 Oct @ 10:54am

Update: 4 Oct @ 10:38am

Fixed fog mask for Proton

Update: 1 Oct @ 1:06pm

Normal smooth optimisation

Update: 27 Sep @ 10:48am

ACRCW base fix

if ArcCW then local function FixACRCWBase(class) class = class or "arccw_base" local ENT = weapons.GetStored(class) old_DrawHolosight = old_DrawHolosight or ENT.DrawHolosight old_FormCheapScope = old_FormCheapScope or ENT.FormCheapScope local function depthBufferCheck() local rt = render.GetRenderTarget() return rt and rt:GetName() == "_rt_resolvedfullframedepth" end function ENT:DrawHolosight(...) if depthBufferCheck() then return end old_DrawHolosight(self, ...) end function ENT:FormCheapScope(...) if depthBufferCheck() then return end old_FormCheapScope(self, ...) end weapons.Register(ENT, class) end for k,v in pairs(weapons.GetList()) do if v.Base == "arccw_base" then print(v.Base) FixACRCWBase(v.ClassName) end end FixACRCWBase() end

Update: 27 Sep @ 8:53am

Small update for ARCCW

Update: 27 Sep @ 8:50am

Small update for ARC9

Update: 23 Sep @ 6:04am

FAS2 adaptation

Update: 23 Sep @ 5:29am

Fog optimisation

Update: 21 Sep @ 6:16pm

- Fog Mask optimisation.
New function:

function shaderlib.GetViewProjZ(viewData) if !ismatrix(viewData) then viewData = shaderlib.GetViewProjMatrix(viewData) end return Vector4( viewData:GetField( 3,1 ), viewData:GetField( 3,2 ), viewData:GetField( 3,3 ), viewData:GetField( 3,4 ) ) end