update resources and localization

This commit is contained in:
QIDI TECH
2024-11-09 14:38:04 +08:00
parent a616ed7278
commit c9ec3da208
73 changed files with 155634 additions and 102254 deletions

View File

@@ -2,20 +2,17 @@
precision highp float;
const vec4 BLACK = vec4(vec3(0.1), 1.0);
const vec4 WHITE = vec4(vec3(1.0), 1.0);
const vec3 BLACK = vec3(0.1);
const vec3 WHITE = vec3(0.9);
const float emission_factor = 0.25;
uniform vec3 world_center;
// x = tainted, y = specular;
varying vec2 intensity;
varying vec3 world_position;
varying vec3 position;
void main()
{
vec3 delta = world_position - world_center;
vec4 color = delta.x * delta.y * delta.z > 0.0 ? BLACK : WHITE;
gl_FragColor = vec4(vec3(intensity.y) + color.rgb * (intensity.x + emission_factor), 1.0);
vec3 color = position.x * position.y * position.z > 0.0 ? BLACK : WHITE;
gl_FragColor = vec4(vec3(intensity.y) + color * (intensity.x + emission_factor), 1.0);
}