This page has been translated automatically.
Programming
Fundamentals
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

FieldHeight Class

Inherits:Field

FieldHeight Class

Members


FieldHeight cast(Field base)

Casts a FieldHeight out of the Field instance.

Arguments

  • Field base - Field instance.

Return value

FieldHeight instance.

FieldHeight cast(Node node)

Casts a FieldHeight out of the Node instance.

Arguments

  • Node node - Node instance.

Return value

FieldHeight instance.

void setAttenuation(float attenuation)

Sets FieldHeight's attenuation factor value.

Attenuation factor indicates the rate of FiledHeight influence attenuation from the center of the object to its edges.

The default value is 1.0f.

Arguments

  • float attenuation - Attenuation factor.

float getAttenuation()

Returns FieldHeight's attenuation factor value.

Attenuation factor indicates the rate of FiledHeight influence attenuation from the center of the object to its edges.

The default value is 1.0f.

Return value

Attenuation factor.

void setImageTexture(Texture texture)

Sets the given texture from Texture instance for FieldHeight.

Arguments

  • Texture texture - Texture instance.

Texture getImageTexture()

Returns the heightmap texture (from GPU) and saves it into given Texture instance.

Return value

Texture instance into which the texture will be saved.

int setImageTextureImage(Image image)

Sets the given image as the heightmap texture of FieldHeight.

Arguments

  • Image image - Image instance with heightmap for FieldHeight.

Return value

1 if the texture is set successfully; otherwise, 0.

int getImageTextureImage(Image image)

Grabs the texture for FieldHeight (already loaded to GPU) and saves it into the given Image instance.

Arguments

  • Image image - Image instance into which the texture will be saved.

Return value

1 if the texture has been grabbed successfully; otherwise, 0.

void setImageTextureName(string name)

Sets the path to the FieldHeight's heightmap texture.

Arguments

  • string name - Path to heightmap texture.

string getImageTextureName()

Returns the path to the FieldHeight's heightmap texture.

Return value

Path to heightmap texture.

void setPower(float power)

Sets FieldHeight's power value. Power is a multiplier for loaded heightmap texture values.

The default value is 1.0f.

Arguments

  • float power - Power value.

float getPower()

Returns FieldHeight's power value. Power is a multiplier for loaded heightmap texture values.

The default value is 1.0f.

Return value

Power value.

void setSize(vec3 size)

Sets the vec3 size vector of the FieldHeight's object.

The default value is (1.0f, 1.0f, 1.0f).

Arguments

  • vec3 size - Size vector (x,y,z), where
    • x value is length of the FieldHeight along X axis (in units),
    • y value is length of the FieldHeight along Y axis (in units),
    • z value is length of the FieldHeight along Z axis (in units)

vec3 getSize()

Returns the vec3 size vector of the FieldHeight's object.

The default value is (1.0f, 1.0f, 1.0f).

Return value

Size vector (x,y,z), where
  • x value is length of the FieldHeight along X axis (in units),
  • y value is length of the FieldHeight along Y axis (in units),
  • z value is length of the FieldHeight along Z axis (in units)

int type()

Last update: 2017-07-03
Build: ()