Fix: Cycles: lcg_state uninitialized before volume density baking
_No response_ Pull Request: https://projects.blender.org/blender/blender/pulls/144489
This commit is contained in:
committed by
Weizhen Huang
parent
e0b281a505
commit
6eb7075fa1
@@ -141,6 +141,8 @@ ccl_device void kernel_volume_density_evaluate(KernelGlobals kg,
|
||||
ShaderData sd;
|
||||
shader_setup_from_volume(&sd, &ray, in.object);
|
||||
sd.flag = SD_IS_VOLUME_SHADER_EVAL;
|
||||
/* For stochastic texture sampling. */
|
||||
sd.lcg_state = lcg_state_init(offset, 0, 0, 0x15b4f88d);
|
||||
|
||||
/* Evaluate extinction and emission without allocating closures. */
|
||||
sd.num_closure_left = 0;
|
||||
|
||||
Reference in New Issue
Block a user