Search Unity

Cross-Hatching Shader finished

Discussion in 'Shaders' started by xsernakatomi, May 22, 2012.

  1. xsernakatomi

    xsernakatomi

    Joined:
    Apr 19, 2012
    Posts:
    25
  2. ufo_driver

    ufo_driver

    Joined:
    Jul 6, 2011
    Posts:
    93
  3. xsernakatomi

    xsernakatomi

    Joined:
    Apr 19, 2012
    Posts:
    25
    Hey ufo_Driver,

    thank you very much. now it looks correct like on the paper i was reading. I was on the way starting to read some surface shaders to implement it, very very nice! :) You made my day!


    bye
     
  4. Dascumaru

    Dascumaru

    Joined:
    Mar 28, 2013
    Posts:
    3
    I'm having difficulties in getting this to work (in Unity 4).

    The lighting completely does not work and it simply renders the model with one of the textures.

    Could anyone help me out, perhaps by uploading a demo scene of this shader?
     
  5. Gibbonator

    Gibbonator

    Joined:
    Jul 27, 2012
    Posts:
    204
    I got ufo_driver's shader to work. Although confusingly I had to reverse the order of the hatching textures for the lighting to look correct. So Hatch 0 should use hatch_5.jpg, Hatch 1 should use hatch_4.jpg etc.
     
  6. Sylker

    Sylker

    Joined:
    Sep 22, 2012
    Posts:
    22
    Thanks @xsernakatomi, @ufo_Driver and everyone working on this. It's working for me as for @Gibbonator, changing ther texture's order. Now I want to keep the base texture under the hatchings, but no success so far. Just beginning messing with shaders so if someone have some clue or direction, I will appreciate =)

    Edit: Got this one working gratefully:

    http://answers.unity3d.com/answers/506866/view.html
     
    Last edited: Aug 3, 2013
  7. Germille

    Germille

    Joined:
    Apr 13, 2013
    Posts:
    2
    how did you manage to mantain the base texture?