• Stars
    star
    113
  • Rank 310,115 (Top 7 %)
  • Language
    C#
  • License
    MIT License
  • Created over 5 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A showcase of shader effects to replicate portals in different games.

Shaders - Portals

A showcase of shader effects to replicate portals in videogames.

Portals Banner

Overview

This project is all about portals. Stepping outside of pure shader work and into the world of C# scripting, this series goes a lot more in-depth with the link between scripting and shaders than my previous work, highlighting the importance of making both sides work together.

This project goes in-depth with: cubemaps, stencil buffers, oblique near-plane projection, linear algebra and local/world space transformations, screenspace texture sampling, raycasting, rigidbodies and collision.

Buy Me a Coffee at ko-fi.com

Shaders Included

This project includes shaders for:

  • A Spyro-style portal effect including a cubemap-based rendering of the world on the other side of the portal;
  • A Manifold Garden-style placeable portal that renders a non-recursive view through the other portal in realtime using the stencil buffer, an oblique projection matrix and smart camera placement;
  • A Portal-style portal that builds on the previous version, adding recursion and using screenspace texture sampling instead of the stencil buffer.

Software

This project was created using Unity 2019.2.0f1. It should work on other versions of Unity, although the project may need upgrading or downgrading.

Authors

This project, and the corresponding tutorial series, were written by Daniel Ilett.

Assets

This project uses the following assets:

Release

The series was announced on December 1st on danielilett.com. The series will be developed and articles made public throughout December 2019.

Thank you for following my tutorials.

❀

More Repositories

1

smo-shaders

A collection of shaders to replicate those used in Super Mario Odyssey's Snapshot Mode.
ShaderLab
204
star
2

water-urp

A stylised water shader for Unity's Universal Render Pipeline.
Mathematica
162
star
3

shaders-botw-grass

A Legend of Zelda: Breath of the Wild-style grass shader
Mathematica
153
star
4

portals-urp

A recreation of the Portals demo in Universal Render Pipeline.
C#
124
star
5

shaders-botw-cel-shading

A cel shading effect based on the main shader from Breath of the Wild.
Mathematica
105
star
6

dither-transparency-urp

A dither transparency shader for Unity's Shader Graph and Universal Render Pipeline.
Mathematica
93
star
7

image-ultra

A second series of image effect shaders made in Unity.
ShaderLab
75
star
8

10-shaders

A repository for my '10 shaders in 10 minutes' project.
ShaderLab
75
star
9

2d-outlines-urp

A 2D outline shader for SpriteRenderers in Unity, using Shader Graph and Universal RP.
C#
72
star
10

shaders-6grass

Six varied methods for drawing grass with a range of use cases.
C#
69
star
11

dissolve-urp

A dissolve shader for Unity Shader Graph and Universal Render Pipeline.
Mathematica
69
star
12

cel-shading

A collection of shaders used to demonstrate cel-shading in Unity.
ShaderLab
65
star
13

shaders-impossible-geom

A shader project for Unity URP featuring impossible geometry shaders like those seen in the game Antichamber.
Mathematica
64
star
14

shaders-hologram

A holographic Shader Graph for Unity URP.
Mathematica
60
star
15

cel-shading-urp

A cel-shading Shader Graph for Universal Render Pipeline.
Mathematica
57
star
16

shaders-fullscreen-outlines

A post-processing shader to add thin outlines to objects in Unity URP via Shader Graph.
C#
51
star
17

rain-urp

A rain puddles shader for Unity Shader Graph and Universal Render Pipeline
Mathematica
41
star
18

metaballs-urp

A metaball simulation for Unity in Universal Render Pipeline.
Mathematica
35
star
19

shaders-wall-cutout

A shader effect which cuts a hole in the wall to prevent an object being obstructed.
Mathematica
35
star
20

shaders-ice

An ice refraction shader made with Unity Shader Graph and URP.
Mathematica
31
star
21

shaders-snow-layers

