Volumetric Ice Shader

 

This is an ice shader that showcases the offset of textures while looking from different angles. Rather by simply putting some ice textures on the model. This shader allows customizing ice textures and the level of offset

round_gif.gif
202202101617(1).gif

The overall nodes

step1

The camera vector is transformed into tangent vector, and by connecting it with the Custom Reflection Vector node, we are getting the reflection tangent normal

step2

The transmission offset vector can be generated by getting the absolute value of the reflection normal and divided by the Z normal

step3

The offset is also affected by the resolution of the texture sample. The one I am using is 512x512.