gthreemeshstandardmaterial

gthreemeshstandardmaterial

Functions

GthreeMeshStandardMaterial * gthree_mesh_standard_material_new ()
void gthree_mesh_standard_material_set_alpha_map ()
GthreeTexture * gthree_mesh_standard_material_get_alpha_map ()
void gthree_mesh_standard_material_set_ao_map ()
GthreeTexture * gthree_mesh_standard_material_get_ao_map ()
void gthree_mesh_standard_material_set_ao_map_intensity ()
float gthree_mesh_standard_material_get_ao_map_intensity ()
void gthree_mesh_standard_material_set_bump_map ()
GthreeTexture * gthree_mesh_standard_material_get_bump_map ()
void gthree_mesh_standard_material_set_bump_scale ()
float gthree_mesh_standard_material_get_bump_scale ()
void gthree_mesh_standard_material_set_color ()
const graphene_vec3_t * gthree_mesh_standard_material_get_color ()
void gthree_mesh_standard_material_set_displacement_bias ()
float gthree_mesh_standard_material_get_displacement_bias ()
void gthree_mesh_standard_material_set_displacement_map ()
GthreeTexture * gthree_mesh_standard_material_get_displacement_map ()
void gthree_mesh_standard_material_set_displacement_scale ()
float gthree_mesh_standard_material_get_displacement_scale ()
void gthree_mesh_standard_material_set_emissive_color ()
const graphene_vec3_t * gthree_mesh_standard_material_get_emissive_color ()
void gthree_mesh_standard_material_set_emissive_intensity ()
float gthree_mesh_standard_material_get_emissive_intensity ()
void gthree_mesh_standard_material_set_emissive_map ()
GthreeTexture * gthree_mesh_standard_material_get_emissive_map ()
void gthree_mesh_standard_material_set_env_map ()
GthreeTexture * gthree_mesh_standard_material_get_env_map ()
void gthree_mesh_standard_material_set_env_map_intensity ()
float gthree_mesh_standard_material_get_env_map_intensity ()
void gthree_mesh_standard_material_set_light_map ()
GthreeTexture * gthree_mesh_standard_material_get_light_map ()
void gthree_mesh_standard_material_set_light_map_intensity ()
float gthree_mesh_standard_material_get_light_map_intensity ()
void gthree_mesh_standard_material_set_map ()
GthreeTexture * gthree_mesh_standard_material_get_map ()
void gthree_mesh_standard_material_set_metalness ()
float gthree_mesh_standard_material_get_metalness ()
void gthree_mesh_standard_material_set_metalness_map ()
GthreeTexture * gthree_mesh_standard_material_get_metalness_map ()
void gthree_mesh_standard_material_set_normal_map ()
GthreeTexture * gthree_mesh_standard_material_get_normal_map ()
void gthree_mesh_standard_material_set_normal_map_scale ()
const graphene_vec2_t * gthree_mesh_standard_material_get_normal_map_scale ()
void gthree_mesh_standard_material_set_normal_map_type ()
GthreeNormalMapType gthree_mesh_standard_material_get_normal_map_type ()
void gthree_mesh_standard_material_set_refraction_ratio ()
float gthree_mesh_standard_material_get_refraction_ratio ()
void gthree_mesh_standard_material_set_roughness ()
float gthree_mesh_standard_material_get_roughness ()
void gthree_mesh_standard_material_set_roughness_map ()
GthreeTexture * gthree_mesh_standard_material_get_roughness_map ()

Properties

