fix dummy ssr history texture target type

This commit is contained in:
Mathias Agopian
2022-03-23 16:38:09 -07:00
committed by Mathias Agopian
parent ef8e3e5224
commit 6310ea46e3

View File

@@ -545,9 +545,11 @@ FrameGraphId<FrameGraphTexture> PostProcessManager::ssr(FrameGraph& fg,
mat4f uvFromViewMatrix = uvFromClipMatrix * cameraInfo.projection;
mat4f reprojection = uvFromClipMatrix * historyProjection
* inverse(cameraInfo.view * cameraInfo.worldOrigin);
// the history sampler is a regular texture2D
TextureHandle history = data.history ?
resources.getTexture(data.history) : getZeroTextureArray();
uniforms.prepareHistorySSR(history,reprojection, uvFromViewMatrix,options);
resources.getTexture(data.history) : getZeroTexture();
uniforms.prepareHistorySSR(history, reprojection, uvFromViewMatrix,options);
uniforms.commit(driver);