|
Blender V5.0
|
#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 187 of file workbench_private.hh.
|
default |
References MaterialTexture().
Referenced by MaterialTexture(), MaterialTexture(), and MaterialTexture().
| blender::workbench::MaterialTexture::MaterialTexture | ( | Object * | ob, |
| int | material_index ) |
Definition at line 39 of file workbench_materials.cc.
References alpha_cutoff, Image::alpha_mode, BKE_image_get_gpu_material_texture(), BLI_assert_msg, ED_object_get_active_image(), ELEM, NodeTexImage::extension, gpu, 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, Image::id, IMA_ALPHA_CHANNEL_PACKED, IMA_ALPHA_IGNORE, IMA_ALPHA_PREMUL, NodeTexEnvironment::interpolation, NodeTexImage::interpolation, MaterialTexture(), name, ID::name, premultiplied, sampler_state, 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 92 of file workbench_materials.cc.
References alpha_cutoff, Image::alpha_mode, BKE_image_get_gpu_material_texture(), ELEM, gpu, Image::id, IMA_ALPHA_CHANNEL_PACKED, IMA_ALPHA_IGNORE, IMA_ALPHA_PREMUL, MaterialTexture(), name, ID::name, and premultiplied.
| bool blender::workbench::MaterialTexture::alpha_cutoff = false |
Definition at line 192 of file workbench_private.hh.
Referenced by MaterialTexture(), and MaterialTexture().
| ImageGPUTextures blender::workbench::MaterialTexture::gpu = {} |
Definition at line 189 of file workbench_private.hh.
Referenced by MaterialTexture(), and MaterialTexture().
| const char* blender::workbench::MaterialTexture::name = nullptr |
Definition at line 188 of file workbench_private.hh.
Referenced by MaterialTexture(), and MaterialTexture().
| bool blender::workbench::MaterialTexture::premultiplied = false |
Definition at line 191 of file workbench_private.hh.
Referenced by MaterialTexture(), and MaterialTexture().
| GPUSamplerState blender::workbench::MaterialTexture::sampler_state = GPUSamplerState::default_sampler() |
Definition at line 190 of file workbench_private.hh.
Referenced by MaterialTexture().