Skip to content

Instantly share code, notes, and snippets.

View Vipitis's full-sized avatar

Jan Vipitis

View GitHub Profile
@Vipitis
Vipitis / system_info.txt
Last active June 19, 2024 16:26
Steam system information
Computer Information:
Manufacturer: MSI
Model: MS-7980
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz
CPU Family: 0x6
@Vipitis
Vipitis / panic_shader2.frag
Created November 3, 2023 23:50
wgpu panic: Semantic error due to switch/case with const
#version 450 core
vec3 i_resolution;
vec4 i_mouse;
float i_time;
float i_time_delta;
int i_frame;
// Shadertoy compatibility, see we can use the same code copied from shadertoy website
@Vipitis
Vipitis / panic_shader.frag
Created October 24, 2023 00:01
naga panic during translation
#version 450 core
vec3 i_resolution;
vec4 i_mouse;
float i_time;
float i_time_delta;
int i_frame;
// Shadertoy compatibility, see we can use the same code copied from shadertoy website
@Vipitis
Vipitis / panic_shader_wgpu.py
Last active October 24, 2023 00:05
wgpu-py shadertoy panic
from wgpu.utils.shadertoy import Shadertoy
# shadertoy source: https://www.shadertoy.com/view/dsGBWR
shader_code = """// step 1: a funciton with an inout input and some other return value
float fn(inout float a) {
a += 0.1;
return 0.2;
}
void mainImage( out vec4 fragColor, in vec2 fragCoord )
@Vipitis
Vipitis / xhairswitch.cfg
Created September 4, 2023 21:29
recoil crosshair switching bind for CS2
//declare crosshairs
alias active "cl_crosshaircolor_r 250; cl_crosshair_recoil true"
alias passive "cl_crosshaircolor_r 50; cl_crosshair_recoil false"
//roll through your options
alias xhair "xhair1";
alias xhair1 "active; alias xhair xhair2"
alias xhair2 "passive; alias xhair xhair1"
//bind