Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
Fixed SAO in non-ambient-only mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Chman committed Aug 30, 2017
1 parent 27d139b commit d9de0d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions PostProcessing/Shaders/Builtins/ScalableAO.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,10 @@ half BlurSmall(TEXTURE2D_ARGS(tex, samp), float2 uv, float2 delta)
// Final composition shader
float4 FragComposition(VaryingsDefault i) : SV_Target
{
float2 delta = _MainTex_TexelSize.xy / DOWNSAMPLE;
float2 delta = _SAOcclusionTexture_TexelSize.xy / DOWNSAMPLE;
half ao = BlurSmall(TEXTURE2D_PARAM(_SAOcclusionTexture, sampler_SAOcclusionTexture), i.texcoord, delta);
return float4(EncodeAO(ao) * _AOColor, 0.0);
ao = EncodeAO(ao);
return float4(ao * _AOColor, ao);
}

#if !SHADER_API_GLES // Excluding the MRT pass under GLES2
Expand Down

0 comments on commit d9de0d9

Please sign in to comment.