Create/Update assets for version 21w03a

This commit is contained in:
InventiveBot
2021-01-20 20:03:30 +00:00
parent 5904432410
commit 4aa9dd8b25
7528 changed files with 429941 additions and 95357 deletions

View File

@@ -1,4 +1,4 @@
#version 120
#version 110
uniform sampler2D DiffuseSampler;
@@ -14,8 +14,8 @@ uniform vec2 WobbleAmount;
vec3 hue(float h)
{
float r = abs(h * 6.0 - 3.0) - 1.0;
float g = 2 - abs(h * 6.0 - 2.0);
float b = 2 - abs(h * 6.0 - 4.0);
float g = 2.0 - abs(h * 6.0 - 2.0);
float b = 2.0 - abs(h * 6.0 - 4.0);
return clamp(vec3(r,g,b), 0.0, 1.0);
}
@@ -29,7 +29,7 @@ vec3 RGBtoHSV(vec3 rgb) {
float min = min(rgb.r, min(rgb.g, rgb.b));
float c = hsv.z - min;
if (c != 0)
if (c != 0.0)
{
hsv.y = c / hsv.z;
vec3 delta = (hsv.z - rgb) / c;