GthreeTexture * alpha-map Read / Write
GthreeTexture * ao-map Read / Write
float ao-map-intensity Read / Write
GthreeTexture * bump-map Read / Write
float bump-scale Read / Write
GrapheneVec3 * color Read / Write
float displacement-bias Read / Write
GthreeTexture * displacement-map Read / Write
float displacement-scale Read / Write
GrapheneVec3 * emissive-color Read / Write
float emissive-intensity Read / Write
GthreeTexture * emissive-map Read / Write
GthreeTexture * env-map Read / Write
float env-map-intensity Read / Write
GthreeTexture * light-map Read / Write
float light-map-intensity Read / Write
GthreeTexture * map Read / Write
float metalness Read / Write
GthreeTexture * metalness-map Read / Write
GthreeTexture * normal-map Read / Write
GthreeNormalMapType normal-map-type Read / Write
GrapheneVec2 * normal-scale Read / Write
float refraction-ratio Read / Write
float roughness Read / Write
GthreeTexture * roughness-map Read / Write

Types and Values

Object Hierarchy

    GEnum
    ╰── GthreeNormalMapType
    GObject
    ╰── GthreeMaterial
        ╰── GthreeMeshMaterial
            ╰── GthreeMeshStandardMaterial

Includes

#include <gthree/gthree.h>

Description

Functions

gthree_mesh_standard_material_new ()

GthreeMeshStandardMaterial *
gthree_mesh_standard_material_new ();

gthree_mesh_standard_material_set_alpha_map ()

void
gthree_mesh_standard_material_set_alpha_map
                               (GthreeMeshStandardMaterial *standard,
                                GthreeTexture *texture);

gthree_mesh_standard_material_get_alpha_map ()

GthreeTexture *
gthree_mesh_standard_material_get_alpha_map
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_ao_map ()

void
gthree_mesh_standard_material_set_ao_map
                               (GthreeMeshStandardMaterial *standard,
                                GthreeTexture *texture);

gthree_mesh_standard_material_get_ao_map ()

GthreeTexture *
gthree_mesh_standard_material_get_ao_map
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_ao_map_intensity ()

void
gthree_mesh_standard_material_set_ao_map_intensity
                               (GthreeMeshStandardMaterial *standard,
                                float value);

gthree_mesh_standard_material_get_ao_map_intensity ()

float
gthree_mesh_standard_material_get_ao_map_intensity
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_bump_map ()

void
gthree_mesh_standard_material_set_bump_map
                               (GthreeMeshStandardMaterial *standard,
                                GthreeTexture *texture);

gthree_mesh_standard_material_get_bump_map ()

GthreeTexture *
gthree_mesh_standard_material_get_bump_map
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_bump_scale ()

void
gthree_mesh_standard_material_set_bump_scale
                               (GthreeMeshStandardMaterial *standard,
                                float value);

gthree_mesh_standard_material_get_bump_scale ()

float
gthree_mesh_standard_material_get_bump_scale
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_color ()

void
gthree_mesh_standard_material_set_color
                               (GthreeMeshStandardMaterial *standard,
                                const graphene_vec3_t *color);

gthree_mesh_standard_material_get_color ()

const graphene_vec3_t *
gthree_mesh_standard_material_get_color
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_displacement_bias ()

void
gthree_mesh_standard_material_set_displacement_bias
                               (GthreeMeshStandardMaterial *standard,
                                float value);

gthree_mesh_standard_material_get_displacement_bias ()

float
gthree_mesh_standard_material_get_displacement_bias
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_displacement_map ()

void
gthree_mesh_standard_material_set_displacement_map
                               (GthreeMeshStandardMaterial *standard,
                                GthreeTexture *texture);

gthree_mesh_standard_material_get_displacement_map ()

GthreeTexture *
gthree_mesh_standard_material_get_displacement_map
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_displacement_scale ()

void
gthree_mesh_standard_material_set_displacement_scale
                               (GthreeMeshStandardMaterial *standard,
                                float value);

gthree_mesh_standard_material_get_displacement_scale ()

float
gthree_mesh_standard_material_get_displacement_scale
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_emissive_color ()

void
gthree_mesh_standard_material_set_emissive_color
                               (GthreeMeshStandardMaterial *standard,
                                const graphene_vec3_t *color);

gthree_mesh_standard_material_get_emissive_color ()

const graphene_vec3_t *
gthree_mesh_standard_material_get_emissive_color
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_emissive_intensity ()

