Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

9.9 KB
Raw Blame
// Generated by tools/gen.sh from Blender's own API (tools/dump.py). Don't edit: regenerate.
import type * as H from "../../types";
import type * as M from "../../mathutils";
import type * as R from "../rna";
import type * as E from "../enums";
import type * as P from "../py";

/** The Blender noise module. */
export interface Api {
  /**
   * Returns cell noise value at the specified position.
   * @returns The cell noise value.
   * @param position The position to evaluate the cell noise at.
   */
  cell(position: H.In<M.VectorLike>): H.Ref<number>;
  /**
   * Returns cell noise vector at the specified position.
   * @returns The cell noise vector.
   * @param position The position to evaluate the cell noise at.
   */
  cell_vector(position: H.In<M.VectorLike>): H.Remote<M.Vector>;
  /**
   * Returns the fractal Brownian motion (fBm) noise value from the noise basis at the specified position.
   * @returns The fractal Brownian motion noise value.
   * @param position The position to evaluate the selected noise function.
   * @param H The fractal increment parameter.
   * @param lacunarity The gap between successive frequencies.
   * @param octaves The number of different noise frequencies used.
   */
  fractal(position: H.In<M.VectorLike>, H: H.In<number>, lacunarity: H.In<number>, octaves: H.In<number>, kw?: {
    /** A noise basis string. */
    noise_basis?: H.In<"BLENDER" | "PERLIN_ORIGINAL" | "PERLIN_NEW" | "VORONOI_F1" | "VORONOI_F2" | "VORONOI_F3" | "VORONOI_F4" | "VORONOI_F2F1" | "VORONOI_CRACKLE" | "CELLNOISE">;
  }): H.Ref<number>;
  /**
   * Returns the heterogeneous terrain value from the noise basis at the specified position.
   * @returns The heterogeneous terrain value.
   * @param position The position to evaluate the selected noise function.
   * @param H The fractal dimension of the roughest areas.
   * @param lacunarity The gap between successive frequencies.
   * @param octaves The number of different noise frequencies used.
   * @param offset The height of the terrain above 'sea level'.
   */
  hetero_terrain(position: H.In<M.VectorLike>, H: H.In<number>, lacunarity: H.In<number>, octaves: H.In<number>, offset: H.In<number>, kw?: {
    /** A noise basis string. */
    noise_basis?: H.In<"BLENDER" | "PERLIN_ORIGINAL" | "PERLIN_NEW" | "VORONOI_F1" | "VORONOI_F2" | "VORONOI_F3" | "VORONOI_F4" | "VORONOI_F2F1" | "VORONOI_CRACKLE" | "CELLNOISE">;
  }): H.Ref<number>;
  /**
   * Returns hybrid multifractal value from the noise basis at the specified position.
   * @returns The hybrid multifractal value.
   * @param position The position to evaluate the selected noise function.
   * @param H The fractal dimension of the roughest areas.
   * @param lacunarity The gap between successive frequencies.
   * @param octaves The number of different noise frequencies used.
   * @param offset The height of the terrain above 'sea level'.
   * @param gain Scaling applied to the values.
   */
  hybrid_multi_fractal(position: H.In<M.VectorLike>, H: H.In<number>, lacunarity: H.In<number>, octaves: H.In<number>, offset: H.In<number>, gain: H.In<number>, kw?: {
    /** A noise basis string. */
    noise_basis?: H.In<"BLENDER" | "PERLIN_ORIGINAL" | "PERLIN_NEW" | "VORONOI_F1" | "VORONOI_F2" | "VORONOI_F3" | "VORONOI_F4" | "VORONOI_F2F1" | "VORONOI_CRACKLE" | "CELLNOISE">;
  }): H.Ref<number>;
  /**
   * Returns multifractal noise value from the noise basis at the specified position.
   * @returns The multifractal noise value.
   * @param position The position to evaluate the selected noise function.
   * @param H Determines the highest fractal dimension.
   * @param lacunarity The gap between successive frequencies.
   * @param octaves The number of different noise frequencies used.
   */
  multi_fractal(position: H.In<M.VectorLike>, H: H.In<number>, lacunarity: H.In<number>, octaves: H.In<number>, kw?: {
    /** A noise basis string. */
    noise_basis?: H.In<"BLENDER" | "PERLIN_ORIGINAL" | "PERLIN_NEW" | "VORONOI_F1" | "VORONOI_F2" | "VORONOI_F3" | "VORONOI_F4" | "VORONOI_F2F1" | "VORONOI_CRACKLE" | "CELLNOISE">;
  }): H.Ref<number>;
  /**
   * Returns noise value from the noise basis at the position specified.
   * @returns The noise value.
   * @param position The position to evaluate the selected noise function.
   */
  noise(position: H.In<M.VectorLike>, kw?: {
    /** A noise basis string. */
    noise_basis?: H.In<"BLENDER" | "PERLIN_ORIGINAL" | "PERLIN_NEW" | "VORONOI_F1" | "VORONOI_F2" | "VORONOI_F3" | "VORONOI_F4" | "VORONOI_F2F1" | "VORONOI_CRACKLE" | "CELLNOISE">;
  }): H.Ref<number>;
  /**
   * Returns the noise vector from the noise basis at the specified position.
   * @returns The noise vector.
   * @param position The position to evaluate the selected noise function.
   */
  noise_vector(position: H.In<M.VectorLike>, kw?: {
    /** A noise basis string. */
    noise_basis?: H.In<"BLENDER" | "PERLIN_ORIGINAL" | "PERLIN_NEW" | "VORONOI_F1" | "VORONOI_F2" | "VORONOI_F3" | "VORONOI_F4" | "VORONOI_F2F1" | "VORONOI_CRACKLE" | "CELLNOISE">;
  }): H.Remote<M.Vector>;
  /**
   * Returns a random number in the range [0, 1).
   * @returns The random number.
   */
  random(...args: any[]): H.Ref<number>;
  /**
   * Returns a unit vector with random entries.
   * @returns The random unit vector.
   */
  random_unit_vector(kw?: {
    /** The size of the vector to be produced, in the range [2, 4]. */
    size?: H.In<number>;
  }): H.Remote<M.Vector>;
  /**
   * Returns a vector with random entries in the range (-1, 1).
   * @returns The random vector.
   */
  random_vector(kw?: {
    /** The size of the vector to be produced, must be 2 or greater. */
    size?: H.In<number>;
  }): H.Remote<M.Vector>;
  /**
   * Returns ridged multifractal value from the noise basis at the specified position.
   * @returns The ridged multifractal value.
   * @param position The position to evaluate the selected noise function.
   * @param H The fractal dimension of the roughest areas.
   * @param lacunarity The gap between successive frequencies.
   * @param octaves The number of different noise frequencies used.
   * @param offset The height of the terrain above 'sea level'.
   * @param gain Scaling applied to the values.
   */
  ridged_multi_fractal(position: H.In<M.VectorLike>, H: H.In<number>, lacunarity: H.In<number>, octaves: H.In<number>, offset: H.In<number>, gain: H.In<number>, kw?: {
    /** A noise basis string. */
    noise_basis?: H.In<"BLENDER" | "PERLIN_ORIGINAL" | "PERLIN_NEW" | "VORONOI_F1" | "VORONOI_F2" | "VORONOI_F3" | "VORONOI_F4" | "VORONOI_F2F1" | "VORONOI_CRACKLE" | "CELLNOISE">;
  }): H.Ref<number>;
  /**
   * Sets the random seed used for random_unit_vector, random_vector, and random.
   * @param seed Seed used for the random generator. When seed is zero, the current time will be used instead.
   */
  seed_set(seed: H.In<number>): H.Ref<void>;
  /**
   * Returns the turbulence value from the noise basis at the specified position.
   * @returns The turbulence value.
   * @param position The position to evaluate the selected noise function.
   * @param octaves The number of different noise frequencies used.
   * @param hard Specifies whether returned turbulence is hard (sharp transitions) or soft (smooth transitions).
   */
  turbulence(position: H.In<M.VectorLike>, octaves: H.In<number>, hard: H.In<boolean>, kw?: {
    /** A noise basis string. */
    noise_basis?: H.In<"BLENDER" | "PERLIN_ORIGINAL" | "PERLIN_NEW" | "VORONOI_F1" | "VORONOI_F2" | "VORONOI_F3" | "VORONOI_F4" | "VORONOI_F2F1" | "VORONOI_CRACKLE" | "CELLNOISE">;
    /** The amplitude scaling factor. */
    amplitude_scale?: H.In<number>;
    /** The frequency scaling factor. */
    frequency_scale?: H.In<number>;
  }): H.Ref<number>;
  /**
   * Returns the turbulence vector from the noise basis at the specified position.
   * @returns The turbulence vector.
   * @param position The position to evaluate the selected noise function.
   * @param octaves The number of different noise frequencies used.
   * @param hard Specifies whether returned turbulence is hard (sharp transitions) or soft (smooth transitions).
   */
  turbulence_vector(position: H.In<M.VectorLike>, octaves: H.In<number>, hard: H.In<boolean>, kw?: {
    /** A noise basis string. */
    noise_basis?: H.In<"BLENDER" | "PERLIN_ORIGINAL" | "PERLIN_NEW" | "VORONOI_F1" | "VORONOI_F2" | "VORONOI_F3" | "VORONOI_F4" | "VORONOI_F2F1" | "VORONOI_CRACKLE" | "CELLNOISE">;
    /** The amplitude scaling factor. */
    amplitude_scale?: H.In<number>;
    /** The frequency scaling factor. */
    frequency_scale?: H.In<number>;
  }): H.Remote<M.Vector>;
  /**
   * Returns variable lacunarity noise value, a distorted variety of noise, from noise type 1 distorted by noise type 2 at the specified position.
   * @returns The variable lacunarity noise value.
   * @param position The position to evaluate the selected noise function.
   * @param distortion The amount of distortion.
   */
  variable_lacunarity(position: H.In<M.VectorLike>, distortion: H.In<number>, kw?: {
    /** A noise type string. */
    noise_type1?: H.In<"BLENDER" | "PERLIN_ORIGINAL" | "PERLIN_NEW" | "VORONOI_F1" | "VORONOI_F2" | "VORONOI_F3" | "VORONOI_F4" | "VORONOI_F2F1" | "VORONOI_CRACKLE" | "CELLNOISE">;
    /** A noise type string. */
    noise_type2?: H.In<"BLENDER" | "PERLIN_ORIGINAL" | "PERLIN_NEW" | "VORONOI_F1" | "VORONOI_F2" | "VORONOI_F3" | "VORONOI_F4" | "VORONOI_F2F1" | "VORONOI_CRACKLE" | "CELLNOISE">;
  }): H.Ref<number>;
  /**
   * Returns a list of distances to the four closest features and their locations.
   * @returns A list of distances to the four closest features and their locations.
   * @param position The position to evaluate the selected noise function.
   */
  voronoi(position: H.In<M.VectorLike>, kw?: {
    /** A distance metric string. */
    distance_metric?: H.In<"DISTANCE" | "DISTANCE_SQUARED" | "MANHATTAN" | "CHEBYCHEV" | "MINKOVSKY" | "MINKOVSKY_HALF" | "MINKOVSKY_FOUR">;
    /** The exponent for Minkowski distance metric. */
    exponent?: H.In<number>;
  }): H.Ref<(number[] | M.Vector[])[]>;
}