Gorilla.Material.Grass

Unit Gorilla.Material.Grass.pas

Classes

Constants

  • const GORILLA_GLSL_DEFINE_GRASS : string = "GRASS";

TGorillaGrassMaterial

The grass material implements a shader which applies a texture to billboard elements built with TGorillaBillboard component. The shader also moves vertices less than 0.0 on x and z axis by sin and cos functions to simulate some kind of waving grass. Those waving mechanism can be manipulated by the Speed and Amplitude value.

Ancestors

Members

Fields

Methods

Properties

TGorillaGrassMaterialSource

The grass material source implements a shader which applies a texture to billboard elements built with TGorillaBillboard component. The shader also moves vertices less than 0.0 on x and z axis by sin and cos functions to simulate some kind of waving grass. Those waving mechanism can be manipulated by the Speed and Amplitude value.

Remarks

By the bitmap-pool it is possible to declare multiple textures for more variety in billboard element display. In most cases grass with a single texture do not look very realistic.

Ancestors

Members

Methods

Properties