# Ue5 BasePass Add Another RenderTarget Output

**URL:** <https://forums.unrealengine.com/t/ue5-basepass-add-another-rendertarget-output/2685640>\
**Category:** Rendering\
**Tags:** unreal-engine, CPP, question\
**Created:** [December 17, 2025, 9:23am UTC](https://forums.unrealengine.com/t/ue5-basepass-add-another-rendertarget-output/2685640 "2025-12-17T09:23:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LitTwilight](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LitTwilight](https://forums.unrealengine.com/u/LitTwilight)\
**Post date:** [December 17, 2025, 9:23am UTC](https://forums.unrealengine.com/t/ue5-basepass-add-another-rendertarget-output/2685640/1 "2025-12-17T09:23:17Z")

</div>

I want basepass to export an uint8 data,so i create a PF\_R8\_UINT texture and bind to the BasePass output,and set SV\_Target to uint output,but the output is not what i expect

---

<div class="post-metadata">

**Author:** ![LitTwilight](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LitTwilight](https://forums.unrealengine.com/u/LitTwilight)\
**Post date:** [December 17, 2025, 9:24am UTC](https://forums.unrealengine.com/t/ue5-basepass-add-another-rendertarget-output/2685640/2 "2025-12-17T09:24:36Z")

</div>

Here is my code:  
const FRDGTextureDesc AdditionalLightingTextureDesc(FRDGTextureDesc::Create2D(Config.Extent, PF\_R8\_UINT, FClearValueBinding::None, TexCreate\_RenderTargetable | TexCreate\_ShaderResource));

………….  
FOpaqueBasePassParameters\* PassParameters = GraphBuilder.AllocParameters();  
PassParameters-\>View = View.GetShaderParameters();  
PassParameters-\>ReflectionCapture = View.ReflectionCaptureUniformBuffer;  
PassParameters-\>BasePass = CreateOpaqueBasePassUniformBuffer(GraphBuilder, View, ViewIndex, ForwardBasePassTextures, DBufferTextures, bLumenGIEnabled);  
PassParameters-\>RenderTargets = BasePassRenderTargets;  
PassParameters-\>RenderTargets[BasePassRenderTargets.GetActiveCount()] = FRenderTargetBinding(SceneTextures.AdditionalLightingTexture,View.DecayLoadAction(ERenderTargetLoadAction::ENoAction));  
PassParameters-\>RenderTargets.ShadingRateTexture = GVRSImageManager.GetVariableRateShadingImage(GraphBuilder, View, FVariableRateShadingImageManager::EVRSPassType::BasePass);

………………….

#if PIXELSHADEROUTPUT\_MRT3  
, out float4 OutTarget3 : SV\_Target3  
#if !PIXELSHADEROUTPUT\_MRT4 && !SUBSTRATE\_OUTPUT\_GBUFFER && !MATERIAL\_IS\_SKY  
,out uint4 AdditionalLightingChannel : SV\_Target4  
#endif  
#endif  
#if !PIXELSHADEROUTPUT\_MRT7 && !MATERIAL\_IS\_SKY  
AdditionalLightingChannel = PixelShaderOut.AdditionalLightingChannel;  
#endif

---

<div class="post-metadata">

**Author:** ![LitTwilight](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LitTwilight](https://forums.unrealengine.com/u/LitTwilight)\
**Post date:** [December 17, 2025, 9:26am UTC](https://forums.unrealengine.com/t/ue5-basepass-add-another-rendertarget-output/2685640/3 "2025-12-17T09:26:26Z")

</div>

The result is blocky,seems like the data has been written to ,but the result is bad
