Initial commit

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-06-29 15:57:38 +03:00
commit f74937bb6a
37 changed files with 7400 additions and 0 deletions

722
assets/hand_l.gltf Normal file

File diff suppressed because one or more lines are too long

722
assets/hand_r.gltf Normal file

File diff suppressed because one or more lines are too long

18
assets/linear_srgb.fs Normal file
View File

@@ -0,0 +1,18 @@
precision mediump float;
varying vec2 fragTexCoord;
varying vec4 fragColor;
uniform sampler2D texture0;
vec3 srgb_to_linear(vec3 c) {
bvec3 cutoff = lessThanEqual(c, vec3(0.04045));
vec3 low = c / 12.92;
vec3 high = pow((c + 0.055) / 1.055, vec3(2.4));
return mix(high, low, vec3(cutoff));
}
void main() {
vec4 c = texture2D(texture0, fragTexCoord) * fragColor;
c.rgb = srgb_to_linear(c.rgb); // decode to linear
gl_FragColor = c;
}