Skip to content

Kitbashery/3D-Pixel-Graphics-Toolkit

Repository files navigation

Unity Version GitHub OpenUPM Latest Documentation Contributing

3D Pixel Graphics Toolkit

HDRP shader graphs for creating pixel-style graphics in Unity 3D.

Youtube

    ^^^^^^^^^ Click to play Youtube video ^^^^^^^^

Features:

  • Pixelate Shader
  • Pixel Cloud Shader
  • Pixel Fluid Shader
  • Pixel Triplanar Shader

Pixel-Perfect Primitives:

Meshes with UVs optimized for pixel rendering.

  • Cube
  • Cylinder
  • Ramp
  • Sphere
  • Dome

Getting Started:

  1. Import the package.
  2. Import the demo scene found under the samples section in the package manager. (this will include the meshes).

Other things you may wish to do for a pixel-style project is to add an Import preset so imported textures have their import setting automatically set to:

  • Max size set to "32".
  • Filter Mode set to "Point (no filter)".
  • Compression set to "none". This will save a lot of time messing with the import settings.

It is also good to note that for 16x16 textures that one pixel in world units scale is 0.0625 and that magic number helps when snapping scale values acheive a uniform look.

It should also be noted that although primitive meshes such as the ramp, dome and sphere have UVs optimized for pixel perfect rendering there is geometric limitations that will still result in stretching. It is best to keep those meshes scaled uniformly, however checking sloped surface in the triplanar shader's material properties may help with some cases.

Also if you notice textures are not tiling then try using material instancing instead of static batching.


The name Kitbashery & all associated images Copyright © 2023 Kitbashery. All Rights Reserved.