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
@-moz-document url-prefix("about:reader") { | |
:root { | |
--mono-font: Fira Code; | |
--fg: rgb(173, 186, 199); | |
--bg: rgb(34, 39, 46); | |
--bg-light: rgb(45, 51, 59); | |
} | |
body { | |
color-scheme: dark !important; |
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
"type" = "yellow" | |
"constant" = "purple" | |
"constant.numeric" = "purple" | |
"constant.character.escape" = "orange" | |
"string" = "olive" | |
"string.regexp" = "blue" | |
"comment" = { fg = "grey0", modifiers = ["italic"] } | |
"variable" = "fg0" | |
"variable.builtin" = "blue" | |
"variable.parameter" = "fg0" |
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
vec3 exposure_offset(vec3 col, float e) { | |
const float RANGE = 4.0; // dynamic exposure range, exponential | |
const float EBLACK = pow(2.0, -RANGE); // min exposure offset | |
const float EWHITE = pow(2.0, RANGE); // max exposure offset | |
const float BLACK = EBLACK / (1.0 + EBLACK); // tonemapped remap values | |
const float WHITE = EWHITE / (1.0 + EWHITE); | |
const float BWNORM = 1.0 / (WHITE - BLACK); | |
e = pow(2.0, e * RANGE); // exposure | |
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
# Everforest (higher contrast variant) | |
# Author: CptPotato | |
# Original Author: | |
# URL: https://github.com/sainnhe/everforest | |
# Filename: autoload/everforest.vim | |
# Author: sainnhe | |
# Email: [email protected] | |
# License: MIT License |
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
// shade four shadow samples independently | |
float4 shade_shadow_4(float4 occluder_depth, float4 receiver_depth, float2 bias) | |
{ | |
return saturate((occluder_depth - receiver_depth - bias.x) / bias.y); | |
} | |
// pcf sampling with 3x3 box blur + bilinear filtering (16 samples) | |
float sample_shadow_3x3(float2 shadow_uv, float2 shadow_res, float ref_depth, float2 bias) | |
{ | |
float2 shadow_pixel = 1.0f / shadow_res; // pixel size |
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
function inject_filter( | |
blacklist, | |
scroll_threshold = 512 | |
) | |
{ | |
let lastscroll = 0; | |
function err(msg) | |
{ | |
document.onscroll = null; |