Block a user
Cycles: Add thin film iridescence to Principled BSDF
This does not compile on Metal. Add ccl_private
.
Cycles: Add thin film iridescence to Principled BSDF
For cognitive ease I would prefer to add an empty if (fresnel->thin_film.thickness > 0.1f)
branch and put the comment there, the following block is then put in the else
branch
Cycles: Add thin film iridescence to Principled BSDF
The newly added sqr()
is not used, I assume you wanted to use it here?
Cycles: Add thin film iridescence to Principled BSDF
Yes, you are right, I was not paying attention to the denominator. I remember switching the order was only to make the two lines have the same structure because the sign didn't matter. Sorry for…
Cycles: Add thin film iridescence to Principled BSDF
Do you mean the sign of cos_theta_t
? In fresnel_dielectric()
it is the angle between the surface normal and the refracted ray, hence negative, and the sign is used in Principled Hair Huang I…
f7e93cca5d
Randomly sample neighbors instead of deterministically to reduce artifact
6c468666a2
Refactor: use sample sequences in reservoir sampling
f02f623637
Refactor: use int to represent initial and spatial resampling
66b5e9cb41
Fix checking visibility when ReSTIR is not used
76d2609896
Fix division by zero
a3b883bf59
Add options to check sample visibility
fc3b69435a
Add option to use ReSTIR
f7b9351840
Fix crash without light tree
48d5db3081
Cycles: Implement blue-noise dithered sampling
636b7254e5
Add spatial resampling
68cc87d9ba
Refactor: make restir an init function
758481d375
Cleanup: comments, change function parameters, split reservoir and sd
89a12ead7d
Refactor: move 1/pdf to weight instead of a multiplicator of radiance
3a26a601f4
Remove ReSTIR from megakernel
Cleanup: various cleanups in Cycles kernel
8e5840359f
Refactor: deduplicate assignment of background light group
a6330cad7f
Refactor: wrap block of codes into a function
45d2e46752
Cleanup: remove unnecessary shader flag in Chiang Hair BSDF
481b50e06d
Cleanup: pass shader flag as parameter instead of ShaderData
2e1380fa0c
Cleanup: use available function to compute render buffer pointer
cbaf9e0eb8
Refactor: deduplicate assignment of background light group
654801a6b8
Refactor: wrap block of codes into a function
f09ab0fe7b
Cleanup: remove unnecessary shader flag in Chiang Hair BSDF
858de3f393
Cleanup: pass shader flag as parameter instead of ShaderData
bbdd8f422c
Cleanup: use available function to compute render buffer pointer