blob: 3d7b91bcc1edaee579481fb6432cf2be861c4307 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/* Lib file to include to evaluate a nodetree without evaluating BSDFs. */
/* -------------------------------------------------------------------- */
/** \name Utility functions to work with BSDFs
* \{ */
vec3 diffuse_dominant_dir(vec3 bent_normal)
{
return vec3(0);
}
vec3 specular_dominant_dir(vec3 N, vec3 V, float roughness)
{
return vec3(0.0);
}
vec3 refraction_dominant_dir(vec3 N, vec3 V, float roughness, float ior)
{
return vec3(0.0);
}
float F_eta(float eta, float cos_theta)
{
return 0.0;
}
vec3 F_brdf_single_scatter(vec3 f0, vec3 f90, vec2 lut)
{
return vec3(0);
}
vec3 F_brdf_multi_scatter(vec3 f0, vec3 f90, vec2 lut)
{
return vec3(0);
}
vec2 brdf_lut(float cos_theta, float roughness)
{
return vec2(0);
}
vec2 btdf_lut(float cos_theta, float roughness, float ior)
{
return vec2(0);
}
/** \} */
|