![]() |
Divide Framework 0.1
A free and open-source 3D Framework under heavy development
|
#include <Material.h>
Classes | |
struct | Overrides |
Public Member Functions | |
PROPERTY_R (FColour4, baseColour, DefaultColours::WHITE) | |
PROPERTY_RW (FColour3, specular, DefaultColours::BLACK) | |
PROPERTY_RW (FColour3, emissive, DefaultColours::BLACK) | |
PROPERTY_RW (FColour3, ambient, DefaultColours::BLACK) | |
PROPERTY_RW (SpecularGlossiness, specGloss) | |
PROPERTY_RW (F32, shininess, 0.f) | |
PROPERTY_RW (F32, metallic, 0.f) | |
PROPERTY_RW (F32, roughness, 0.5f) | |
PROPERTY_RW (F32, occlusion, 1.0f) | |
PROPERTY_RW (F32, parallaxFactor, 1.0f) | |
PROPERTY_R (BumpMethod, bumpMethod, BumpMethod::NONE) | |
PROPERTY_R (bool, receivesShadows, true) | |
PROPERTY_R (bool, isStatic, false) | |
PROPERTY_R (bool, isInstanced, false) | |
PROPERTY_R (bool, hardwareSkinning, false) | |
PROPERTY_R (bool, texturesInFragmentStageOnly, true) | |
PROPERTY_R (bool, isRefractive, false) | |
PROPERTY_R (bool, doubleSided, false) | |
PROPERTY_R (ShadingMode, shadingMode, ShadingMode::COUNT) | |
PROPERTY_R (TranslucencySource, translucencySource, TranslucencySource::COUNT) | |
PROPERTY_R (bool, usePackedOMR, false) | |
If the metalness textures has 3 (or 4) channels, those channels are interpreted automatically as R: Occlusion, G: Metalness, B: Roughness. | |
PROPERTY_RW (Overrides, overrides) | |
PROPERTY_R_IW (bool, cullUpdated, false) | |
PROPERTY_R_IW (bool, transparencyUpdated, false) | |
PROPERTY_R_IW (bool, needsNewShader, true) | |
void | hardwareSkinning (bool state) noexcept |
void | texturesInFragmentStageOnly (bool state) noexcept |
void | shadingMode (ShadingMode mode) noexcept |
void | doubleSided (bool state) noexcept |
void | receivesShadows (bool state) noexcept |
void | isRefractive (bool state) noexcept |
void | isStatic (bool state) noexcept |
void | isInstanced (bool state) noexcept |
void | ignoreTexDiffuseAlpha (bool state) noexcept |
void | bumpMethod (BumpMethod newBumpMethod) noexcept |
void | toggleTransparency (bool state) noexcept |
void | useAlphaDiscard (bool state) noexcept |
void | baseColour (const FColour4 &colour) noexcept |
Protected Member Functions | |
void | saveToXML (const std::string &entryName, boost::property_tree::ptree &pt) const |
void | loadFromXML (const std::string &entryName, const boost::property_tree::ptree &pt) |
Friends | |
class | Material |
Definition at line 162 of file Material.h.
|
noexcept |
Definition at line 76 of file MaterialProperties.cpp.
|
noexcept |
Definition at line 81 of file MaterialProperties.cpp.
|
noexcept |
Definition at line 6 of file MaterialProperties.cpp.
|
noexcept |
Definition at line 48 of file MaterialProperties.cpp.
|
noexcept |
Definition at line 41 of file MaterialProperties.cpp.
|
noexcept |
Definition at line 34 of file MaterialProperties.cpp.
|
noexcept |
Definition at line 13 of file MaterialProperties.cpp.
|
noexcept |
Definition at line 27 of file MaterialProperties.cpp.
|
protected |
Definition at line 140 of file MaterialProperties.cpp.
Divide::Material::Properties::PROPERTY_R | ( | bool | , |
doubleSided | , | ||
false | |||
) |
Divide::Material::Properties::PROPERTY_R | ( | bool | , |
hardwareSkinning | , | ||
false | |||
) |
Divide::Material::Properties::PROPERTY_R | ( | bool | , |
isInstanced | , | ||
false | |||
) |
Divide::Material::Properties::PROPERTY_R | ( | bool | , |
isRefractive | , | ||
false | |||
) |
Divide::Material::Properties::PROPERTY_R | ( | bool | , |
isStatic | , | ||
false | |||
) |
Divide::Material::Properties::PROPERTY_R | ( | bool | , |
receivesShadows | , | ||
true | |||
) |
Divide::Material::Properties::PROPERTY_R | ( | bool | , |
texturesInFragmentStageOnly | , | ||
true | |||
) |
Divide::Material::Properties::PROPERTY_R | ( | bool | , |
usePackedOMR | , | ||
false | |||
) |
If the metalness textures has 3 (or 4) channels, those channels are interpreted automatically as R: Occlusion, G: Metalness, B: Roughness.
Divide::Material::Properties::PROPERTY_R | ( | BumpMethod | , |
bumpMethod | , | ||
BumpMethod::NONE | |||
) |
Divide::Material::Properties::PROPERTY_R | ( | FColour4 | , |
baseColour | , | ||
DefaultColours::WHITE | |||
) |
Divide::Material::Properties::PROPERTY_R | ( | ShadingMode | , |
shadingMode | , | ||
ShadingMode::COUNT | |||
) |
Divide::Material::Properties::PROPERTY_R | ( | TranslucencySource | , |
translucencySource | , | ||
TranslucencySource::COUNT | |||
) |
Divide::Material::Properties::PROPERTY_R_IW | ( | bool | , |
cullUpdated | , | ||
false | |||
) |
Divide::Material::Properties::PROPERTY_R_IW | ( | bool | , |
needsNewShader | , | ||
true | |||
) |
Divide::Material::Properties::PROPERTY_R_IW | ( | bool | , |
transparencyUpdated | , | ||
false | |||
) |
Divide::Material::Properties::PROPERTY_RW | ( | F32 | , |
metallic | , | ||
0. | f | ||
) |
Divide::Material::Properties::PROPERTY_RW | ( | F32 | , |
occlusion | , | ||
1. | 0f | ||
) |
Divide::Material::Properties::PROPERTY_RW | ( | F32 | , |
parallaxFactor | , | ||
1. | 0f | ||
) |
Divide::Material::Properties::PROPERTY_RW | ( | F32 | , |
roughness | , | ||
0. | 5f | ||
) |
Divide::Material::Properties::PROPERTY_RW | ( | F32 | , |
shininess | , | ||
0. | f | ||
) |
Divide::Material::Properties::PROPERTY_RW | ( | FColour3 | , |
ambient | , | ||
DefaultColours::BLACK | |||
) |
Divide::Material::Properties::PROPERTY_RW | ( | FColour3 | , |
emissive | , | ||
DefaultColours::BLACK | |||
) |
Divide::Material::Properties::PROPERTY_RW | ( | FColour3 | , |
specular | , | ||
DefaultColours::BLACK | |||
) |
Divide::Material::Properties::PROPERTY_RW | ( | Overrides | , |
overrides | |||
) |
Divide::Material::Properties::PROPERTY_RW | ( | SpecularGlossiness | , |
specGloss | |||
) |
|
noexcept |
Definition at line 20 of file MaterialProperties.cpp.
|
protected |
Definition at line 95 of file MaterialProperties.cpp.
|
noexcept |
Definition at line 88 of file MaterialProperties.cpp.
|
noexcept |
Definition at line 55 of file MaterialProperties.cpp.
|
noexcept |
Definition at line 62 of file MaterialProperties.cpp.
|
noexcept |
Definition at line 69 of file MaterialProperties.cpp.
|
friend |
Definition at line 163 of file Material.h.