Hi everyone. I have FloatRGB texture where some pixels have values more than 1. If it would be emissive color in material then I got glow effect like this:
To get glow effect I try to render texture with DefaultLit material in canvas by next material and code:
material->SetTextureParameterValue(TEXT("texture"), m_screenshot.result);
FCanvasTileItem tile(
FVector2D::ZeroVector,
material->GetRenderProxy(false),
FVector2D(SCREENSHOT_SIZE, SCREENSHOT_SIZE),
FVector2D(0.0f, 0.0f),
FVector2D(1.0f, 1.0f));
finalTexture->InitCustomFormat(SCREENSHOT_SIZE, SCREENSHOT_SIZE, EPixelFormat::PF_B8G8R8A8, false);
FCanvas* canvas=new FCanvas(finalTexture->GameThread_GetRenderTargetResource(), NULL, 0.0f, 0.0f, 0.0f, GMaxRHIFeatureLevel);
canvas->DrawItem(tile, FVector2D::ZeroVector);
canvas->Flush_GameThread();
delete canvas;
But finalTexture doesn’t have glow effect:
What should I do?