Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

[D3D11] Problem for displaying a downsampled texture on a quad. Please help !

$
0
0

Hello !

I have a small downsampled texture generated from the previous pass which works well.

I try to display only red color in the whole image in the current pass, but I have a black screen, knowing that the background of the image is cleared to blue.

This is a part of my code, I can provide more code if you wish it.

My code display a black screen instead a red screen with the pixel shader.

Please help me !

 

void Glow::horizontalBlur()
{
	float ClearColor[4] = { 0.0f, 0.0f, 1.0f, 1.0f };

	D3D11_VIEWPORT viewport;
	viewport.TopLeftX = 0 …

Viewing all articles
Browse latest Browse all 17625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>