* SHAPE nodes: Polygon, Ellipse, Capsule

* clean up type hints
* checker2 function
* cleaner defaults for meta: rgb
* sdf vars explained better
* rgb meta requires no defaults for use (255, 255, 255, 255)
This commit is contained in:
Alexander G. Morano
2025-08-14 22:31:40 -04:00
parent a87cbca804
commit 614c97c290
4 changed files with 15 additions and 3 deletions
+8
View File
@@ -44,6 +44,14 @@ Please consider sponsoring me if you enjoy the results of my work, code or docum
## UPDATES
**2025/08/14** @1.1.40:
* SHAPE nodes: Polygon, Ellipse, Capsule
* clean up type hints
* checker2 function
* cleaner defaults for meta: rgb
* sdf vars explained better
* rgb meta requires no defaults for use (255, 255, 255, 255)
**2025/07/13** @1.1.39:
* fix for first enum not being indexed as `INT`
+3 -2
View File
@@ -18,7 +18,8 @@ uniform bool invert; // | invert the shape
void mainImage(out vec4 fragColor, in vec2 fragCoord)
{
vec2 uv = fragCoord / iResolution.xy;
vec2 rotatedUV = vec_rotation(center - uv, rotate);
float d = sdf_polygon(rotatedUV, size * 0.5, sides);
vec2 rotatedUV = fract(center - uv);
rotatedUV = vec_rotation(rotatedUV - 0.5, rotate) + 0.5;
float d = sdf_polygon( rotatedUV, size, sides);
fragColor = sdf_blend(d, imageA, uv, color, invert);
}
+3
View File
@@ -19,6 +19,9 @@
"NORMAL BLEND (JOV_GL)": "Blend two Normal maps",
"PIXELATE (JOV_GL)": "Pixelate input image",
"POSTERIZE (JOV_GL)": "Reduce the pixel color data range",
"SHAPE: CAPSULE (JOV_GL)": "Create an capsule with adjustable ends",
"SHAPE: ELLIPSE (JOV_GL)": "Create an ellipse (circle too)",
"SHAPE: POLYGON (JOV_GL)": "Create an polygon of 3+ sides",
"SOBEL (JOV_GL)": "Finds the edges of an image",
"TRANSFORM (JOV_GL)": "Move, Rotate, Scale and Tile an image"
}
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "jovi_glsl"
description = "ComfyUI Nodes that integrate GLSL shader support."
version = "1.1.39"
version = "1.1.40"
license = { file = "LICENSE" }
readme = "README.md"
authors = [{ name = "Alexander G. Morano", email = "amorano@gmail.com" }]