https://github.com/ovpavlov/textureflow
https://github.com/ovpavlov/textureflow
data-flow effects post-processing unity unity3d
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ovpavlov/textureflow
- Owner: OVPavlov
- License: mit
- Created: 2018-08-26T21:57:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-14T06:56:38.000Z (over 6 years ago)
- Last Synced: 2025-04-09T23:51:11.045Z (13 days ago)
- Topics: data-flow, effects, post-processing, unity, unity3d
- Language: C#
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This lib is made to simplify making post processing pipelines using dataflow paradigm
Example
---
The following code implements outline effect with downsampled glow:```csharp
var x = Graph.Use(camera.targetTexture);
var outline = Graph.Process(outlineShader, x, new Vec("_PixelSize", 1, 1, true));var glow = Graph.Downsample(x)
.Proces(blurShader, new Vec("_PixelSize", 1, 0, true))
.Proces(blurShader, new Vec("_PixelSize", 0, 1, true));commandBuffer = Graph.Process(composeShader, x,
outline.As("_OutlineTex"),
glow.As("_GlowTex"),
new Float("_Intensity", intensity),
new Col("_Color", color))
.ToCommandBuffer();
```