Search Unity

Using custom shader on imported mesh

Discussion in 'Shaders' started by Noob235, Oct 1, 2015.

  1. Noob235

    Noob235

    Joined:
    Sep 28, 2015
    Posts:
    2
    I wrote a fragment-shader that simply shows a preset texture. Everything works well if i use it on one of unitys primitives meshes but when i use it on a custom mesh, that i imported from blender something strange happens.

    The object shows no longer the hole preset texture but a single pixel from it. So that the hole object is painted in the color of this pixel. I'm not sure but it seems to be pixel in the upper right corner of the preset texture. It almost looks like the shader processes only one fragment. Is that possible ?

    If i use my imported object with one of unitys standard shaders it works well, so i guess importing isnt the problem. Or is there anything I should be aware of when importing ?

    btw i'm new to blender and i hope i didn't messed up there.


    Thanks
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,348
  3. Noob235

    Noob235

    Joined:
    Sep 28, 2015
    Posts:
    2
    Thanks a lot thats what i missed.