glscene

 

TGLMaterial

Page history last edited by skinhat 4 yrs ago

Holds a texture. GLScene objects (eg a sphere) have a material property (type TGLMaterial) and is used to assign a texture to an object. The TGLMaterial has properties for linking a material to a material in a material library (materiallibrary and libmaterialname). Refer to the article about assigning textures. TGLMaterial also has properties for specifying the color of a non textured material and how a texture is blended.

For information about loading a texture refer to the loading a texture article. To change an objects color refer to the [Articles.ColorSetting|setting a GLScene objects color] article. For changing a textures transprancy refer to making a texture transparent. For information about superblack transparency refer to using superblack transparency.

Important TGLMaterial properties:

texture TGLTexture: Property that holds the texture

frontproperties TGLFaceProperties: Used to define the color or a material and define material transparency

blendingmode TBlendingMode: Used to specify if the material is opaque or transparent

materiallibrary TGLMaterialLibrary: Is the material library used if the material comes from the material library

libmaterialname: Name of the material in the material library if the material library is used

Unit: GLTexture

Descends from TGLUpdateAbleObject.

Comments (0)

You don't have permission to comment on this page.