Blender  V3.3
Functions
mesh_displace.cpp File Reference
#include "device/device.h"
#include "integrator/shader_eval.h"
#include "scene/mesh.h"
#include "scene/object.h"
#include "scene/scene.h"
#include "scene/shader.h"
#include "util/foreach.h"
#include "util/map.h"
#include "util/progress.h"
#include "util/set.h"

Go to the source code of this file.

Functions

static CCL_NAMESPACE_BEGIN float3 compute_face_normal (const Mesh::Triangle &t, float3 *verts)
 
static int fill_shader_input (const Scene *scene, const Mesh *mesh, const int object_index, device_vector< KernelShaderEvalInput > &d_input)
 
static void read_shader_output (const Scene *scene, Mesh *mesh, const device_vector< float > &d_output)
 

Function Documentation

◆ compute_face_normal()

static CCL_NAMESPACE_BEGIN float3 compute_face_normal ( const Mesh::Triangle t,
float3 verts 
)
static

Definition at line 20 of file mesh_displace.cpp.

References blender::math::cross(), len, make_float3, norm(), t, v1, v2, and verts.

Referenced by GeometryManager::displace().

◆ fill_shader_input()

static int fill_shader_input ( const Scene scene,
const Mesh mesh,
const int  object_index,
device_vector< KernelShaderEvalInput > &  d_input 
)
static

◆ read_shader_output()

static void read_shader_output ( const Scene scene,
Mesh mesh,
const device_vector< float > &  d_output 
)
static