gthreemeshlambertmaterial

gthreemeshlambertmaterial

Functions

Properties

GrapheneVec3 * color Read / Write
GthreeOperation combine Read / Write
GrapheneVec3 * emissive-color Read / Write
GthreeTexture * env-map Read / Write
GthreeTexture * map Read / Write
float reflectivity Read / Write
float refraction-ratio Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GthreeMaterial
        ╰── GthreeMeshMaterial
            ╰── GthreeMeshLambertMaterial

Includes

#include <gthree/gthree.h>

Description

Functions

gthree_mesh_lambert_material_new ()

GthreeMeshLambertMaterial *
gthree_mesh_lambert_material_new ();

gthree_mesh_lambert_material_set_color ()

void
gthree_mesh_lambert_material_set_color
                               (GthreeMeshLambertMaterial *lambert,
                                const graphene_vec3_t *color);

gthree_mesh_lambert_material_get_color ()

const graphene_vec3_t *
gthree_mesh_lambert_material_get_color
                               (GthreeMeshLambertMaterial *lambert);

gthree_mesh_lambert_material_set_combine ()

void
gthree_mesh_lambert_material_set_combine
                               (GthreeMeshLambertMaterial *lambert,
                                GthreeOperation combine);

gthree_mesh_lambert_material_get_combine ()

GthreeOperation
gthree_mesh_lambert_material_get_combine
                               (GthreeMeshLambertMaterial *lambert);

gthree_mesh_lambert_material_set_emissive_color ()

void
gthree_mesh_lambert_material_set_emissive_color
                               (GthreeMeshLambertMaterial *lambert,
                                const graphene_vec3_t *color);

gthree_mesh_lambert_material_get_emissive_color ()

const graphene_vec3_t *
gthree_mesh_lambert_material_get_emissive_color
                               (GthreeMeshLambertMaterial *lambert);

gthree_mesh_lambert_material_set_env_map ()

void
gthree_mesh_lambert_material_set_env_map
                               (GthreeMeshLambertMaterial *lambert,
                                GthreeTexture *texture);

gthree_mesh_lambert_material_get_env_map ()

GthreeTexture *
gthree_mesh_lambert_material_get_env_map
                               (GthreeMeshLambertMaterial *lambert);

gthree_mesh_lambert_material_set_map ()

void
gthree_mesh_lambert_material_set_map (GthreeMeshLambertMaterial *lambert,
                                      GthreeTexture *texture);

gthree_mesh_lambert_material_get_map ()

GthreeTexture *
gthree_mesh_lambert_material_get_map (GthreeMeshLambertMaterial *lambert);

gthree_mesh_lambert_material_set_reflectivity ()

void
gthree_mesh_lambert_material_set_reflectivity
                               (GthreeMeshLambertMaterial *lambert,
                                float reflectivity);

gthree_mesh_lambert_material_get_reflectivity ()

float
gthree_mesh_lambert_material_get_reflectivity
                               (GthreeMeshLambertMaterial *lambert);

gthree_mesh_lambert_material_set_refraction_ratio ()

void
gthree_mesh_lambert_material_set_refraction_ratio
                               (GthreeMeshLambertMaterial *lambert,
                                float ratio);

gthree_mesh_lambert_material_get_refraction_ratio ()

float
gthree_mesh_lambert_material_get_refraction_ratio
                               (GthreeMeshLambertMaterial *lambert);

Types and Values

GthreeMeshLambertMaterial

typedef struct _GthreeMeshLambertMaterial GthreeMeshLambertMaterial;

GthreeMeshLambertMaterialClass

typedef struct {
  GthreeMeshMaterialClass parent_class;
} GthreeMeshLambertMaterialClass;

Property Details

The “color” property

  “color”                    GrapheneVec3 *

Color.

Owner: GthreeMeshLambertMaterial

Flags: Read / Write


The “combine” property

  “combine”                  GthreeOperation

Combine.

Owner: GthreeMeshLambertMaterial

Flags: Read / Write

Default value: GTHREE_OPERATION_MULTIPLY


The “emissive-color” property

  “emissive-color”           GrapheneVec3 *

Emissive.

Owner: GthreeMeshLambertMaterial

Flags: Read / Write


The “env-map” property

  “env-map”                  GthreeTexture *

Env Map.

Owner: GthreeMeshLambertMaterial

Flags: Read / Write


The “map” property

  “map”                      GthreeTexture *

Map.

Owner: GthreeMeshLambertMaterial

Flags: Read / Write


The “reflectivity” property

  “reflectivity”             float

Reflectivity.

Owner: GthreeMeshLambertMaterial

Flags: Read / Write

Allowed values: [0,1]

Default value: 1


The “refraction-ratio” property

  “refraction-ratio”         float

Refraction Ratio.

Owner: GthreeMeshLambertMaterial

Flags: Read / Write

Allowed values: [0,1]

Default value: 0.98