Announcement

Collapse
No announcement yet.

Vertex Shaders in custom nodes?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Vertex Shaders in custom nodes?

    I've been reading these great series for c++ programmers who work on rendering:
    https://medium.com/@lordned/unreal-e...a-80317e1ae5f3

    I'm starting to miss the point of them...

    Can we create a simple vertex shader assigned to a material the same way unity does?
    I've been told 99% of fragment shaders (aka pixel shaders but wrong name) can be done via the Material Editor... can we create vertex shaders too ?

    Thanks

    #2
    You can't create a vertex shader in material editor, but you can force a part of material graph to be calculated in vertex shader by using vertex interpolator material expression.

    Comment


      #3
      Originally posted by Deathrey View Post
      You can't create a vertex shader in material editor, but you can force a part of material graph to be calculated in vertex shader by using vertex interpolator material expression.
      I received a different comment from somebody else who says I actually CAN add vertex shader code to a custom node... (not optimized, though).

      Ugh...

      Comment


        #4
        Originally posted by darkgaze View Post

        I received a different comment from somebody else who says I actually CAN add vertex shader code to a custom node... (not optimized, though).

        Ugh...
        It's as optimized as any shader code. It's just don't have any materialeditor special optimizations. Like precalculations for dynamic parameters.

        Comment

        Working...
        X