A snow layer shader for Shader Graph and Universal Render Pipeline.
Mathematica
30
star
22

glitter-urp

A glitter effect made in Shader Graph for Unity URP.
Mathematica
28
star
23

shaders-halftone

A halftone shader created with Shader Graph for use in the Universal Render Pipeline
Mathematica
27
star
24

shaders-gaussian-blur

A Gaussian blur post processing effect for Unity 2021 URP.
Mathematica
26
star
25

decals-urp

A decal effect made using Shader Graph in URP.
C#
26
star
26

ps1-affine-shader

A recreation of the PlayStation 1's affine texture mapping in Unity.
Mathematica
20
star
27

sm64-painting-urp

A shader based on Super Mario 64's painting ripple effect.
Mathematica
18
star
28

shaders-stealth-vision

A shader project which highlights objects in certain layers with a glowing 'stealth vision' effect.
Mathematica
18
star
29

bytesize-refraction

A bytesize effect for simple glass-like refraction in Unity Shader Graph.
Mathematica
18
star
30

shaders-pmd

A drawing shader based loosely on Pokemon Mystery Dungeon: Rescue Team DX's art style.
Mathematica
17
star
31

shaders-stylised-shield

A stylised energy shield shader effect (with additional VFX).
Mathematica
17
star
32

shaders-botw-bomb

A shader and visual effect made in Unity to recreate the remote bomb from Zelda: Breath of the Wild.
Mathematica
17
star
33

shaders-retro

A set of retro-inspired Shader Graphs in URP.
Mathematica
16
star
34

shaders-octocamo

A recreation of Metal Gear Solid 4's Octocamo mechanic in Shader Graph & URP.
C#
14
star
35

shader-graph-basics-2022-3

A beginner crash course for Shader Graph in Unity 2022.3 and above.
Mathematica
12
star
36

shaders-godot

A repository for Godot versions of many of my shaders.
GDScript
11
star
37

vfx-portal

A portal visual effect created using Unity's Visual Effect Graph and URP.
Mathematica
10
star
38

shaders-stylised-lava

A stylised lava effect which uses a Voronoi pattern as its base.
Mathematica
10
star
39

bytesize-enchantment

Mathematica
8
star
40

shaders-terastal

A terastallize shader for Unity based on the Terastallizing game mechanic from Pokemon Scarlet and VIolet.
Mathematica
7
star
41

snapshot-collection

A collection of shaders bundled together with an easy-to-use "Snapshot Mode".
ShaderLab
6
star
42

shaders-dither-transparency

A dithered transparency shader for Unity Shader Graph.
Mathematica
5
star
43

wgd-cycles

A short game prototype made for the 4-hour "Cycles" theme.
C#
3
star
44

shaders-mgs-stealth

A repository for a Metal Gear Solid style stealth camo effect.
ShaderLab
3
star
45

meditations-2019

A game made for Meditations - a collection of games available for only a day, each day of the year.
C#
3
star
46

wgd-lightning

WGD Lightning Talks - a demo for my short talk on the effects used in Super Mario Odyssey (and perhaps others).
ShaderLab
3
star
47

wgd-reflections

A game made for the WGD Reflections (2019) Game Jam
C#
3
star
48

ludum-dare-43

A game about sacrificing things with an absurd number of swords, created for Ludum Dare 43.
C#
2
star
49

wgd-retro2017

WGD - Retro (2017)
C#
2
star
50

it-takes-two-advance

A port/demake of It Takes Two for the Game Boy Advance. No, seriously.
C
2
star
51

wgd-levelup-escape

A game made for the WGD LevelUp UK collaboration jam with the theme 'Escape'.
C#
2
star
52

ggj-2019

A game made for Global Game Jam 2019 (What Home Means to You).
C#
2
star
53

flipper

A game made for the Warwick Game Design 2-week jam with the theme "Spooky (2017)". This jam ran from 5/10/17 to 19/10/17.
C#
2
star