#"Illumination" Prepass?

3 messages · Page 1 of 1 (latest)

cunning abyss
#

I don't know the answer but that looks awesome so I wanted to compliment you!

pine moth
#

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
pine moth
#

The gbuffer won't have lighting applied, it's just material data