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

Incorrect IN.normal on android

Discussion in 'Shaders' started by Spixy, Oct 2, 2017.

  1. Spixy

    Spixy

    Joined:
    Sep 17, 2014
    Posts:
    5
    Hello, I am using default unlit shader in unity 5.3.6 (below in CG version).
    • so vertex shader is defined as v2f vert (appdata IN) { ... }
    • in Editor everything works, IN.normal is for every vertex different
    • on Android, IN.normal seems to be 0,0,1 for whole model
    • I am using render texture inside of Canvas (and second camera) to render it
    Screenshots of normals: Editor, Android

    Edit: created issue https://fogbugz.unity3d.com/default.asp?956667_2rfjik4okkiii57r
     

    Attached Files:

    Last edited: Oct 6, 2017
  2. drolak

    drolak

    Joined:
    Jan 21, 2014
    Posts:
    49
    Hey,
    Did you manage to solve this?