All Projects → Lexicality → stencil-tutorial

Lexicality / stencil-tutorial

Licence: Apache-2.0 license
Learn you a stencil buffer for great justice

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to stencil-tutorial

helix
A Garry's Mod roleplaying framework developed by nebulous for the people. Helix IS open-source - the code can be used as you wish.
Stars: ✭ 123 (+207.5%)
Mutual labels:  garrysmod
Lambda
Half-Life 2 series Co-Op Gamemode
Stars: ✭ 52 (+30%)
Mutual labels:  garrysmod
ACF-3
ACF
Stars: ✭ 37 (-7.5%)
Mutual labels:  garrysmod
Half-Life-Resurgence
Recreation & expansion of NPCs, entities, and weapons from the Half-Life series into Garry's Mod!
Stars: ✭ 52 (+30%)
Mutual labels:  garrysmod
sourcesdk-minimal
A compact and Garry's Mod compatible SourceSDK (don't use in other Source engine games).
Stars: ✭ 34 (-15%)
Mutual labels:  garrysmod
Server-Creation-Tool
A Tool to easily create Server via SteamCMD
Stars: ✭ 33 (-17.5%)
Mutual labels:  garrysmod
3D2D-Textscreens
3D2D Textscreens Garry's Mod Workshop Addon
Stars: ✭ 26 (-35%)
Mutual labels:  garrysmod
VJ-Base
An addon for Garry's mod that contains bunch of bases to make many different types of addons.
Stars: ✭ 57 (+42.5%)
Mutual labels:  garrysmod
MetrostroiAddon
Metrostroi is an addon for Garry's Mod which puts you behind the controls of the real and fully simulated subway trains.
Stars: ✭ 21 (-47.5%)
Mutual labels:  garrysmod
gm 8bit
Audio interception utils for garry's mod
Stars: ✭ 28 (-30%)
Mutual labels:  garrysmod
glua-docs
🔍 Quick documentation lookup for Garry's Mod Lua
Stars: ✭ 14 (-65%)
Mutual labels:  garrysmod
gm luaerror
A module for Garry's Mod that adds hooks for obtaining errors that happen on the client and server (if activated on server, it also pushes errors from clients).
Stars: ✭ 35 (-12.5%)
Mutual labels:  garrysmod
XPGUI
A modern VGUI framework.
Stars: ✭ 15 (-62.5%)
Mutual labels:  garrysmod
BadCoderz
Find unoptimized gmod addons and KILL the devs who made them
Stars: ✭ 66 (+65%)
Mutual labels:  garrysmod
Autorun-rs
Undetectable scripthook with lua execution and filesteal. Modern replacement for gluasteal and most lua executors
Stars: ✭ 63 (+57.5%)
Mutual labels:  garrysmod
gmod luasocket
Modules for Garry's Mod that add bindings for OS sockets through luasocket.
Stars: ✭ 21 (-47.5%)
Mutual labels:  garrysmod
zombie-escape
🏃 Gamemode for Garry's Mod based on the popular Counter-Strike: Source server mod
Stars: ✭ 17 (-57.5%)
Mutual labels:  garrysmod
dash
Collection of libraries, utilities, and core Garry's Mod changes intended to improve development of addons and gamemodes
Stars: ✭ 46 (+15%)
Mutual labels:  garrysmod
garrysmod-chatsounds
Community Uploaded Ingame Chat Reaction Sounds
Stars: ✭ 68 (+70%)
Mutual labels:  garrysmod
Fun
Small fun scripts
Stars: ✭ 22 (-45%)
Mutual labels:  garrysmod

Lex's Stencil Tutorial

While working out how to use the stencil buffer in Garry's Mod I had to read a lot of tutorials and then mangle a whole bunch of code to get a proper idea on what things were actually doing.

This repository is an attempt to distill all that knowledge into a series of documented runnable examples that I hope will help people, and enrich the sadly unfilled Garry's Mod Wiki.

The examples will make great use of the entity sent_stencil_test which is just a prop that doesn't draw itself by default. You could easily substitute it for any other entity of your own.

It is under the category "Dev Stuff" in the Sandbox spawn menu. If you spawn one but lose it, run stencil_tutorial_draw_ents 1 in console and it will start rendering. Run stencil_tutorial_draw_ents 0 to hide it again.

When running an example, use lua_openscript_cl, for example

] lua_openscript_cl stencil_tutorial/basic_clipping.lua

Each example will override the previous, so you can just run them sequentially. To end an example, run the console command stencil_tutorial_end_example.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].