Browse Source
Got rid of the global callbacks thing and made callbacks a local field of the Fsr2ImageEffect script.
Got rid of the global callbacks thing and made callbacks a local field of the Fsr2ImageEffect script.
This way different applications of FSR2 within the same game can have different callbacks applied to them. For example: a camera for rendering a 3D UI image to a render texture can have callbacks to apply mipmap bias only to the assets being drawn for the UI.mac-autoexp
3 changed files with 11 additions and 16 deletions
-
7Assets/Scripts/Core/Fsr2.cs
-
8Assets/Scripts/Fsr2ImageEffect.cs
-
10Assets/Scripts/Fsr2PostProcessEffect.cs
Write
Preview
Loading…
Cancel
Save
Reference in new issue