playdeadgames / temporal

Temporal Reprojection Anti-Aliasing for Unity 5.0+
MIT License
1.84k stars 192 forks source link

Switch Support #21

Closed AlteregoGames closed 5 years ago

AlteregoGames commented 5 years ago

I noticed that Inside is also running on the Nintendo Switch, and I think it is also using this TAA. However this repo doesn't seem to work on the Switch, could this perhaps be added?

On a side note, thanks so much for sharing this!

AlteregoGames commented 5 years ago

update: it does work, but Unity does not yet have a #pragma for the nintendo switch (https://docs.unity3d.com/Manual/SL-ShaderPrograms.html)

To make it work, comment this line in VelocityBuffer.shader and TemporalReprojection.shader:

pragma only_renderers ps4 xboxone d3d11 d3d9 xbox360 opengl glcore gles3 metal vulkan

Or wrap it:

if !UNITY_SWITCH

     #pragma only_renderers ps4 xboxone d3d11 d3d9 xbox360 opengl glcore gles3 metal vulkan

endif