Garry's Mod

Garry's Mod

GShader Library
Showing 21-30 of 45 entries
< 1  2  3  4  5 >
Update: 22 Aug @ 9:31am

Optimized shaderlib.DrawVertexScreenQuad(). Thanks Vogel.

Update: 22 Aug @ 8:10am

Chaging hook from CalcView to RenderScene for shaderlib.DrawVertexScreenQuad().

Update: 22 Aug @ 7:04am

Fixed some bugs with shaderlib.DrawVertexScreenQuad()

Update: 22 Aug @ 7:04am

Fixed some bugs with shaderlib.DrawVertexScreenQuad()

Update: 22 Aug @ 5:57am

Added new function with vertex data input support:
shaderlib.DrawVertexScreenQuad()
U can input vertex data using render.SetModelLighting(0, x, y, z),etc.
More info here:
Example 6[github.com]

Update: 13 Aug @ 5:20am

Added VManip support

Update: 13 Aug @ 3:58am

Fixed improved normals reconstruction. Added accurate normal reconstruction: https://atyuwen.github.io/posts/normal-reconstruction/

Update: 8 Aug @ 5:01pm

Added new param: Hook
r_shaderlib_hook 0

The hook where the reconstruction will take place. The best choice is PreDrawTranslucentRenderables. But if you have a black screen, you can try to choose another one, but in this case ghosting is possible.

0-3

local vales_hook = { [0] = "PreDrawTranslucentRenderables", [1] = "PostDrawOpaqueRenderables", [2] = "PreDrawEffects", [3] = "RenderScreenspaceEffects", }

Update: 8 Aug @ 4:30pm

Removed some debug prints.

Update: 8 Aug @ 4:23pm

Added setting to turn MRT on/off. By default - on.
r_shaderlib_mrt 1

MRT may not work for some reason on some systems. The reason is not yet understood. If Debug mode displays a black image, try disabling MRT.

Perhaps certain video cards (certain manufacturers) have a specific operation that does not allow using MRT in gmod.