Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Minor fix - Apply pass no longer overwrites render target's existing …
Browse files Browse the repository at this point in the history
…alpha value
  • Loading branch information
fstrugar committed Feb 7, 2018
1 parent 0699c17 commit 618cd37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Modules/Rendering/Media/Shaders/vaASSAO.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ float4 PSApply( in float4 inPos : SV_POSITION/*, in float2 inUV : TEXCOORD0*/ )
ao = dot( float4( ao, aoH, aoV, aoD ), blendWeights ) / blendWeightsSum;
#endif

return float4( ao.xxx, 0 );
return float4( ao.xxx, 1.0 );
}

// edge-ignorant blur in x and y directions, 9 pixels touched (for the lowest quality level 0)
Expand Down
2 changes: 1 addition & 1 deletion Projects/ASSAO/ASSAO/ASSAO.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ float4 PSApply( in float4 inPos : SV_POSITION/*, in float2 inUV : TEXCOORD0*/ )
ao = dot( float4( ao, aoH, aoV, aoD ), blendWeights ) / blendWeightsSum;
#endif

return float4( ao.xxx, 0 );
return float4( ao.xxx, 1.0 );
}

// edge-ignorant blur in x and y directions, 9 pixels touched (for the lowest quality level 0)
Expand Down

0 comments on commit 618cd37

Please sign in to comment.