Blender V4.5
draw_hair.cc File Reference

Contains procedural GPU hair drawing methods. More...

#include "DNA_scene_types.h"
#include "DRW_render.hh"
#include "BLI_math_matrix.h"
#include "BLI_math_vector.h"
#include "DNA_collection_types.h"
#include "DNA_modifier_types.h"
#include "DNA_particle_types.h"
#include "BKE_duplilist.hh"
#include "GPU_batch.hh"
#include "GPU_capabilities.hh"
#include "GPU_material.hh"
#include "GPU_shader.hh"
#include "GPU_texture.hh"
#include "GPU_vertex_buffer.hh"
#include "DRW_gpu_wrapper.hh"
#include "draw_common_c.hh"
#include "draw_context_private.hh"
#include "draw_hair_private.hh"
#include "draw_manager.hh"
#include "draw_shader.hh"
#include "draw_shader_shared.hh"
#include "draw_common.hh"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::draw

Functions

static void drw_hair_particle_cache_update_compute (ParticleHairCache *cache, const int subdiv)
static ParticleHairCachedrw_hair_particle_cache_get (Object *object, ParticleSystem *psys, ModifierData *md, GPUMaterial *gpu_material, int subdiv, int thickness_res)
blender::gpu::VertBufDRW_hair_pos_buffer_get (Object *object, ParticleSystem *psys, ModifierData *md)
void DRW_hair_duplimat_get (const blender::draw::ObjectRef &ob_ref, ParticleSystem *, ModifierData *, float(*dupli_mat)[4])
static ParticleHairCacheblender::draw::hair_particle_cache_get (Object *object, ParticleSystem *psys, ModifierData *md, GPUMaterial *gpu_material, int subdiv, int thickness_res)
gpu::VertBufblender::draw::hair_pos_buffer_get (Scene *scene, Object *object, ParticleSystem *psys, ModifierData *md)
template<typename PassT>
blender::gpu::Batch * blender::draw::hair_sub_pass_setup_implementation (PassT &sub_ps, const Scene *scene, const ObjectRef &ob_ref, ParticleSystem *psys, ModifierData *md, GPUMaterial *gpu_material)
gpu::Batch * blender::draw::hair_sub_pass_setup (PassMain::Sub &sub_ps, const Scene *scene, const ObjectRef &ob_ref, ParticleSystem *psys, ModifierData *md, GPUMaterial *gpu_material=nullptr)

Detailed Description

Contains procedural GPU hair drawing methods.

Definition in file draw_hair.cc.

Function Documentation

◆ DRW_hair_duplimat_get()

◆ drw_hair_particle_cache_get()

ParticleHairCache * drw_hair_particle_cache_get ( Object * object,
ParticleSystem * psys,
ModifierData * md,
GPUMaterial * gpu_material,
int subdiv,
int thickness_res )
static

◆ drw_hair_particle_cache_update_compute()

◆ DRW_hair_pos_buffer_get()