void
gthree_mesh_standard_material_set_emissive_intensity
                               (GthreeMeshStandardMaterial *standard,
                                float value);

gthree_mesh_standard_material_get_emissive_intensity ()

float
gthree_mesh_standard_material_get_emissive_intensity
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_emissive_map ()

void
gthree_mesh_standard_material_set_emissive_map
                               (GthreeMeshStandardMaterial *standard,
                                GthreeTexture *texture);

gthree_mesh_standard_material_get_emissive_map ()

GthreeTexture *
gthree_mesh_standard_material_get_emissive_map
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_env_map ()

void
gthree_mesh_standard_material_set_env_map
                               (GthreeMeshStandardMaterial *standard,
                                GthreeTexture *texture);

gthree_mesh_standard_material_get_env_map ()

GthreeTexture *
gthree_mesh_standard_material_get_env_map
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_env_map_intensity ()

void
gthree_mesh_standard_material_set_env_map_intensity
                               (GthreeMeshStandardMaterial *standard,
                                float value);

gthree_mesh_standard_material_get_env_map_intensity ()

float
gthree_mesh_standard_material_get_env_map_intensity
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_light_map ()

void
gthree_mesh_standard_material_set_light_map
                               (GthreeMeshStandardMaterial *standard,
                                GthreeTexture *texture);

gthree_mesh_standard_material_get_light_map ()

GthreeTexture *
gthree_mesh_standard_material_get_light_map
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_light_map_intensity ()

void
gthree_mesh_standard_material_set_light_map_intensity
                               (GthreeMeshStandardMaterial *standard,
                                float value);

gthree_mesh_standard_material_get_light_map_intensity ()

float
gthree_mesh_standard_material_get_light_map_intensity
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_map ()

void
gthree_mesh_standard_material_set_map (GthreeMeshStandardMaterial *standard,
                                       GthreeTexture *texture);

gthree_mesh_standard_material_get_map ()

