|
Blender V4.3
|
#include "util/math.h"#include "util/string.h"#include "util/system.h"#include "util/array.h"#include "util/hash.h"#include "util/task.h"#include "kernel/device/cpu/compat.h"#include "kernel/device/cpu/globals.h"#include "kernel/sample/lcg.h"#include "kernel/sample/mapping.h"#include "kernel/util/color.h"#include "kernel/closure/bsdf_microfacet.h"#include <iostream>Go to the source code of this file.
Classes | |
| struct | PrecomputeTerm |
Functions | |
| static CCL_NAMESPACE_BEGIN float | precompute_ggx_E (float rough, float mu, float3 rand) |
| static float | precompute_ggx_glass_E (float rough, float mu, float eta, float3 rand) |
| static float | precompute_ggx_gen_schlick_s (float rough, float mu, float eta, float exponent, float3 rand) |
| float | ior_parametrization (float z) |
| static bool | cycles_precompute (std::string name) |
| CCL_NAMESPACE_END int | main (int argc, const char **argv) |
|
static |
Definition at line 146 of file cycles_precompute.cpp.
References clamp(), data, double(), PrecomputeTerm::evaluation, float, float4_to_float3(), hash_uint2(), ior_parametrization(), PrecomputeTerm::nx, PrecomputeTerm::ny, PrecomputeTerm::nz, precompute_ggx_E(), precompute_ggx_gen_schlick_s(), precompute_ggx_glass_E(), sample, PrecomputeTerm::samples, saturatef, seed, sobol_burley_sample_4D(), sum(), x, and z().
Definition at line 133 of file cycles_precompute.cpp.
References ior_from_F0(), sqr(), and z().
Referenced by cycles_precompute().
| CCL_NAMESPACE_END int main | ( | int | argc, |
| const char ** | argv ) |
Definition at line 268 of file cycles_precompute.cpp.
|
static |
Definition at line 27 of file cycles_precompute.cpp.
References MicrofacetBsdf::alpha_x, MicrofacetBsdf::alpha_y, average(), bsdf_microfacet_ggx_sample(), bsdf_microfacet_ggx_setup(), MicrofacetBsdf::ior, make_float3(), one_float3(), ShaderClosure, sqr(), sqrtf, and MicrofacetBsdf::T.
Referenced by cycles_precompute().
|
static |
Definition at line 89 of file cycles_precompute.cpp.
References MicrofacetBsdf::alpha_x, MicrofacetBsdf::alpha_y, bsdf_microfacet_ggx_sample(), bsdf_microfacet_ggx_setup(), MicrofacetBsdf::fresnel, MicrofacetBsdf::fresnel_type, GENERALIZED_SCHLICK, MicrofacetBsdf::ior, make_float3(), one_float3(), FresnelGeneralizedSchlick::reflection_tint, saturatef, ShaderClosure, sqr(), sqrtf, and MicrofacetBsdf::T.
Referenced by cycles_precompute().
Definition at line 58 of file cycles_precompute.cpp.
References MicrofacetBsdf::alpha_x, MicrofacetBsdf::alpha_y, average(), bsdf_microfacet_ggx_glass_setup(), bsdf_microfacet_ggx_sample(), MicrofacetBsdf::ior, make_float3(), one_float3(), ShaderClosure, sqr(), sqrtf, and MicrofacetBsdf::T.
Referenced by cycles_precompute().