Search Unity

Sparkle Shader with textures for sparkles

Discussion in 'Shaders' started by sooraj2906, May 7, 2018.

  1. sooraj2906

    sooraj2906

    Joined:
    Nov 17, 2017
    Posts:
    2
    So I am trying to create a demo for a diamond ring in AR using Vuforia. I have the materials set up and used pbr shaders for the diamond and the gold ring. And this is my output as of now.
    upload_2018-5-7_19-30-44.png

    Now what I need is the glitter or the sparkle effect for the diamond. I went through many forums and couldn't find a suitable shader for the glitter effect. I found this one for the sparkle effect though.
    https://github.com/LasseWestmark/Sparkle-Shader-Unity
    I tried using this shader as a second material in my diamond, but i effect is not that good, in the sense i cant see those effects as the diamonds are reflective. The glitters are like white spots created with reference to the normal and the view angle. So can we modify the shader so that the white glitters can be replaced with sparkle textures and made as those textures are used as glitters on the surface of the diamond. Btw I am a noob in custom shaders. So any help is appreciated.
     

    Attached Files:

  2. sooraj2906

    sooraj2906

    Joined:
    Nov 17, 2017
    Posts:
    2
    EDIT : This is the effect I'm trying to recreate.
     
  3. Sura1702

    Sura1702

    Joined:
    Nov 13, 2017
    Posts:
    1
    Hi Mr. Sooraj,
    I am Sundaresan. Can i please know how u created the Diamond material in Unity for AR using Vuforia?
    If u can help me, kindly do the needful..
     
    AnaPas likes this.