Blender  V3.3
Functions
kernel/osl/shader.cpp File Reference
#include <OSL/oslexec.h>
#include "kernel/device/cpu/compat.h"
#include "kernel/device/cpu/globals.h"
#include "kernel/types.h"
#include "kernel/geom/object.h"
#include "kernel/integrator/state.h"
#include "kernel/osl/closures.h"
#include "kernel/osl/globals.h"
#include "kernel/osl/services.h"
#include "kernel/osl/shader.h"
#include "kernel/util/differential.h"
#include "scene/attribute.h"

Go to the source code of this file.

Functions

static void shaderdata_to_shaderglobals (const KernelGlobalsCPU *kg, ShaderData *sd, const void *state, uint32_t path_flag, OSLThreadData *tdata)
 
static void flatten_surface_closure_tree (ShaderData *sd, uint32_t path_flag, const OSL::ClosureColor *closure, float3 weight=make_float3(1.0f, 1.0f, 1.0f))
 
static void flatten_background_closure_tree (ShaderData *sd, const OSL::ClosureColor *closure, float3 weight=make_float3(1.0f, 1.0f, 1.0f))
 
static void flatten_volume_closure_tree (ShaderData *sd, const OSL::ClosureColor *closure, float3 weight=make_float3(1.0f, 1.0f, 1.0f))
 

Function Documentation

◆ flatten_background_closure_tree()

static void flatten_background_closure_tree ( ShaderData sd,
const OSL::ClosureColor *  closure,
float3  weight = make_float3(1.0f, 1.0f, 1.0f) 
)
static

◆ flatten_surface_closure_tree()

static void flatten_surface_closure_tree ( ShaderData sd,
uint32_t  path_flag,
const OSL::ClosureColor *  closure,
float3  weight = make_float3(1.0f, 1.0f, 1.0f) 
)
static

◆ flatten_volume_closure_tree()

static void flatten_volume_closure_tree ( ShaderData sd,
const OSL::ClosureColor *  closure,
float3  weight = make_float3(1.0f, 1.0f, 1.0f) 
)
static

◆ shaderdata_to_shaderglobals()

static void shaderdata_to_shaderglobals ( const KernelGlobalsCPU kg,
ShaderData sd,
const void state,
uint32_t  path_flag,
OSLThreadData *  tdata 
)
static

Definition at line 76 of file kernel/osl/shader.cpp.

References NULL, PATH_RAY_SHADOW, SD_BACKFACING, state, and TO_VEC3.