mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-03 01:18:44 +03:00
update resources and localization
This commit is contained in:
@@ -1,21 +1,18 @@
|
||||
#version 140
|
||||
|
||||
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;
|
||||
in vec2 intensity;
|
||||
in vec3 world_position;
|
||||
in vec3 position;
|
||||
|
||||
out vec4 out_color;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec3 delta = world_position - world_center;
|
||||
vec4 color = delta.x * delta.y * delta.z > 0.0 ? BLACK : WHITE;
|
||||
out_color = vec4(vec3(intensity.y) + color.rgb * (intensity.x + emission_factor), 1.0);
|
||||
vec3 color = position.x * position.y * position.z > 0.0 ? BLACK : WHITE;
|
||||
out_color = vec4(vec3(intensity.y) + color * (intensity.x + emission_factor), 1.0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user