|
Blender V4.3
|
#include "kernel/camera/camera.h"#include "kernel/film/adaptive_sampling.h"#include "kernel/film/light_passes.h"#include "kernel/integrator/intersect_closest.h"#include "kernel/integrator/path_state.h"#include "kernel/sample/pattern.h"#include "kernel/geom/geom.h"Go to the source code of this file.
Functions | |
| CCL_NAMESPACE_BEGIN ccl_device_inline void | bake_jitter_barycentric (ccl_private float &u, ccl_private float &v, float2 rand_filter, const float dudx, const float dudy, const float dvdx, const float dvdy) |
| ccl_device const float2 | bake_offset_towards_center (KernelGlobals kg, const int prim, const float u, const float v) |
| ccl_device bool | integrator_init_from_bake (KernelGlobals kg, IntegratorState state, ccl_global const KernelWorkTile *ccl_restrict tile, ccl_global float *render_buffer, const int x, const int y, const int scheduled_sample) |
| CCL_NAMESPACE_BEGIN ccl_device_inline void bake_jitter_barycentric | ( | ccl_private float & | u, |
| ccl_private float & | v, | ||
| float2 | rand_filter, | ||
| const float | dudx, | ||
| const float | dudy, | ||
| const float | dvdx, | ||
| const float | dvdy ) |
Definition at line 32 of file init_from_bake.h.
References hash_float2_to_float2(), v, float2::x, and float2::y.
Referenced by integrator_init_from_bake().
| ccl_device const float2 bake_offset_towards_center | ( | KernelGlobals | kg, |
| const int | prim, | ||
| const float | u, | ||
| const float | v ) |
Definition at line 58 of file init_from_bake.h.
References clamp(), dot(), fabs(), len, make_float2(), max, min, normalize(), P, reduce_max(), triangle_vertices(), v, and v2.
Referenced by integrator_init_from_bake().
| ccl_device bool integrator_init_from_bake | ( | KernelGlobals | kg, |
| IntegratorState | state, | ||
| ccl_global const KernelWorkTile *ccl_restrict | tile, | ||
| ccl_global float * | render_buffer, | ||
| const int | x, | ||
| const int | y, | ||
| const int | scheduled_sample ) |
Definition at line 105 of file init_from_bake.h.
References __float_as_uint, bake_jitter_barycentric(), bake_offset_towards_center(), camera_direction_from_point(), ccl_global, ccl_optional_struct_init, D, DEVICE_KERNEL_INTEGRATOR_SHADE_BACKGROUND, DEVICE_KERNEL_INTEGRATOR_SHADE_SURFACE, DEVICE_KERNEL_INTEGRATOR_SHADE_SURFACE_MNEE, DEVICE_KERNEL_INTEGRATOR_SHADE_SURFACE_RAYTRACE, differential_make_compact(), differential_zero_compact(), dot(), differential3::dx, differential3::dy, film_need_sample_pixel(), film_pass_pixel_render_buffer(), film_write_pass_float3(), film_write_sample(), film_write_transparent(), FLT_MAX, hash_uint(), integrator_path_init(), integrator_path_init_sorted(), integrator_state_write_isect(), integrator_state_write_ray(), kernel_data, kernel_data_fetch, make_float2(), mix, N, normalize(), Intersection::object, object_fetch_transform(), OBJECT_INVERSE_TRANSFORM, OBJECT_TRANSFORM, P, Ray::P, PASS_UNUSED, path_rng_2D(), path_rng_pixel_init(), path_state_init(), path_state_init_integrator(), PRIMITIVE_TRIANGLE, PRNG_FILTER, PROFILING_INIT, PROFILING_RAY_SETUP, render_buffer, sample, KernelWorkTile::sample_offset, SD_HAS_BUMP, SD_HAS_RAYTRACE, SD_OBJECT_CAUSTICS, SD_OBJECT_TRANSFORM_APPLIED, seed, SHADER_MASK, SHADER_SMOOTH_NORMAL, state, tile, transform_direction(), transform_direction_transposed(), transform_point_auto, triangle_dPdudv(), triangle_point_normal(), triangle_smooth_normal(), v, float2::x, float2::y, and zero_float3().