Skip to content

Instantly share code, notes, and snippets.

View Srekel's full-sized avatar

Anders Elfgren Srekel

View GitHub Profile
@Srekel
Srekel / atmosphere_clouds_rendering.md
Created January 2, 2023 14:35 — forked from reinsteam/atmosphere_clouds_rendering.md
A collection of links to various materials on atmosphere / clouds rendering

Atmosphere / Clouds Rendering

Research papers

Atmosphere

  • A fast, simple method to render sky color using gradients maps [[Abad06]]
  • A Framework for the Experimental Comparison of Solar and Skydome Illumination [[Kider14]]
  • A Method for Modeling Clouds based on Atmospheric Fluid Dynamics [[Miyazaki01]]
  • A Physically-Based Night Sky Model [[Jensen01]]
Underneath
----------
Decades after unknown, uncommunicative aliens builds a Dyson sphere around our sun, humans struggle in networks of sprawling underground compounds and tunnels.
The Sun is dead. Surface life is scarce. Nuclear power and hydroponic farms make life livable but radical factions strive for influence at any cost.
The revolutionary organization Union fights for freeing humanity, individualizing people, setting their wills free from the strict confines of their group. You've just volunteered.
Distribute:
@Srekel
Srekel / election.py
Last active January 12, 2019 13:27
Wild predictions for the Swedish election of 2018
import itertools
import os
import operator
import colorama
from colorama import Fore, Back, Style
colorama.init()
#os.system("cls")
class Party:
@Srekel
Srekel / character_state_jumping.lua
Created July 27, 2018 10:02
The jumping state for characters in The Showdown Effect
-- This is the jumping state for characters in The Showdown Effect (Paradox/Arrowhead/Pixeldiet).
-- https://store.steampowered.com/app/204080/The_Showdown_Effect/
-- Uploaded to show how complex player control code can be.
-- In addition to this file there are 34 other states the player character can be in. Thirty four!
-- Judging by file size the jumping state is the third most complicated.
--
-- The purpose of these states is to read the player's input, check the character's current state, and evaluate
-- what should happen next (either do something specific to the state or switch to another state)
--
-- There may be bugs here - this is potentially not the very last version shipped in the game, and the
@Srekel
Srekel / WhitespaceManager.cpp
Created April 3, 2018 07:14
Clang format feature: AligningIgnoresBlankLines (WIP, doesn't work perfectly)
Index: include/clang/Format/Format.h
===================================================================
--- include/clang/Format/Format.h (revision 304556)
+++ include/clang/Format/Format.h (working copy)
@@ -98,6 +98,8 @@
/// \endcode
bool AlignConsecutiveDeclarations;
+ bool AligningIgnoresBlankLines;
+