Blender
V3.3
|
#include <string.h>
#include "scene/colorspace.h"
#include "scene/mesh.h"
#include "scene/object.h"
#include "scene/pointcloud.h"
#include "scene/scene.h"
#include "kernel/osl/closures.h"
#include "kernel/osl/globals.h"
#include "kernel/osl/services.h"
#include "kernel/osl/shader.h"
#include "util/foreach.h"
#include "util/log.h"
#include "kernel/device/cpu/compat.h"
#include "kernel/device/cpu/globals.h"
#include "kernel/device/cpu/image.h"
#include "kernel/util/differential.h"
#include "kernel/integrator/state.h"
#include "kernel/integrator/state_flow.h"
#include "kernel/geom/geom.h"
#include "kernel/bvh/bvh.h"
#include "kernel/camera/camera.h"
#include "kernel/camera/projection.h"
#include "kernel/integrator/path_state.h"
#include "kernel/integrator/shader_eval.h"
#include "kernel/util/color.h"
Go to the source code of this file.
Functions | |
static CCL_NAMESPACE_BEGIN void | copy_matrix (OSL::Matrix44 &m, const Transform &tfm) |
static void | copy_matrix (OSL::Matrix44 &m, const ProjectionTransform &tfm) |
static bool | set_attribute_float2 (float2 f[3], TypeDesc type, bool derivatives, void *val) |
static bool | set_attribute_float2 (float2 f, TypeDesc type, bool derivatives, void *val) |
static bool | set_attribute_float3 (float3 f[3], TypeDesc type, bool derivatives, void *val) |
static bool | set_attribute_float3 (float3 f, TypeDesc type, bool derivatives, void *val) |
static bool | set_attribute_float4 (float4 f[3], TypeDesc type, bool derivatives, void *val) |
static bool | set_attribute_float4 (float4 f, TypeDesc type, bool derivatives, void *val) |
static bool | set_attribute_float (float f[3], TypeDesc type, bool derivatives, void *val) |
static bool | set_attribute_float (float f, TypeDesc type, bool derivatives, void *val) |
static bool | set_attribute_int (int i, TypeDesc type, bool derivatives, void *val) |
static bool | set_attribute_string (ustring str, TypeDesc type, bool derivatives, void *val) |
static bool | set_attribute_float3_3 (float3 P[3], TypeDesc type, bool derivatives, void *val) |
static bool | set_attribute_matrix (const Transform &tfm, TypeDesc type, void *val) |
static bool | get_primitive_attribute (const KernelGlobalsCPU *kg, const ShaderData *sd, const OSLGlobals::Attribute &attr, const TypeDesc &type, bool derivatives, void *val) |
static bool | get_mesh_attribute (const KernelGlobalsCPU *kg, const ShaderData *sd, const OSLGlobals::Attribute &attr, const TypeDesc &type, bool derivatives, void *val) |
static bool | get_object_attribute (const OSLGlobals::Attribute &attr, TypeDesc type, bool derivatives, void *val) |
|
static |
Definition at line 63 of file services.cpp.
References projection_transpose(), and t.
|
static |
Definition at line 57 of file services.cpp.
References projection_transpose(), and t.
Referenced by OSLRenderServices::get_inverse_matrix(), OSLRenderServices::get_matrix(), and set_attribute_matrix().
|
static |
Definition at line 805 of file services.cpp.
References primitive_attribute_matrix(), set_attribute_matrix(), and type.
Referenced by OSLRenderServices::get_attribute().
|
static |
Definition at line 821 of file services.cpp.
References data, make_float2, make_float3, make_float4, set_attribute_float(), set_attribute_float2(), set_attribute_float3(), set_attribute_float4(), type, TypeFloat2(), and TypeRGBA().
Referenced by OSLRenderServices::get_attribute().
|
static |
Definition at line 744 of file services.cpp.
References NULL, primitive_surface_attribute_float(), primitive_surface_attribute_float2(), primitive_surface_attribute_float3(), primitive_surface_attribute_float4(), set_attribute_float(), set_attribute_float2(), set_attribute_float3(), set_attribute_float4(), type, TypeFloat2(), and TypeRGBA().
Referenced by OSLRenderServices::get_attribute().
Definition at line 660 of file services.cpp.
References set_attribute_float(), and type.
Definition at line 604 of file services.cpp.
References type, and TypeFloatArray4().
Referenced by OSLRenderServices::get_background_attribute(), get_object_attribute(), OSLRenderServices::get_object_standard_attribute(), get_primitive_attribute(), OSLRenderServices::getmessage(), and set_attribute_float().
Definition at line 455 of file services.cpp.
References make_float2, set_attribute_float2(), and type.
|
static |
Definition at line 398 of file services.cpp.
References average(), type, TypeFloatArray4(), float2::x, and float2::y.
Referenced by get_object_attribute(), get_primitive_attribute(), and set_attribute_float2().
Definition at line 523 of file services.cpp.
References make_float3, set_attribute_float3(), and type.
|
static |
Definition at line 466 of file services.cpp.
References average(), type, TypeFloatArray4(), float3::x, float3::y, and float3::z.
Referenced by OSLRenderServices::get_background_attribute(), get_object_attribute(), OSLRenderServices::get_object_standard_attribute(), get_primitive_attribute(), OSLRenderServices::getmessage(), and set_attribute_float3().
|
static |
Definition at line 706 of file services.cpp.
References P(), Freestyle::Nature::POINT, and type.
Referenced by OSLRenderServices::get_object_standard_attribute().
Definition at line 593 of file services.cpp.
References set_attribute_float4(), type, and zero_float4().
|
static |
Definition at line 542 of file services.cpp.
References average(), float4_to_float3(), type, and TypeFloatArray4().
Referenced by get_object_attribute(), OSLRenderServices::get_object_standard_attribute(), get_primitive_attribute(), and set_attribute_float4().
Definition at line 671 of file services.cpp.
References type.
Referenced by OSLRenderServices::get_background_attribute(), OSLRenderServices::get_object_standard_attribute(), and OSLRenderServices::getmessage().
Definition at line 734 of file services.cpp.
References copy_matrix(), and type.
Referenced by get_mesh_attribute().
|
static |
Definition at line 688 of file services.cpp.
References str, type, and OSLRenderServices::u_empty.
Referenced by OSLRenderServices::get_object_standard_attribute().