This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Content Creation
Materials
Unigine Material Library
Tutorials
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.

grass_base

A grass_base material is used to create realistic animated grass, plants and flowers. It is applied to ObjectGrass objects.

States

States

Material editor, States tab.

Passes

Options

Shape

Specifies the way to render the grass geometry:

  • Default - grass quads are rendered as a plain geometry and are turned randomly
  • Billboard - grass quads are rendered as billboards that always face the camera
  • Clutter - grass quads are rendered as clutter objects lying flat on the ground

Animation

Enables animation for objects (e.g. for plants swinging in the wind). Available modes:

  • Skip - animation is disabled.
  • Default - standard animation is enabled.
  • Field - standard animation is enabled. Besides, objects are also influenced by the Field Animation node.

Enabling this option activates additional Animation parameters.

Spacer interaction

Enables interaction with the Field Spacer node.

Color noise

Enables color noise, so the objects will be colored differently according to the spacial color noise based on a 2D texture.

Enabling this option activates an additional Spatial noise texture and Noise parameters.

Ambient light

Disables a world light pass for grass (if an ambient pass is enabled).

Textures

Textures

Material Editor, Textures tab.

Base

Diffuse

Diffuse texture defines the grass shape and color. The texture should contain:

  • 4 grass slots in a row
  • N number of rows (specified in Num textures field)

Basically, 4 columns represent different types of grass. Each column contains N variants of the same grass (thiner, thicker, tangled etc.) These four columns are masked separately.

Samples of grass diffuse textures

A texture is 4-channeled: RGB values store grass diffuse colors, an alpha (A) channel stores transparency values and specifies how the grass will fade at the distance.

Additional

  • Spatial noise - spatial color noise texture
  • Emission - ambient emission texture
Notice
Spatial noise and Emission additional textures are present only if Color noise and Ambient emission options are enabled.

Lightmap

  • Lightmap - light map texture
Notice
Lightmap texture is present only if an Ambient rendering pass is set as LightMap.

Parameters

Parameters available for the material. All of the parameters have set default values, which can be replaced by your own ones. Availability of some parameters depends on the set States field values.

Material Editor, Parameters tab.

Auxiliary

Auxiliary rendering pass parameters:

  • Color - auxiliary rendering pass constant color.
Notice
Auxiliary parameters are present only if Auxiliary rendering pass is set as Default.

Animation

Animation parameters:

Base

Base material parameters:

  • Slope - inclination of grass blades.
  • Shadow - shadow offset.
  • Alpha - grass alpha channel scale.
Notice
Slope and Shadow parameters are present only if the Shape option is set as a Default or Billboard.

Slope

A coefficient to scale the inclination of grass blades. By the neutral value of 0.5 the blades are not inclined at all and oriented upwards. Modifying the value leads to changing of the grass angle of inclination.

Shadow

A coefficient to scale grass shadow offset. The higher the value, the more intense and longer the grass shadow is.

Alpha

A coefficient to scale grass diffuse texture alpha channel. The higher the value, the bigger areas of a texture are rendered.

Ambient

  • Environment - environment lighting scale

Shading

Translucency

A coefficient to scale a translucency level of the material. The higher the value, the more translucent the material is.

Lightmap

  • Scale - lightmap texture scale.

Emission

  • Color - ambient emission color picker
  • Scale - ambient emission texture scale
  • Glow - glow post-processing scale

Noise

  • Transform - spatial noise texture coordinates transformation.
  • Scale - spatial noise texture color transformation.
Last update: 2017-07-03
Build: ()