Prepass renderer giving inconsistent reflectivity texture based on lights in the scene

so when I have any light in the scene no matter where or how dim, the reflectivity texture for standard materials is white.

when I remove said light, the reflectivity texture for standard materials becomes black.

Without Light


With Light

this behaviour differs from gbuffer renderer, for which the reflectivity texture is consistently white always : O

The prepass rendering path forced (0,0,0) for reflectivity when there was no light, which seems wrong to me. Here’s the PR:

5 Likes

thank you so much!! : D

1 Like