Blender
V3.3
|
#include "kernel/camera/camera.h"
#include "kernel/film/accumulate.h"
#include "kernel/film/adaptive_sampling.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 float | bake_clamp_mirror_repeat (float u, float max) |
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 float bake_clamp_mirror_repeat | ( | float | u, |
float | max | ||
) |
Definition at line 21 of file init_from_bake.h.
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 34 of file init_from_bake.h.
References center, blender::math::clamp(), blender::math::dot(), fabs(), len, make_float2, max, min, blender::math::normalize(), P(), reduce_max(), triangle_vertices(), v, v1, 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 81 of file init_from_bake.h.
References __float_as_uint(), bake_clamp_mirror_repeat(), bake_offset_towards_center(), buffer, ccl_global, ccl_optional_struct_init, 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(), differential3::dx, differential3::dy, hash_uint(), integrator_path_init(), integrator_path_init_sorted(), INTEGRATOR_STATE, integrator_state_write_isect(), integrator_state_write_ray(), kernel_accum_sample(), kernel_accum_transparent(), kernel_data, kernel_data_fetch, kernel_need_sample_pixel(), kernel_write_pass_float3(), N, blender::math::normalize(), object_fetch_transform(), OBJECT_INVERSE_TRANSFORM, OBJECT_TRANSFORM, P(), pass_stride, PASS_UNUSED, path_rng_2D(), path_state_init(), path_state_init_integrator(), PRIMITIVE_TRIANGLE, PRNG_FILTER_U, PROFILING_INIT, PROFILING_RAY_SETUP, render_buffer, render_pixel_index, sample, KernelWorkTile::sample_offset, SD_HAS_BUMP, SD_HAS_RAYTRACE, SD_OBJECT_CAUSTICS, SD_OBJECT_TRANSFORM_APPLIED, seed, SHADER_MASK, SHADER_SMOOTH_NORMAL, blender::draw::image_engine::shaders, 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().