Skip to content

Commit 55c1b00

Browse files
committed
README update
1 parent e7d9b70 commit 55c1b00

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ var resources = GetMyResources();
133133

134134
using (var renderer = new OutlineRenderer(commandBuffer, BuiltinRenderTextureType.CameraTarget))
135135
{
136-
renderer.Render(renderers, resources, settings);
136+
renderer.Render(renderers, resources, settings);
137137
}
138138

139139
myCamera.AddCommandBuffer(OutlineRenderer.RenderEvent, commandBuffer);
@@ -152,19 +152,19 @@ using UnityFx.Outline;
152152
[PostProcess(typeof(OutlineEffectRenderer), PostProcessEvent.BeforeStack, "MyOutline", false)]
153153
public sealed class Outline : PostProcessEffectSettings
154154
{
155-
public OutlineResources OutlineResources;
156-
public OutlineLayers OutlineLayers;
155+
public OutlineResources OutlineResources;
156+
public OutlineLayers OutlineLayers;
157157
}
158158

159159
public sealed class OutlineEffectRenderer : PostProcessEffectRenderer<Outline>
160160
{
161-
public override void Render(PostProcessRenderContext context)
162-
{
163-
using (var renderer = new OutlineRenderer(context.command, context.source, context.destination))
164-
{
165-
settings.OutlineLayers.Render(renderer, settings.OutlineResources);
166-
}
167-
}
161+
public override void Render(PostProcessRenderContext context)
162+
{
163+
using (var renderer = new OutlineRenderer(context.command, context.source, context.destination))
164+
{
165+
settings.OutlineLayers.Render(renderer, settings.OutlineResources);
166+
}
167+
}
168168
}
169169
```
170170
For the sake of simplicity the sample does not include any kind of error checking and no editor integration provided. In real world app the `Outline` class should expose its data to Unity editor either via custom inspector or using parameter overrides. Also, there are quite a few optimizations missing (for example, resusing `RuntimeUtilities.fullscreenTriangle` value as `OutlineResources.FullscreenTriangleMesh`).
@@ -184,6 +184,7 @@ Please see the links below for extended information on the product:
184184
- [A great outline tutorial](https://willweissman.wordpress.com/tutorials/shaders/unity-shaderlab-object-outlines/).
185185
- [Command buffers tutorial](https://lindenreid.wordpress.com/2018/09/13/using-command-buffers-in-unity-selective-bloom/).
186186
- [Gaussian blur tutorial](https://www.ronja-tutorials.com/2018/08/27/postprocessing-blur.html).
187+
- [Excellent post-processing tutorial](https://catlikecoding.com/unity/tutorials/scriptable-render-pipeline/post-processing/).
187188

188189
## Contributing
189190
Please see [contributing guide](.github/CONTRIBUTING.md) for details.

0 commit comments

Comments
 (0)