Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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,248
  3. Noob235

    Noob235

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