Blender  V3.3
Macros | Functions
workbench_materials.c File Reference
#include "workbench_private.h"
#include "BLI_memblock.h"
#include "BKE_image.h"
#include "BKE_node.h"
#include "BLI_dynstr.h"
#include "BLI_hash.h"
#include "DNA_mesh_types.h"
#include "DNA_node_types.h"
#include "GPU_uniform_buffer.h"
#include "ED_uvedit.h"

Go to the source code of this file.

Macros

#define HSV_SATURATION   0.5
 
#define HSV_VALUE   0.8
 

Functions

void workbench_material_ubo_data (WORKBENCH_PrivateData *wpd, Object *ob, Material *mat, WORKBENCH_UBO_Material *data, eV3DShadingColorType color_type)
 
BLI_INLINE Materialworkbench_object_material_get (Object *ob, int mat_nr)
 
BLI_INLINE void workbench_material_get_image (Object *ob, int mat_nr, Image **r_image, ImageUser **r_iuser, eGPUSamplerState *r_sampler)
 
BLI_INLINE bool workbench_material_chunk_select (WORKBENCH_PrivateData *wpd, uint32_t id, uint32_t *r_mat_id)
 
DRWShadingGroupworkbench_material_setup_ex (WORKBENCH_PrivateData *wpd, Object *ob, int mat_nr, eV3DShadingColorType color_type, eWORKBENCH_DataType datatype, bool *r_transp)
 
DRWShadingGroupworkbench_image_setup_ex (WORKBENCH_PrivateData *wpd, Object *ob, int mat_nr, Image *ima, ImageUser *iuser, eGPUSamplerState sampler, eWORKBENCH_DataType datatype)
 

Macro Definition Documentation

◆ HSV_SATURATION

#define HSV_SATURATION   0.5

Definition at line 25 of file workbench_materials.c.

◆ HSV_VALUE

#define HSV_VALUE   0.8

Definition at line 26 of file workbench_materials.c.

Function Documentation

◆ workbench_image_setup_ex()

DRWShadingGroup* workbench_image_setup_ex ( WORKBENCH_PrivateData wpd,
Object ob,
int  mat_nr,
Image ima,
ImageUser iuser,
eGPUSamplerState  sampler,
eWORKBENCH_DataType  datatype 
)

◆ workbench_material_chunk_select()

BLI_INLINE bool workbench_material_chunk_select ( WORKBENCH_PrivateData wpd,
uint32_t  id,
uint32_t r_mat_id 
)

◆ workbench_material_get_image()

BLI_INLINE void workbench_material_get_image ( Object ob,
int  mat_nr,
Image **  r_image,
ImageUser **  r_iuser,
eGPUSamplerState r_sampler 
)

◆ workbench_material_setup_ex()

DRWShadingGroup* workbench_material_setup_ex ( WORKBENCH_PrivateData wpd,
Object ob,
int  mat_nr,
eV3DShadingColorType  color_type,
eWORKBENCH_DataType  datatype,
bool r_transp 
)

◆ workbench_material_ubo_data()

void workbench_material_ubo_data ( WORKBENCH_PrivateData wpd,
Object ob,
Material mat,
WORKBENCH_UBO_Material data,
eV3DShadingColorType  color_type 
)

◆ workbench_object_material_get()

BLI_INLINE Material* workbench_object_material_get ( Object ob,
int  mat_nr 
)