render.SetBlend() on render.RenderView()

I’m looking to blend the client’s current view with something from a render.RenderView(). Something like 50% their normal view and 50% the RenderView.

Currently my code is looking something like this



if CLIENT then
	hook.Add( "HUDPaint", "", function()
		render.SetBlend( 0.5 )
		render.RenderView( {
			origin = Vector( 0, 0, 0 ),
			angles = EyeAngles(),
			x = x,
			y = y,
			w = w,
			h = h,
		 } )


	end )
end


Any idea why this isn’t working?

What about it isn’t working?

It exclusively draws the Renderview without transparency

Instead of using renderview to draw directly to the screen render it into a rendertarget, then draw your rendertarget to the screen semi transparent.