Garry's Mod

Garry's Mod

GShader Library
Showing 1-10 of 49 entries
< 1  2  3  4  5 >
Update: Sep 1 @ 4:52am

Fixed some glithes for Velocity buffer.

Update: Sep 1 @ 4:29am

Minor changes

Update: Sep 1 @ 4:23am

Fixed depth buffer in .a channel of _rt_WPDepth using formula:

float depth = 1 / ( tex2D(DepthBuffer,uv).a * 4000);

https://github.com/ValveSoftware/source-sdk-2013/blob/68c8b82fdcb41b8ad5abde9fe1f0654254217b8e/src/materialsystem/stdshaders/depthwrite_ps2x.fxc#L35C1-L39C6
g_flFarPlane == 4000

Same fix was in EGSM:
https://github.com/devonium/EGSM/blob/master/include_files/depthpass.lua#L163
return float4((1/tex2D(WDBuffer, i.vTexCoord).w)/4000,0,0,1);

1/depth/4000 == 1/(depth*4000) is equal

Update: Aug 29 @ 11:07am

Removed hook param

Update: Aug 28 @ 7:54pm

Some fixes

Update: Aug 28 @ 7:30pm

Added test rt of bumps.

Update: Aug 26 @ 5:41pm

Fixed fix of MW base

Update: Aug 26 @ 9:55am

Fixed TFA flashlights. x2

Update: Aug 26 @ 9:04am

Fixed TFA flashlights.

Update: Aug 26 @ 7:49am

Added shaderlib.DrawVertexScreenQuad(col, normal, tc1,tc2,tc3,tc4,tc5,tc6,tc7) to dev BRANCH.

Added forced disabling ARC9 iron DOF:
RunConsoleCommand("arc9_fx_adsblur", 0)
--ARC9 force disable iron dof: (arc9toytown -> written in depth buffer)

Returned VManip fix (confirm)