#"Illumination" Prepass?
3 messages · Page 1 of 1 (latest)
Yes. ViewTarget has a double buffering scheme, so you can read the previous texture via a binding, while writing to a new one. And then in your shader, you load the previous value, and:
- If dark, copy to new texture
- If light, modify, then write to new texture
The gbuffer won't have lighting applied, it's just material data