Vibrators Event

* Implemented missing parts of the event
* Posed chibis and varying clothing states
* Adjusted shader code
This commit is contained in:
LoafyLemon 2022-09-18 17:23:38 +01:00
parent 9a877ebcf6
commit fe8cd58ea1
2 changed files with 204 additions and 132 deletions

File diff suppressed because it is too large Load Diff

View File

@ -20,7 +20,7 @@ init python:
uniform float u_factor;
uniform float u_strength;
""", fragment_functions="""
vec3 CBT(float ctemp) {
vec3 ctemp2rgb(float ctemp) {
mat3 m = (ctemp <= 6500.0) ? mat3(vec3(0.0, -2902.1955373783176, -8257.7997278925690),
vec3(0.0, 1669.5803561666639, 2575.2827530017594),
vec3(1.0, 1.3302673723350029, 1.8993753891711275)) :
@ -30,10 +30,8 @@ init python:
return mix(clamp(vec3(m[0] / (vec3(clamp(ctemp, 1000.0, 40000.0)) + m[1]) + m[2]), vec3(0.0), vec3(1.0)), vec3(1.0), smoothstep(1000.0, 0.0, ctemp));
}
""", fragment_300="""
const float PI2 = 6.2831853071;
float ctemp = mix(1000.0, 40000.0, u_factor);
gl_FragColor = vec4(mix(gl_FragColor.xyz, gl_FragColor.xyz * CBT(ctemp), u_strength), 1.0);
gl_FragColor = vec4(mix(gl_FragColor.xyz, gl_FragColor.xyz * ctemp2rgb(ctemp), u_strength), 1.0);
""")
transform color_temperature(factor=1.0, strength=1.0):