Blender V4.5
init_from_bake.h File Reference

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 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, const ccl_global KernelWorkTile *ccl_restrict tile, ccl_global float *render_buffer, const int x, const int y, const int scheduled_sample)

Function Documentation

◆ bake_jitter_barycentric()

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 )

◆ bake_offset_towards_center()

ccl_device float2 bake_offset_towards_center ( KernelGlobals kg,
const int prim,
const float u,
const float v )

◆ integrator_init_from_bake()

ccl_device bool integrator_init_from_bake ( KernelGlobals kg,
IntegratorState state,
const ccl_global KernelWorkTile *ccl_restrict tile,
ccl_global float * render_buffer,
const int x,
const int y,
const int scheduled_sample )

Definition at line 102 of file init_from_bake.h.

References __float_as_uint, bake_jitter_barycentric(), bake_offset_towards_center(), camera_direction_from_point(), ccl_device, ccl_global, ccl_optional_struct_init, ccl_restrict, 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_init_from_bake(), 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, object_fetch_transform(), OBJECT_INVERSE_TRANSFORM, OBJECT_TRANSFORM, one_spectrum, 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, 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, x, float2::y, y, and zero_float3().

Referenced by ccl_gpu_kernel_call(), and integrator_init_from_bake().