Skip to content

Commit

Permalink
2.1.4 - 2019/02/28
Browse files Browse the repository at this point in the history
@2018.1
  • Loading branch information
ErikMoczi committed Mar 3, 2019
1 parent c1a9323 commit 4d1c7f8
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 12 deletions.
6 changes: 6 additions & 0 deletions package/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [2.1.4] - 2019-02-27

### Fixed
- Shader compilation errors with OpenGL ES2 and Switch.
- Proper viewport support on Builtin render pipelines.

## [2.1.3] - 2019-01-30

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion package/PostProcessing/Runtime/Effects/DepthOfField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ RenderTexture CheckHistory(int eye, int id, PostProcessRenderContext context, Re

public override void Render(PostProcessRenderContext context)
{
var colorFormat = RenderTextureFormat.DefaultHDR;
var colorFormat = context.sourceFormat;
var cocFormat = SelectFormat(RenderTextureFormat.R8, RenderTextureFormat.RHalf);

// Avoid using R8 on OSX with Metal. #896121, https://goo.gl/MgKqu6
Expand Down
2 changes: 2 additions & 0 deletions package/PostProcessing/Runtime/PostProcessLayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1150,8 +1150,10 @@ int RenderBuiltins(PostProcessRenderContext context, bool isFinalPass, int relea
{
cmd.BlitFullscreenTriangleToDoubleWide(context.source, context.destination, uberSheet, 0, eye);
}
#if LWRP_1_0_0_OR_NEWER
else if (isFinalPass)
cmd.BlitFullscreenTriangle(context.source, context.destination, uberSheet, 0, false, context.camera.pixelRect);
#endif
else
cmd.BlitFullscreenTriangle(context.source, context.destination, uberSheet, 0);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,12 @@
"references": [],
"optionalUnityReferences": [],
"includePlatforms": [],
"excludePlatforms": []
"excludePlatforms": [],
"versionDefines": [
{
"name": "com.unity.render-pipelines.lightweight",
"expression": "1.0.0",
"define": "LWRP_1_0_0_OR_NEWER"
}
]
}
44 changes: 38 additions & 6 deletions package/PostProcessing/Shaders/Builtins/FinalPass.shader
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ Shader "Hidden/PostProcessing/FinalPass"

#pragma multi_compile __ FXAA FXAA_LOW
#pragma multi_compile __ FXAA_KEEP_ALPHA
#pragma multi_compile __ STEREO_INSTANCING_ENABLED
#pragma multi_compile __ STEREO_DOUBLEWIDE_TARGET

#pragma vertex VertUVTransform
#pragma fragment Frag

#include "../StdLib.hlsl"
#include "../Colors.hlsl"
#include "Dithering.hlsl"
Expand Down Expand Up @@ -97,9 +99,9 @@ Shader "Hidden/PostProcessing/FinalPass"
Pass
{
HLSLPROGRAM
#pragma exclude_renderers gles vulkan switch

#pragma vertex VertUVTransform
#pragma fragment Frag
#pragma multi_compile __ STEREO_INSTANCING_ENABLED STEREO_DOUBLEWIDE_TARGET
#pragma target 5.0

ENDHLSL
Expand All @@ -113,12 +115,42 @@ Shader "Hidden/PostProcessing/FinalPass"
Pass
{
HLSLPROGRAM
#pragma exclude_renderers gles vulkan switch

#pragma vertex VertUVTransform
#pragma fragment Frag
#pragma multi_compile __ STEREO_INSTANCING_ENABLED STEREO_DOUBLEWIDE_TARGET
#pragma target 3.0

ENDHLSL
}
}

SubShader
{
Cull Off ZWrite Off ZTest Always

Pass
{
HLSLPROGRAM
#pragma only_renderers gles

#pragma multi_compile __ STEREO_INSTANCING_ENABLED STEREO_DOUBLEWIDE_TARGET
#pragma target es3.0

ENDHLSL
}
}

SubShader
{
Cull Off ZWrite Off ZTest Always

Pass
{
HLSLPROGRAM
#pragma only_renderers gles vulkan switch

#pragma multi_compile __ STEREO_DOUBLEWIDE_TARGET //not supporting STEREO_INSTANCING_ENABLED
ENDHLSL
}
}
}
4 changes: 2 additions & 2 deletions package/PostProcessing/Shaders/Builtins/Uber.shader
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ Shader "Hidden/PostProcessing/Uber"
Pass
{
HLSLPROGRAM
#pragma exclude_renderers gles vulkan
#pragma exclude_renderers gles vulkan switch

#pragma multi_compile __ COLOR_GRADING_LDR_2D COLOR_GRADING_HDR_2D COLOR_GRADING_HDR_3D
#pragma multi_compile __ STEREO_INSTANCING_ENABLED STEREO_DOUBLEWIDE_TARGET
Expand All @@ -290,7 +290,7 @@ Shader "Hidden/PostProcessing/Uber"
Pass
{
HLSLPROGRAM
#pragma only_renderers vulkan
#pragma only_renderers vulkan switch

#pragma multi_compile __ COLOR_GRADING_LDR_2D COLOR_GRADING_HDR_2D COLOR_GRADING_HDR_3D
#pragma multi_compile __ STEREO_DOUBLEWIDE_TARGET // disabled for Vulkan because of shader compiler issues in older Unity versions: STEREO_INSTANCING_ENABLED
Expand Down
4 changes: 2 additions & 2 deletions package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"displayName": "Post Processing",
"name": "com.unity.postprocessing",
"repository": {
"revision": "0c92d23eb8b5dff6c1ecb96ab807d0a7ace5bb97",
"revision": "80a69390a3559448807ac51d294265edaf4c7c4e",
"type": "git",
"url": "ssh://[email protected]/Unity-Technologies/PostProcessing.git"
},
"unity": "2018.1",
"version": "2.1.3"
"version": "2.1.4"
}
1 change: 1 addition & 0 deletions versions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@
2.1.1
2.1.2
2.1.3
2.1.4

0 comments on commit 4d1c7f8

Please sign in to comment.