Skip to content

Analytical derivative trait #360

@Azorlogh

Description

@Azorlogh

It would be useful to have an extra trait called DerivativeFn that computes the analytical derivative for noise functions that support them.

trait DerivativeFn<T, const DIM: usize> {
	fn get_derivative(&self, point: [T; DIM]) -> [T; DIM];
}

One such use case is for generating more realistic terrain, as in https://iquilezles.org/articles/morenoise/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions