New node: Sample Gradient

This commit is contained in:
Keavon Chambers
2025-04-12 04:19:46 -07:00
parent c156c0a4ce
commit a8a5a1f3fd
3 changed files with 34 additions and 11 deletions

View File

@@ -1388,15 +1388,7 @@ async fn jitter_points(_: impl Ctx, vector_data: VectorDataTable, #[default(5.)]
}
#[node_macro::node(category("Vector"), path(graphene_core::vector))]
async fn morph(
_: impl Ctx,
source: VectorDataTable,
#[expose] target: VectorDataTable,
#[range((0., 1.))]
#[default(0.5)]
time: Fraction,
#[min(0.)] start_index: IntegerCount,
) -> VectorDataTable {
async fn morph(_: impl Ctx, source: VectorDataTable, #[expose] target: VectorDataTable, #[default(0.5)] time: Fraction, #[min(0.)] start_index: IntegerCount) -> VectorDataTable {
let time = time.clamp(0., 1.);
let source_alpha_blending = source.one_instance().alpha_blending;