Shadow baking
lm165678 opened this issue · comments
Hello, I am studying your code, I tried to modify the shader to add bakeScene, but it seems that the shadow cannot be baked properly. Can you tell me an idea? Or provide some reference code? Sorry, I am a novice. Thank you!
Sorry to reply you so late, I think I may know the reason. Radiosity does not seem to be used to bake shadows, but to simulate global illumination. Therefore, I used direct ray tracing to mark shadows and illuminate the part, and then used radiosity to bounce multiple times to simulate global illumination.
You could use this library to bake shadows from area light sources (see example images on the front page). But since you seem to have a solution now, I'll close this ticket then :).