changed map colors

This commit is contained in:
milek7
2019-04-02 13:10:36 +02:00
parent 33adffb614
commit 691f0f28b2
6 changed files with 54 additions and 20 deletions

View File

@@ -2,14 +2,7 @@
layout(location = 0) out vec4 out_color;
vec3 hsv2rgb(vec3 c)
{
vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);
vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);
return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);
}
void main()
{
out_color = vec4(hsv2rgb(vec3(time, 1.0, 1.0)), 1.0f);
out_color = vec4(scene_extra, 1.0f);
}