Pixel Art Shader In Unity | Basic Tutorial

Аватар автора
FitCycle: здоровье и стройность
Learn how to make a pixelated effect in Unity, no shaders required! Steps for Fixed Resolution: - Create a Render Texture. - Set it to your desired resolution. - Make your Main Camera output to it. - Create a second Camera that only renders the Render Texture in the form of a Raw Image UI Element. Steps for Pixelated Effect: - Create a Render Texture - Set it to your "Sprite" resolution. - Put your subject to render in a different Layer. - Have your Main Camera cull that layer - Have a "PixelCamera" cull all but that Layer, always facing the subject and output to the Render Texture (make sure it&"Background" is uninitialized). - Have a Quad on the Default Layer parented to the subject and always facing the PixelCamera. - Give this Quad an Unlit Material with the Render Texture (make sure Alpha Clipping is on). - Make sure the FOV is always capturing up to the edges of the subject (use trigonometry baby... or my script). - Add a shader to either the subject or the quad for different effects =O I deleted the Library file to save space but Unity should re-download it upon import. I made the project using URP and Shadergraph but only for the outline and toon shader so it can be done in HDRP and Standard Unity. Made in Unity 2019.3.13f1

0/0


0/0

0/0

0/0