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

Particles won't apply shaders correctly during in-game rendering!!

Discussion in 'General Graphics' started by Wizcas, Mar 23, 2015.

  1. Wizcas

    Wizcas

    Joined:
    Feb 28, 2015
    Posts:
    14
    I met this crazy problem and have no idea what's going on totally...
    I was trying to build a coin spraying particle system, and made the particle texture like this (a PNG file):
    upload_2015-3-23_18-53-54.png

    I set the material shader as Particle/Alpha Blended, tinted the coins with 2 colors randomly, and everything works fine in the particle simulation:

    SCENE VIEW:
    upload_2015-3-23_18-55-19.png
    GAME VIEW:
    upload_2015-3-23_18-55-29.png

    BUT the material is rendered like this as soon as entering game-play mode:
    upload_2015-3-23_18-56-35.png

    I've tried all means I could think about, including:
    - Set the texture background to black and save as .jpg
    - Set the Alpha in grayscale in the texture import window
    - Set the shader to Alpha Blended Premultiply, Transparent, Transparent Cutout, etc...
    And finally I found no shader setting is applied to the particles in game-play rendering mode, no matter what shader it is...

    I'm using Unity 5 and I've googled for over 2 hours without any helpful solution.. Can anyone help me please? It's driving me mad!
     
    Dealzu-The-Wikid likes this.
  2. Dealzu-The-Wikid

    Dealzu-The-Wikid

    Joined:
    Feb 15, 2013
    Posts:
    3
    I am having the same issue and it is driving me crazy, I have tried setting the material to every single available option with no luck, everything still shows up as a square still for me!
     
  3. Wizcas

    Wizcas

    Joined:
    Feb 28, 2015
    Posts:
    14
    Can't believe I'm not the only one...Hopefully this is not some kind of bug:(
     
  4. Wizcas

    Wizcas

    Joined:
    Feb 28, 2015
    Posts:
    14
    I've found the problem - I'm such an idiot. I accidentally changed the shaders of all child renderers of the turrent in my code for highlighting, including the particle system. Hope this can give you a hint. =]
     
    theANMATOR2b likes this.