GthreeTexture *
gthree_mesh_standard_material_get_map (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_metalness ()

void
gthree_mesh_standard_material_set_metalness
                               (GthreeMeshStandardMaterial *standard,
                                float value);

gthree_mesh_standard_material_get_metalness ()

float
gthree_mesh_standard_material_get_metalness
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_metalness_map ()

void
gthree_mesh_standard_material_set_metalness_map
                               (GthreeMeshStandardMaterial *standard,
                                GthreeTexture *texture);

gthree_mesh_standard_material_get_metalness_map ()

GthreeTexture *
gthree_mesh_standard_material_get_metalness_map
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_normal_map ()

void
gthree_mesh_standard_material_set_normal_map
                               (GthreeMeshStandardMaterial *standard,
                                GthreeTexture *texture);

gthree_mesh_standard_material_get_normal_map ()

GthreeTexture *
gthree_mesh_standard_material_get_normal_map
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_normal_map_scale ()

void
gthree_mesh_standard_material_set_normal_map_scale
                               (GthreeMeshStandardMaterial *standard,
                                graphene_vec2_t *scale);

gthree_mesh_standard_material_get_normal_map_scale ()

const graphene_vec2_t *
gthree_mesh_standard_material_get_normal_map_scale
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_normal_map_type ()

void
gthree_mesh_standard_material_set_normal_map_type
                               (GthreeMeshStandardMaterial *standard,
                                GthreeNormalMapType type);

gthree_mesh_standard_material_get_normal_map_type ()

GthreeNormalMapType
gthree_mesh_standard_material_get_normal_map_type
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_refraction_ratio ()

void
gthree_mesh_standard_material_set_refraction_ratio
                               (GthreeMeshStandardMaterial *standard,
                                float ratio);

gthree_mesh_standard_material_get_refraction_ratio ()

float
gthree_mesh_standard_material_get_refraction_ratio
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_roughness ()

void
gthree_mesh_standard_material_set_roughness
                               (GthreeMeshStandardMaterial *standard,
                                float ratio);

gthree_mesh_standard_material_get_roughness ()

float
gthree_mesh_standard_material_get_roughness
                               (GthreeMeshStandardMaterial *standard);

gthree_mesh_standard_material_set_roughness_map ()

void
gthree_mesh_standard_material_set_roughness_map
                               (GthreeMeshStandardMaterial *standard,
                                GthreeTexture *texture);

gthree_mesh_standard_material_get_roughness_map ()

GthreeTexture *
gthree_mesh_standard_material_get_roughness_map
                               (GthreeMeshStandardMaterial *standard);

Types and Values

GthreeMeshStandardMaterial

typedef struct _GthreeMeshStandardMaterial GthreeMeshStandardMaterial;

GthreeMeshStandardMaterialClass

typedef struct {
  GthreeMeshMaterialClass parent_class;
} GthreeMeshStandardMaterialClass;

enum GthreeNormalMapType

Members

GTHREE_NORMAL_MAP_TYPE_TANGENT_SPACE

   

GTHREE_NORMAL_MAP_TYPE_OBJECT_SPACE

   

Property Details

The “alpha-map” property

  “alpha-map”                GthreeTexture *

Alpha map.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write


The “ao-map” property

  “ao-map”                   GthreeTexture *

Ao map.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write


The “ao-map-intensity” property

  “ao-map-intensity”         float

Ao map intensity.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write

Allowed values: [0,10]

Default value: 1


The “bump-map” property

  “bump-map”                 GthreeTexture *

Bump map.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write


The “bump-scale” property

  “bump-scale”               float

Bump scale.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write

Allowed values: [0,10]

Default value: 1


The “color” property

  “color”                    GrapheneVec3 *

Color.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write


The “displacement-bias” property

  “displacement-bias”        float

Displacement bias.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write

Allowed values: [0,10]

Default value: 1


The “displacement-map” property

  “displacement-map”         GthreeTexture *

Displacement map.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write


The “displacement-scale” property

  “displacement-scale”       float

Displacement scale.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write

Allowed values: [0,10]

Default value: 1


The “emissive-color” property

  “emissive-color”           GrapheneVec3 *

Emissive.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write


The “emissive-intensity” property

  “emissive-intensity”       float

Emissive intensity.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write

Allowed values: [0,10]

Default value: 1


The “emissive-map” property

  “emissive-map”             GthreeTexture *

Emissive map.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write


The “env-map” property

  “env-map”                  GthreeTexture *

Env Map.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write


The “env-map-intensity” property

  “env-map-intensity”        float

Env map intensity.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write

Allowed values: [0,10]

Default value: 1


The “light-map” property

  “light-map”                GthreeTexture *

Light map.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write


The “light-map-intensity” property

  “light-map-intensity”      float

Light map intensity.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write

Allowed values: [0,10]

Default value: 1


The “map” property

  “map”                      GthreeTexture *

Map.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write


The “metalness” property

  “metalness”                float

Metalness.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write

Allowed values: [0,1]

Default value: 1


The “metalness-map” property

  “metalness-map”            GthreeTexture *

Metalness map.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write


The “normal-map” property

  “normal-map”               GthreeTexture *

Normal map.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write


The “normal-map-type” property

  “normal-map-type”          GthreeNormalMapType

Normal map type.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write

Default value: GTHREE_NORMAL_MAP_TYPE_TANGENT_SPACE


The “normal-scale” property

  “normal-scale”             GrapheneVec2 *

Normal scale.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write


The “refraction-ratio” property

  “refraction-ratio”         float

Refraction Ratio.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write

Allowed values: [0,1]

Default value: 0.98


The “roughness” property

  “roughness”                float

Roughness.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write

Allowed values: [0,1]

Default value: 1


The “roughness-map” property

  “roughness-map”            GthreeTexture *

Roughness map.

Owner: GthreeMeshStandardMaterial

Flags: Read / Write