Create/Update assets for version 1.16.5

This commit is contained in:
InventiveBot
2021-01-20 20:01:36 +00:00
parent 01f27a344b
commit e3ecd4b108
5805 changed files with 395857 additions and 93420 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;