Skip to content

Instantly share code, notes, and snippets.

function widget:GetInfo()
return {
name = "skin",
desc = "skin",
author = "ivand",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true -- loaded by default?
}
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Deferred rendering2",
version = 3,
desc = "Collects and renders point, cone and beam lights",
author = "ivand",
date = "2020",
function APTGETSOURCE {
pkg=$1
cd $(mktemp -d)
apt source $pkg && apt-get build-dep -y $pkg
tmp_dir=$(pwd)
for d in $(find ./ -maxdepth 1 -not -path "./" -type d); do
cd $d
break
done
}
function widget:GetInfo()
return {
name = "Map Edge Extension",
version = "v0.7",
desc = "Draws a mirrored map next to the edges of the real map",
author = "ivand",
date = "2020",
license = "GPL",
layer = 0,
@lhog
lhog / map_grass
Last active April 15, 2021 23:13
function widget:GetInfo()
return {
name = "Map Grass GL4",
version = "v0.001",
desc = "Instanced rendering of garbagegrass",
author = "Beherith",
date = "2021.04.12",
license = "CC-BY-NC-ND 4.0",
layer = -1000000000000,
function widget:GetInfo()
return {
name = "Test Unitshapes Rendering",
version = "v0.2",
desc = "Test Unitshapes Rendering",
author = "ivand",
date = "2020",
license = "GPL",
layer = 0,
enabled = true,
function widget:GetInfo()
return {
name = "Unitshapes Rendering",
version = "v0.2",
desc = "Unitshapes Rendering",
author = "ivand",
date = "2020",
license = "GPL",
layer = 0,
enabled = false,
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <vector>
#include <algorithm>
#include <iostream>
void framebuffer_size_callback(GLFWwindow* window, int width, int height);
void processInput(GLFWwindow *window);
@lhog
lhog / FixedPipelineState.cpp
Created December 9, 2021 23:26
FixedPipelineState backup
#include "FixedPipelineState.h"
#include <array>
#include <stdexcept>
#include "System/type2.h"
#include "System/float4.h"
#include "System/StringHash.h"
#include "Rendering/GlobalRendering.h"
@lhog
lhog / resolution_test.lua
Created January 9, 2022 21:53
resolution_test.lua
function widget:GetInfo()
return {
name = "Resolution Testing",
desc = "Debug changing fulscreen/borderless/resolution",
layer = 0,
enabled = true,
}
end
local windowType = {