|
Blender
V2.93
|
#include <OSL/genclosure.h>#include <OSL/oslclosure.h>#include "kernel/osl/osl_closures.h"#include "kernel/osl/osl_shader.h"#include "util/util_math.h"#include "util/util_param.h"#include "kernel/kernel_types.h"#include "kernel/kernel_compat_cpu.h"#include "kernel/split/kernel_split_data_types.h"#include "kernel/kernel_globals.h"#include "kernel/kernel_montecarlo.h"#include "kernel/kernel_random.h"#include "kernel/closure/alloc.h"#include "kernel/closure/bsdf_util.h"#include "kernel/closure/bsdf_ashikhmin_velvet.h"#include "kernel/closure/bsdf_diffuse.h"#include "kernel/closure/bsdf_microfacet.h"#include "kernel/closure/bsdf_microfacet_multi.h"#include "kernel/closure/bsdf_oren_nayar.h"#include "kernel/closure/bsdf_reflection.h"#include "kernel/closure/bsdf_refraction.h"#include "kernel/closure/bsdf_transparent.h"#include "kernel/closure/bsdf_ashikhmin_shirley.h"#include "kernel/closure/bsdf_toon.h"#include "kernel/closure/bsdf_hair.h"#include "kernel/closure/bsdf_hair_principled.h"#include "kernel/closure/bsdf_principled_diffuse.h"#include "kernel/closure/bsdf_principled_sheen.h"#include "kernel/closure/volume.h"Go to the source code of this file.
Classes | |
| class | PrincipledSheenClosure |
| class | PrincipledHairClosure |
| class | PrincipledClearcoatClosure |
| class | MicrofacetClosure |
| class | MicrofacetFresnelClosure |
| class | MicrofacetGGXFresnelClosure |
| class | MicrofacetGGXAnisoFresnelClosure |
| class | MicrofacetMultiClosure |
| class | MicrofacetMultiGGXClosure |
| class | MicrofacetMultiGGXAnisoClosure |
| class | MicrofacetMultiGGXGlassClosure |
| class | MicrofacetMultiFresnelClosure |
| class | MicrofacetMultiGGXFresnelClosure |
| class | MicrofacetMultiGGXAnisoFresnelClosure |
| class | MicrofacetMultiGGXGlassFresnelClosure |
| class | TransparentClosure |
| class | VolumeAbsorptionClosure |
| class | VolumeHenyeyGreensteinClosure |
Variables | |
| params | N |
| BSDF_CLOSURE_CLASS_BEGIN | ( | AshikhminShirley | , |
| ashikhmin_shirley | , | ||
| MicrofacetBsdf | , | ||
| LABEL_GLOSSY| | LABEL_REFLECT | ||
| ) |
| params params params params BSDF_CLOSURE_CLASS_BEGIN | ( | MicrofacetBeckmann | , |
| microfacet_beckmann | , | ||
| MicrofacetBsdf | , | ||
| LABEL_GLOSSY| | LABEL_REFLECT | ||
| ) |
| params params params BSDF_CLOSURE_CLASS_BEGIN | ( | MicrofacetBeckmannIsotropic | , |
| microfacet_beckmann_isotropic | , | ||
| MicrofacetBsdf | , | ||
| LABEL_GLOSSY| | LABEL_REFLECT | ||
| ) |
| params params params params params params BSDF_CLOSURE_CLASS_BEGIN | ( | MicrofacetBeckmannRefraction | , |
| microfacet_beckmann_refraction | , | ||
| MicrofacetBsdf | , | ||
| LABEL_GLOSSY| | LABEL_TRANSMIT | ||
| ) |
| params params BSDF_CLOSURE_CLASS_BEGIN | ( | MicrofacetGGX | , |
| microfacet_ggx | , | ||
| MicrofacetBsdf | , | ||
| LABEL_GLOSSY| | LABEL_REFLECT | ||
| ) |
| params BSDF_CLOSURE_CLASS_BEGIN | ( | MicrofacetGGXIsotropic | , |
| microfacet_ggx_isotropic | , | ||
| MicrofacetBsdf | , | ||
| LABEL_GLOSSY| | LABEL_REFLECT | ||
| ) |
| params params params params params BSDF_CLOSURE_CLASS_BEGIN | ( | MicrofacetGGXRefraction | , |
| microfacet_ggx_refraction | , | ||
| MicrofacetBsdf | , | ||
| LABEL_GLOSSY| | LABEL_TRANSMIT | ||
| ) |
| params params params params params params params BSDF_CLOSURE_CLASS_BEGIN | ( | PrincipledDiffuse | , |
| principled_diffuse | , | ||
| PrincipledDiffuseBsdf | , | ||
| LABEL_DIFFUSE | |||
| ) |
|
static |
Definition at line 216 of file osl_closures.cpp.
References CLOSURE_FLOAT3_PARAM(), label, and params.
| CCLOSURE_PREPARE | ( | closure_bsdf_microfacet_ggx_aniso_fresnel_prepare | , |
| MicrofacetGGXAnisoFresnelClosure | |||
| ) |
| CCLOSURE_PREPARE | ( | closure_bsdf_microfacet_ggx_fresnel_prepare | , |
| MicrofacetGGXFresnelClosure | |||
| ) |
| CCLOSURE_PREPARE | ( | closure_bsdf_microfacet_multi_ggx_aniso_fresnel_prepare | , |
| MicrofacetMultiGGXAnisoFresnelClosure | |||
| ) |
| CCLOSURE_PREPARE | ( | closure_bsdf_microfacet_multi_ggx_aniso_prepare | , |
| MicrofacetMultiGGXAnisoClosure | |||
| ) |
| CCLOSURE_PREPARE | ( | closure_bsdf_microfacet_multi_ggx_fresnel_prepare | , |
| MicrofacetMultiGGXFresnelClosure | |||
| ) |
| CCLOSURE_PREPARE | ( | closure_bsdf_microfacet_multi_ggx_glass_fresnel_prepare | , |
| MicrofacetMultiGGXGlassFresnelClosure | |||
| ) |
| CCLOSURE_PREPARE | ( | closure_bsdf_microfacet_multi_ggx_glass_prepare | , |
| MicrofacetMultiGGXGlassClosure | |||
| ) |
| CCLOSURE_PREPARE | ( | closure_bsdf_microfacet_multi_ggx_prepare | , |
| MicrofacetMultiGGXClosure | |||
| ) |
| ClosureParam* closure_absorption_params | ( | ) |
Definition at line 970 of file osl_closures.cpp.
| ClosureParam* closure_bsdf_microfacet_ggx_aniso_fresnel_params | ( | ) |
Definition at line 668 of file osl_closures.cpp.
References CLOSURE_FLOAT3_PARAM(), CLOSURE_FLOAT_PARAM(), label, and params.
| ClosureParam* closure_bsdf_microfacet_ggx_fresnel_params | ( | ) |
Definition at line 641 of file osl_closures.cpp.
References CLOSURE_FLOAT3_PARAM(), CLOSURE_FLOAT_PARAM(), label, and params.
| ClosureParam* closure_bsdf_microfacet_multi_ggx_aniso_fresnel_params | ( | ) |
Definition at line 887 of file osl_closures.cpp.
References CLOSURE_FLOAT3_PARAM(), CLOSURE_FLOAT_PARAM(), label, and params.
| ClosureParam* closure_bsdf_microfacet_multi_ggx_aniso_params | ( | ) |
Definition at line 762 of file osl_closures.cpp.
References CLOSURE_FLOAT3_PARAM(), CLOSURE_FLOAT_PARAM(), label, and params.
| ClosureParam* closure_bsdf_microfacet_multi_ggx_fresnel_params | ( | ) |
Definition at line 859 of file osl_closures.cpp.
References CLOSURE_FLOAT3_PARAM(), CLOSURE_FLOAT_PARAM(), label, and params.
| ClosureParam* closure_bsdf_microfacet_multi_ggx_glass_fresnel_params | ( | ) |
Definition at line 923 of file osl_closures.cpp.
References CLOSURE_FLOAT3_PARAM(), CLOSURE_FLOAT_PARAM(), label, and params.
| ClosureParam* closure_bsdf_microfacet_multi_ggx_glass_params | ( | ) |
Definition at line 795 of file osl_closures.cpp.
References CLOSURE_FLOAT3_PARAM(), CLOSURE_FLOAT_PARAM(), label, and params.
| ClosureParam* closure_bsdf_microfacet_multi_ggx_params | ( | ) |
Definition at line 736 of file osl_closures.cpp.
References CLOSURE_FLOAT3_PARAM(), CLOSURE_FLOAT_PARAM(), label, and params.
| ClosureParam* closure_bsdf_microfacet_params | ( | ) |
Definition at line 574 of file osl_closures.cpp.
References CLOSURE_FLOAT3_PARAM(), CLOSURE_FLOAT_PARAM(), label, params, and refract().
| ClosureParam* closure_bsdf_principled_clearcoat_params | ( | ) |
Definition at line 320 of file osl_closures.cpp.
References CLOSURE_FLOAT3_PARAM(), CLOSURE_FLOAT_PARAM(), label, and params.
|
static |
Definition at line 262 of file osl_closures.cpp.
References CLOSURE_FLOAT3_PARAM(), CLOSURE_FLOAT_PARAM(), label, and params.
| ClosureParam* closure_bsdf_transparent_params | ( | ) |
Definition at line 951 of file osl_closures.cpp.
| params CLOSURE_FLOAT3_PARAM | ( | AshikhminShirleyClosure | , |
| params. | T | ||
| ) |
| CLOSURE_FLOAT3_PARAM | ( | AshikhminVelvetClosure | , |
| params. | N | ||
| ) |
| CLOSURE_FLOAT3_PARAM | ( | DiffuseClosure | , |
| params. | N | ||
| ) |
Referenced by bsdf_principled_sheen_params(), closure_bsdf_microfacet_ggx_aniso_fresnel_params(), closure_bsdf_microfacet_ggx_fresnel_params(), closure_bsdf_microfacet_multi_ggx_aniso_fresnel_params(), closure_bsdf_microfacet_multi_ggx_aniso_params(), closure_bsdf_microfacet_multi_ggx_fresnel_params(), closure_bsdf_microfacet_multi_ggx_glass_fresnel_params(), closure_bsdf_microfacet_multi_ggx_glass_params(), closure_bsdf_microfacet_multi_ggx_params(), closure_bsdf_microfacet_params(), closure_bsdf_principled_clearcoat_params(), and closure_bsdf_principled_hair_params().
| params CLOSURE_FLOAT3_PARAM | ( | DiffuseToonClosure | , |
| params. | N | ||
| ) |
| params CLOSURE_FLOAT3_PARAM | ( | GlossyToonClosure | , |
| params. | N | ||
| ) |
| params params params params params params params CLOSURE_FLOAT3_PARAM | ( | HairReflectionClosure | , |
| params. | N | ||
| ) |
| params params params params params params params CLOSURE_FLOAT3_PARAM | ( | HairTransmissionClosure | , |
| params. | N | ||
| ) |
| CLOSURE_FLOAT3_PARAM | ( | OrenNayarClosure | , |
| params. | N | ||
| ) |
| CLOSURE_FLOAT3_PARAM | ( | ReflectionClosure | , |
| params. | N | ||
| ) |
| CLOSURE_FLOAT3_PARAM | ( | RefractionClosure | , |
| params. | N | ||
| ) |
| CLOSURE_FLOAT3_PARAM | ( | TranslucentClosure | , |
| params. | N | ||
| ) |
| params CLOSURE_FLOAT_PARAM | ( | AshikhminShirleyClosure | , |
| params. | alpha_x | ||
| ) |
| CLOSURE_FLOAT_PARAM | ( | AshikhminVelvetClosure | , |
| params. | sigma | ||
| ) |
| params CLOSURE_FLOAT_PARAM | ( | DiffuseToonClosure | , |
| params. | size | ||
| ) |
| params CLOSURE_FLOAT_PARAM | ( | GlossyToonClosure | , |
| params. | size | ||
| ) |
| params params params params params params params CLOSURE_FLOAT_PARAM | ( | HairReflectionClosure | , |
| params. | roughness1 | ||
| ) |
| params params params params params params params CLOSURE_FLOAT_PARAM | ( | HairTransmissionClosure | , |
| params. | roughness1 | ||
| ) |
| params params params params params CLOSURE_FLOAT_PARAM | ( | MicrofacetBeckmannClosure | , |
| params. | alpha_x | ||
| ) |
| params params params params CLOSURE_FLOAT_PARAM | ( | MicrofacetBeckmannIsotropicClosure | , |
| params. | alpha_x | ||
| ) |
| params params params params params params params CLOSURE_FLOAT_PARAM | ( | MicrofacetBeckmannRefractionClosure | , |
| params. | alpha_x | ||
| ) |
| params params params params params params CLOSURE_FLOAT_PARAM | ( | MicrofacetGGXRefractionClosure | , |
| params. | alpha_x | ||
| ) |
| CLOSURE_FLOAT_PARAM | ( | OrenNayarClosure | , |
| params. | roughness | ||
| ) |
Referenced by closure_bsdf_microfacet_ggx_aniso_fresnel_params(), closure_bsdf_microfacet_ggx_fresnel_params(), closure_bsdf_microfacet_multi_ggx_aniso_fresnel_params(), closure_bsdf_microfacet_multi_ggx_aniso_params(), closure_bsdf_microfacet_multi_ggx_fresnel_params(), closure_bsdf_microfacet_multi_ggx_glass_fresnel_params(), closure_bsdf_microfacet_multi_ggx_glass_params(), closure_bsdf_microfacet_multi_ggx_params(), closure_bsdf_microfacet_params(), closure_bsdf_phong_ramp_params(), closure_bsdf_principled_clearcoat_params(), closure_bsdf_principled_hair_params(), and closure_henyey_greenstein_params().
| params params params params params params params params CLOSURE_FLOAT_PARAM | ( | PrincipledDiffuseClosure | , |
| params. | roughness | ||
| ) |
| CLOSURE_FLOAT_PARAM | ( | RefractionClosure | , |
| params. | ior | ||
| ) |
| ClosureParam* closure_henyey_greenstein_params | ( | ) |
Definition at line 997 of file osl_closures.cpp.
References CLOSURE_FLOAT_PARAM(), label, and params.
|
static |
Definition at line 334 of file osl_closures.cpp.
Definition at line 106 of file osl_closures.cpp.
Referenced by libmv::euclidean_resection::AbsoluteOrientation(), PreallocatedMemoryHelper< N >::addChunk(), btUnionFind::allocate(), BKE_mask_spline_project_co(), blinn_specular(), bsdf_ashikhmin_shirley_eval_reflect(), bsdf_ashikhmin_shirley_sample(), bsdf_ashikhmin_velvet_eval_reflect(), bsdf_ashikhmin_velvet_sample(), bsdf_diffuse_eval_reflect(), bsdf_diffuse_sample(), bsdf_microfacet_beckmann_eval_reflect(), bsdf_microfacet_beckmann_eval_transmit(), bsdf_microfacet_beckmann_sample(), bsdf_microfacet_ggx_eval_reflect(), bsdf_microfacet_ggx_eval_transmit(), bsdf_microfacet_ggx_sample(), bsdf_principled_diffuse_eval_reflect(), bsdf_principled_diffuse_sample(), bsdf_principled_hair_sample(), bsdf_principled_sheen_eval_reflect(), bsdf_principled_sheen_sample(), bsdf_reflection_sample(), bsdf_refraction_sample(), bsdf_translucent_eval_transmit(), bsdf_translucent_sample(), bssrdf_setup(), bt_segment_collision(), buildTreeBottomUp(), bump_shadowing_term(), calculate_avg_principled_sheen_brdf(), calculate_principled_diffuse_brdf(), calculate_principled_sheen_brdf(), Freestyle::VecMat::Matrix< T, M, N >::cols(), libmv::ArrayND< T, N >::Contains(), blender::StringRefBase::copy(), Mesh::copy_center_to_motion_step(), create_mesh(), Freestyle::VecMat::Vec< T, N >::dim(), draw_frustum_bound_sphere_calc(), libmv::DrawLine(), ensure_valid_reflection(), LinearQuadPatch::eval(), BicubicPatch::eval(), evaluate_vertex_and_apply_displacement_copy(), evaluate_vertex_and_apply_displacement_interpolate(), PMJ_Generator::extend_sequence_even(), PMJ_Generator::extend_sequence_odd(), blender::compositor::fht_convolve(), fresnel_dielectric(), PMJ_Generator::generate_2D(), PMJ_Generator::generate_sample_point(), PMJ02_Generator::generate_sample_point(), MemoryAllocator< N >::getBytes(), GPU_matrix_bind(), Freestyle::gts_vertex_principal_directions(), Freestyle::VecMat::SquareMatrix< T, N >::identity(), Freestyle::GeomUtils::includePointTriangle(), libmv::InternalReprojectionError(), btMiniSDF::interpolate(), Freestyle::GeomUtils::intersect2dSegPoly(), lattice_foreachScreenVert(), make_orthonormals(), make_orthonormals_tangent(), make_transform_frame(), PMJ_Generator::mark_occupied_strata(), PMJ02_Generator::mark_occupied_strata(), Freestyle::VecMat::Matrix< T, M, N >::Matrix(), array< T, alignment >::mem_allocate(), array< T, alignment >::mem_free(), MemoryAllocator< N >::MemoryAllocator(), mikk_get_normal(), MOD_lineart_chain_feature_lines(), motion_triangle_smooth_normal(), Freestyle::VecMat::Vec< T, N >::normalize(), Freestyle::VecMat::Vec< T, N >::normalizeSafe(), object_inverse_normal_transform(), object_normal_transform(), libmv::ArrayND< T, N >::Offset(), Freestyle::VecMat::Vec< T, N >::operator!=(), Freestyle::VecMat::Matrix< T, M, N >::operator()(), blender::tests::EqualityIntModN< N >::operator()(), blender::tests::HashIntModN< N >::operator()(), Freestyle::VecMat::operator*(), Freestyle::VecMat::Vec< T, N >::operator*(), Freestyle::VecMat::Matrix< T, M, N >::operator*=(), Freestyle::VecMat::Vec< T, N >::operator*=(), Freestyle::VecMat::Matrix< T, M, N >::operator+=(), Freestyle::VecMat::Vec< T, N >::operator+=(), Freestyle::VecMat::Matrix< T, M, N >::operator-=(), Freestyle::VecMat::Vec< T, N >::operator-=(), Freestyle::VecMat::Matrix< T, M, N >::operator/=(), Freestyle::VecMat::Vec< T, N >::operator/=(), Freestyle::VecMat::Vec< T, N >::operator<(), Freestyle::VecMat::operator<<(), Freestyle::VecMat::Matrix< T, M, N >::operator=(), Freestyle::VecMat::Vec< T, N >::operator=(), libmv::Tuple< T, N >::operator==(), Freestyle::VecMat::Vec< T, N >::operator==(), Freestyle::VecMat::Vec< T, N >::operator>(), pdf_uniform_cone(), libmv::PearsonProductMomentCorrelation(), Freestyle::FEdgeXDetector::preProcessFace(), btDeformableContactProjection::reinitialize(), Freestyle::Stroke::Resample(), libmv::resection::Resection(), libmv::Tuple< T, N >::Reset(), btUnionFind::reset(), libmv::ArrayND< T, N >::Resize(), sample_cos_hemisphere(), sample_uniform_cone(), sample_uniform_hemisphere(), QuadDice::scale_factor(), libmv::SelectKeyframesBasedOnGRICAndVariance(), EdgeDice::set_vert(), btSoftBody::setCollisionQuadrature(), shader_bsdf_ao(), shader_bsdf_average_normal(), libmv::ArrayND< T, N >::Size(), iTaSC::WSDLSSolver::solve(), BVHObjectBinning::split(), spot_light_attenuation(), studiolight_lights_eval(), subdiv_accumulate_vertex_normal_and_displacement(), subsurf_calculate_limit_positions(), subsurface_color_bump_blur(), subsurface_scatter_multi_setup(), subsurface_scatter_setup_diffuse_bsdf(), svm_node_closure_bsdf(), svm_node_normal_map(), svm_node_tex_image_box(), Mesh::tessellate(), TEST(), libmv::TEST(), OSLRenderServices::texture(), Freestyle::VecMat::Matrix< T, M, N >::transpose(), triangle_light_pdf(), triangle_smooth_normal(), Freestyle::VecMat::Vec< T, N >::Vec(), Freestyle::VecMat::Matrix< T, M, N >::~Matrix(), and Freestyle::VecMat::Vec< T, N >::~Vec().