Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 1.37 KB

File metadata and controls

15 lines (9 loc) · 1.37 KB

Unity Procedural Stochastic Texturing Node for Shader Graph

Procedural stochastic texturing node for Unity's Shader Graph, to fix repeated tile patterns on tiled textures.

For terrain: https://github.com/JuniorDjjr/Unity-Procedural-Stochastic-Texture-Terrain-Shader

Just use this file as a custom function node for Shader Graph. Color and normal/bump versions map are separated.

Limitation: The UV is calculated locally at the object's UV position, so the edges of objects will not be seamless for the same texture. Someone more experienced than me can try UV randomation by world space, or you can try something like vertex color to define a mask where the effect is applied.

This solution can also be adapted into other games, such as GTA San Andreas:

From rotoscope adaptation, based on Thomas Deliot and Eric Heitz paper, implemented by me (Junior_Djjr) for Unity shader graph.