|
Blender V5.3
|
#include <workbench_private.hh>
Public Member Functions | |
| Material ()=default | |
| Material (float3 color) | |
| Material (blender::Object &ob, bool random=false) | |
| Material (blender::Material &mat) | |
| bool | is_transparent () |
Static Public Member Functions | |
| static uint32_t | pack_data (float metallic, float roughness, float alpha) |
Public Attributes | |
| float3 | base_color = float3(0) |
| uint | packed_data = 0 |
Definition at line 118 of file workbench_private.hh.
|
default |
Referenced by blender::workbench::SceneState::init(), Material(), and Material().
|
inline |
Definition at line 124 of file workbench_private.hh.
References base_color, Material(), pack_data(), and packed_data.
| blender::workbench::Material::Material | ( | blender::Object & | ob, |
| bool | random = false ) |
Definition at line 27 of file workbench_materials.cc.
References base_color, blender::BLI_ghashutil_strhash_p_murmur(), blender::BLI_hash_int_01(), blender::Object::color, blender::Library::filepath, hash, blender::hsv_to_rgb_v(), blender::Object::id, blender::IMB_colormanagement_rec709_to_scene_linear(), blender::ID::lib, blender::ID::name, pack_data(), and packed_data.
|
inline |
Definition at line 127 of file workbench_private.hh.
References base_color, Material(), pack_data(), and packed_data.
|
inline |
Definition at line 137 of file workbench_private.hh.
References packed_data.
|
inlinestatic |
Definition at line 143 of file workbench_private.hh.
References pack_data(), sqrtf, and blender::unit_float_to_uchar_clamp().
Referenced by Material(), Material(), Material(), and pack_data().
Definition at line 119 of file workbench_private.hh.
Referenced by Material(), Material(), and Material().
| uint blender::workbench::Material::packed_data = 0 |
Definition at line 121 of file workbench_private.hh.
Referenced by is_transparent(), Material(), Material(), and Material().