* 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:
@@ -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`
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
@@ -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" }]
|
||||
|
||||
Reference in New Issue
Block a user