Gorilla.Material.Default

Unit Gorilla.Material.Default.pas

Classes

Records

Enumerations

  • enum  TGorillaShadingModel  = ( Lambert, Phong, BlinnPhong ) ;

Constants

    Mics. types

    • type PGorillaShaderData = pointer to TGorillaShaderData;

TGorillaDefaultMaterial

Defining a default basic material sourcce allowing to with render lambert / phong / blinnphong shading on basis of a diffuse color texture.

Remarks

The default material renders up to 8 lights of point / directional / spot light type depending on platform and GLES version used.

On Windows platform + OpenGLES v3 (10.3+) the forward renderer can take up to 8 lights.

On Windows platform + OpenGLES v2 (10.1 - 10.2) the forward renderer can take up to 4 lights.

On Android platform + OpenGLES v2 | v3 the forward renderer can take up to 4 lights.

On iOS platform + OpenGLES v2 | v3 the forward renderer can take up to 4 lights.

On MacOS platform + OpenGLES v3 (10.3+) the forward renderer can take up to 8 lights.

On MacOS platform + OpenGLES v2 (10.1 - 10.2) the forward renderer can take up to 4 lights.

Ancestors

Members

Fields

Methods

Properties

TGorillaDefaultMaterialSource

Defining a default basic material sourcce allowing to with render lambert / phong / blinnphong shading on basis of a diffuse color texture.

Remarks

Use this material source as basis for further complex material renderer.

The default material renders up to 8 lights of point / directional / spot light type depending on platform and GLES version used.

On Windows platform + OpenGLES v3 (10.3+) the forward renderer can take up to 8 lights.

On Windows platform + OpenGLES v2 (10.1 - 10.2) the forward renderer can take up to 4 lights.

On Android platform + OpenGLES v2 | v3 the forward renderer can take up to 4 lights.

On iOS platform + OpenGLES v2 | v3 the forward renderer can take up to 4 lights.

On MacOS platform + OpenGLES v3 (10.3+) the forward renderer can take up to 8 lights.

On MacOS platform + OpenGLES v2 (10.1 - 10.2) the forward renderer can take up to 4 lights.

Ancestors

Members

Fields

Methods

Properties