|
Blender V4.3
|
#include <workbench_private.hh>
Public Member Functions | |
| MaterialTexture ()=default | |
| MaterialTexture (Object *ob, int material_index) | |
| MaterialTexture (::Image *image, ImageUser *user=nullptr) | |
Public Attributes | |
| const char * | name = nullptr |
| ImageGPUTextures | gpu = {} |
| GPUSamplerState | sampler_state = GPUSamplerState::default_sampler() |
| bool | premultiplied = false |
| bool | alpha_cutoff = false |
Definition at line 183 of file workbench_private.hh.
|
default |
Definition at line 63 of file workbench_materials.cc.
References BKE_image_get_gpu_material_texture(), BLI_assert_msg, ED_object_get_active_image(), ELEM, NodeTexImage::extension, GPU_SAMPLER_EXTEND_MODE_CLAMP_TO_BORDER, GPU_SAMPLER_EXTEND_MODE_EXTEND, GPU_SAMPLER_EXTEND_MODE_MIRRORED_REPEAT, GPU_SAMPLER_EXTEND_MODE_REPEAT, GPU_SAMPLER_FILTERING_LINEAR, IMA_ALPHA_CHANNEL_PACKED, IMA_ALPHA_IGNORE, IMA_ALPHA_PREMUL, NodeTexEnvironment::interpolation, NodeTexImage::interpolation, SH_NODE_TEX_ENVIRONMENT, SH_NODE_TEX_IMAGE, SHD_IMAGE_EXTENSION_CLIP, SHD_IMAGE_EXTENSION_EXTEND, SHD_IMAGE_EXTENSION_MIRROR, SHD_IMAGE_EXTENSION_REPEAT, and SHD_INTERP_CLOSEST.
| blender::workbench::MaterialTexture::MaterialTexture | ( | ::Image * | image, |
| ImageUser * | user = nullptr ) |
Definition at line 116 of file workbench_materials.cc.
References BKE_image_get_gpu_material_texture(), ELEM, IMA_ALPHA_CHANNEL_PACKED, IMA_ALPHA_IGNORE, and IMA_ALPHA_PREMUL.
| bool blender::workbench::MaterialTexture::alpha_cutoff = false |
Definition at line 188 of file workbench_private.hh.
| ImageGPUTextures blender::workbench::MaterialTexture::gpu = {} |
Definition at line 185 of file workbench_private.hh.
Referenced by blender::workbench::SceneResources::init(), and blender::workbench::ObjectState::ObjectState().
| const char* blender::workbench::MaterialTexture::name = nullptr |
Definition at line 184 of file workbench_private.hh.
Referenced by blender::workbench::SceneResources::init().
| bool blender::workbench::MaterialTexture::premultiplied = false |
Definition at line 187 of file workbench_private.hh.
| GPUSamplerState blender::workbench::MaterialTexture::sampler_state = GPUSamplerState::default_sampler() |
Definition at line 186 of file workbench_private.hh.
Referenced by blender::workbench::ObjectState::ObjectState().