Skip to content

VoidWireInteractive/Unity-Stochastic-Shadergraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity-Stochastic-Shadergraph

Shadergraph package for stochastic texture manipulation for Unity HDRP

Important

This shadergraph was created using Unity 6 HDRP, thus a caveat is I am unsure of it's compatibility with previous versions of Unity/Shadergraph and other non-HDRP pipelines.

Warning

It is always a good idea to either back up your current project or create a completely separate project with your main project's settings before implementing packages!

Modernized Functionality

This shader offers standard functionality of the HDRP/Lit shader such as

  • Diffuse, Normal & Mask map texture output.
  • Tiling and Offsets
  • Remapping of Normal strength, Smoothness & Metallic channels of the mask map.

Note

A default value of 0.1 Metallic and 0.1 Smoothness will provide similar results as the HDRP/Lit default shader values.

Stoch Shader Vals

Example Use

Diffuse, Normal and Mask map textures across two adjacent planes, where the left is the default HDRP/Lit Shader material and the right is the Stochastic Shader.

1x1 tiling Similarity Comparison.

BaseTileNoS

6x6 Tiling - Stochastic Disabled

6x6 No Stoch

6x6 Tiling - Stochastic Enabled

6x6 Stoch On

Closer Stochastic Allocated Plane Comparison

Stochastic Disabled

Big Off

Stochastic Enabled

Big On

Further Information

Non-Ideal Texture For Stochastic Calculations

Caution

As outlined in the original Reddit post linked above, this shader's approach is not ideal for textures reliant on pronounced patterns and defined details. See the below example.

5x5 Tile Stochastic Disabled

BrickOff

5x5 Tile Stochastic Enabled

Brick On

About

Shadergraph package for stochastic texture manipulation for Unity HDRP

Resources

License

Stars

Watchers

Forks

Packages

No packages published