Skip to content

Instantly share code, notes, and snippets.

View kingofthebongo2008's full-sized avatar
🌴
On the computer

Stefan Dyulgerov kingofthebongo2008

🌴
On the computer
  • Sofia, Bulgaria
View GitHub Profile
@sebbbi
sebbbi / SinglePassMipPyramid.hlsl
Last active April 15, 2025 03:49
Single pass globallycoherent mip pyramid generation
// NOTE: Must bind 8x single mip RWTexture views, because HLSL doesn't have .mips member for RWTexture2D. (SRVs only have .mips member)
// NOTE: globallycoherent attribute is needed. Without it writes aren't guaranteed to be seen by other groups
globallycoherent RWTexture2D<float> MipTextures[8];
RWTexture2D<uint> Counters[8];
groupshared uint CounterReturnLDS;
[numthreads(16, 16, 1)]
void GenerateMipPyramid(uint3 Tid : SV_DispatchThreadID, uint3 Group : SV_GroupId, uint Gix : SV_GroupIndex)
{
[unroll]
@Ginurx
Ginurx / pbr.txt
Last active August 22, 2023 02:01
PBR Online Resources
A Basic Introduction to BRDF-Based Lighting [RECOMMANED]
https://www.cs.princeton.edu/courses/archive/fall06/cos526/tmp/wynn.pdf
A Reflectance Model for Computer Graphics
http://www.graphics.cornell.edu/~westin/consortium-home/cook-tog.pdf
SIGGRAPH 2012 Course: Practical Physically Based Shading in Film and Game Production
http://blog.selfshadow.com/publications/s2012-shading-course/#course_content
SIGGRAPH 2013 Course: Physically Based Shading in Theory and Practice
@mikenelson-io
mikenelson-io / win10_slipstream.md
Created November 9, 2016 21:24 — forked from PatrickLang/win10_slipstream.md
Building an up to date Windows 10 VHDX
@Reedbeta
Reedbeta / cool-game-programming-blogs.opml
Last active March 25, 2025 15:03
List of cool blogs on game programming, graphics, theoretical physics, and other random stuff
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Graphics, Games, Programming, and Physics Blogs</title>
</head>
<body>
<outline text="Tech News" title="Tech News">
<outline type="rss" text="Ars Technica" title="Ars Technica" xmlUrl="http://feeds.arstechnica.com/arstechnica/index/" htmlUrl="https://arstechnica.com"/>
<outline type="rss" text="Polygon - Full" title="Polygon - Full" xmlUrl="http://www.polygon.com/rss/index.xml" htmlUrl="https://www.polygon.com/"/>
<outline type="rss" text="Road to VR" title="Road to VR" xmlUrl="http://www.roadtovr.com/feed" htmlUrl="https://www.roadtovr.com"/>
@castano
castano / hemicube.cpp
Created June 20, 2014 09:46
Hemicube Integrator
#include "hemicube.h"
#define PACK_HEMICUBES 1
static void get_hemicube_face_normal(int index, Vector3 *forward, Vector3 *left, Vector3 *up) {
// Unwrapped hemicube with positive-Z in the middle.
switch (index) {
case 0: *forward = Vector3(+1, 0, 0); *left = Vector3( 0, 1, 0); break;
@xoofx
xoofx / FileTrackerTest.cs
Created January 15, 2013 14:23
Tracking read and write files by current process using FileTracker available from Microsoft.Build.Utilities.v4.0 assembly
using System.IO;
using Microsoft.Build.Utilities;
namespace TestFileTracker
{
class Program
{
static void Main(string[] args)
{
@misterbrownlee
misterbrownlee / jenkins-notes.md
Created September 12, 2012 18:10
Jenkins setup

I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):

Detailed Instructions

For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.

Install Jenkins Plugins

@rygorous
rygorous / gist:2156668
Last active March 8, 2025 08:06
float->half variants
// float->half variants.
// by Fabian "ryg" Giesen.
//
// I hereby place this code in the public domain, as per the terms of the
// CC0 license:
//
// https://creativecommons.org/publicdomain/zero/1.0/
//
// float_to_half_full: This is basically the ISPC stdlib code, except
// I preserve the sign of NaNs (any good reason not to?)