|
Blender
V2.93
|
#include <string.h>#include "render/colorspace.h"#include "render/mesh.h"#include "render/object.h"#include "render/scene.h"#include "kernel/osl/osl_closures.h"#include "kernel/osl/osl_globals.h"#include "kernel/osl/osl_services.h"#include "kernel/osl/osl_shader.h"#include "util/util_foreach.h"#include "util/util_logging.h"#include "util/util_string.h"#include "kernel/kernel_compat_cpu.h"#include "kernel/split/kernel_split_data_types.h"#include "kernel/kernel_globals.h"#include "kernel/kernel_color.h"#include "kernel/kernel_random.h"#include "kernel/kernel_write_passes.h"#include "kernel/kernel_projection.h"#include "kernel/kernel_differential.h"#include "kernel/kernel_montecarlo.h"#include "kernel/kernel_camera.h"#include "kernel/kernels/cpu/kernel_cpu_image.h"#include "kernel/geom/geom.h"#include "kernel/bvh/bvh.h"#include "kernel/kernel_accumulate.h"#include "kernel/kernel_shader.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 (KernelGlobals *kg, const ShaderData *sd, const OSLGlobals::Attribute &attr, const TypeDesc &type, bool derivatives, void *val) |
| static bool | get_mesh_attribute (KernelGlobals *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 72 of file osl_services.cpp.
References projection_transpose(), and t.
|
static |
Definition at line 66 of file osl_services.cpp.
References projection_transpose(), and t.
Referenced by OSLRenderServices::get_inverse_matrix(), OSLRenderServices::get_matrix(), and set_attribute_matrix().
|
static |
Definition at line 811 of file osl_services.cpp.
References kg, primitive_attribute_matrix(), set_attribute_matrix(), and type.
Referenced by OSLRenderServices::get_attribute().
|
static |
Definition at line 827 of file osl_services.cpp.
References 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 750 of file osl_services.cpp.
References kg, 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().
|
static |
Definition at line 666 of file osl_services.cpp.
References set_attribute_float(), and type.
|
static |
Definition at line 610 of file osl_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().
|
static |
Definition at line 461 of file osl_services.cpp.
References make_float2, set_attribute_float2(), and type.
|
static |
Definition at line 404 of file osl_services.cpp.
References average(), type, TypeFloatArray4(), float2::x, and float2::y.
Referenced by get_object_attribute(), get_primitive_attribute(), and set_attribute_float2().
|
static |
Definition at line 529 of file osl_services.cpp.
References make_float3, set_attribute_float3(), and type.
|
static |
Definition at line 472 of file osl_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 712 of file osl_services.cpp.
References P(), Freestyle::Nature::POINT, and type.
Referenced by OSLRenderServices::get_object_standard_attribute().
|
static |
Definition at line 599 of file osl_services.cpp.
References make_float4, set_attribute_float4(), and type.
|
static |
Definition at line 548 of file osl_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().
|
static |
Definition at line 677 of file osl_services.cpp.
References type.
Referenced by OSLRenderServices::get_background_attribute(), OSLRenderServices::get_object_standard_attribute(), and OSLRenderServices::getmessage().
|
static |
Definition at line 740 of file osl_services.cpp.
References copy_matrix(), and type.
Referenced by get_mesh_attribute().
|
static |
Definition at line 694 of file osl_services.cpp.
References str, type, and OSLRenderServices::u_empty.
Referenced by OSLRenderServices::get_object_standard_attribute().