This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local N = 624 | |
local M = 397 | |
local MATRIX_A = 0x9908b0df | |
local UPPER_MASK = 0x80000000 | |
local LOWER_MASK = 0x7fffffff | |
local band, bor, bxor, blshift, brshift = bit.band, bit.bor, bit.bxor, bit.lshift, bit.rshift | |
-- initializes mt[N] with a seed | |
local function init_genrand(o, s) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Extremely small OOP library | |
local function Class(name, parent) | |
local t = {} | |
local meta = {} | |
meta.__call = function(_, ...) | |
local inst = setmetatable({}, {__index = t}) | |
if inst.initialize then inst:initialize(...) end | |
return inst | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local module = {} | |
worldview = module | |
module.Requests = module.Requests or {} | |
module.Rendering = false | |
function module.Request(id, renderData) | |
local t = module.Requests[id] | |
if not t then t={} module.Requests[id] = t end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> | |
<style> | |
body { | |
background-color: rgb(218, 223, 225); | |
color: black; | |
font-family: 'Open Sans', sans-serif; | |
font-size: 14px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local rt1 = GetRenderTarget("TestRT1", 500, 500) | |
local rt2 = GetRenderTarget("TestRT2", 500, 500) | |
local rt_mat = Material("models/weapons/v_toolgun/screen") | |
hook.Add("HUDPaint", "TestRTHook", function() | |
render.PushRenderTarget(rt1) | |
render.Clear(0, 0, 0, 255) | |
cam.Start2D() |
NewerOlder