|
@@ -102,9 +102,10 @@ void Luminance::LuminanceBuffers::configure(RenderSceneBuffersRD *p_render_buffe
|
|
|
tf.usage_bits = RD::TEXTURE_USAGE_COLOR_ATTACHMENT_BIT | RD::TEXTURE_USAGE_SAMPLING_BIT;
|
|
|
} else {
|
|
|
tf.usage_bits = RD::TEXTURE_USAGE_STORAGE_BIT;
|
|
|
- if (final) {
|
|
|
- tf.usage_bits |= RD::TEXTURE_USAGE_SAMPLING_BIT;
|
|
|
- }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (final) {
|
|
|
+ tf.usage_bits |= RD::TEXTURE_USAGE_SAMPLING_BIT | RD::TEXTURE_USAGE_CAN_COPY_TO_BIT;
|
|
|
}
|
|
|
|
|
|
RID texture = RD::get_singleton()->texture_create(tf, RD::TextureView());
|
|
@@ -112,6 +113,7 @@ void Luminance::LuminanceBuffers::configure(RenderSceneBuffersRD *p_render_buffe
|
|
|
|
|
|
if (final) {
|
|
|
current = RD::get_singleton()->texture_create(tf, RD::TextureView());
|
|
|
+ RD::get_singleton()->texture_clear(current, Color(0.0, 0.0, 0.0), 0u, 1u, 0u, 1u);
|
|
|
break;
|
|
|
}
|
|
|
}
|