forked from bartvdbraak/blender
Cleanup: Remove unused SD_PHASE_HAS_EVAL flag.
We only have a non-singular volume closure and therefore no need to distinguish it.
This commit is contained in:
parent
a2366a3a2e
commit
6f3500db05
@ -36,7 +36,7 @@ ccl_device int volume_henyey_greenstein_setup(ShaderClosure *sc)
|
||||
/* clamp anisotropy to avoid delta function */
|
||||
sc->data0 = signf(sc->data0) * min(fabsf(sc->data0), 1.0f - 1e-3f);
|
||||
|
||||
return SD_SCATTER|SD_PHASE_HAS_EVAL;
|
||||
return SD_SCATTER;
|
||||
}
|
||||
|
||||
ccl_device float3 volume_henyey_greenstein_eval_phase(const ShaderClosure *sc, const float3 I, float3 omega_in, float *pdf)
|
||||
|
@ -595,7 +595,6 @@ enum ShaderDataFlag {
|
||||
SD_EMISSION = (1 << 1), /* have emissive closure? */
|
||||
SD_BSDF = (1 << 2), /* have bsdf closure? */
|
||||
SD_BSDF_HAS_EVAL = (1 << 3), /* have non-singular bsdf closure? */
|
||||
SD_PHASE_HAS_EVAL = (1 << 3), /* have non-singular phase closure? */
|
||||
SD_BSSRDF = (1 << 4), /* have bssrdf */
|
||||
SD_HOLDOUT = (1 << 5), /* have holdout closure? */
|
||||
SD_ABSORPTION = (1 << 6), /* have volume absorption closure? */
|
||||
|
Loading…
Reference in New Issue
Block a user