Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

LightweightPipeline problem

Discussion in '2018.2 Beta' started by chamele0n, Jun 15, 2018.

  1. chamele0n

    chamele0n

    Joined:
    Jan 19, 2016
    Posts:
    2
    Hi,
    i get base "LightweightPipeline/Standard (Physically Based)" and added the function of changing the mesh vertices:
    Code (CSharp):
    1. LightweightVertexOutput LitPassVertex(VertexInstanceInput v)
    2.             {
    3.                 LightweightVertexOutput o = (LightweightVertexOutput)0;
    4.              
    5.                 UNITY_SETUP_INSTANCE_ID(v);
    6.                 UNITY_TRANSFER_INSTANCE_ID(v, o);
    7.                 UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);
    8.  
    9.                 v.vertex = SkinningInstance(v);
    10.                 o.uv = TRANSFORM_TEX(v.texcoord, _MainTex);
    11. ...
    12.  
    The vertices have been changed, but a gray highlight appears on the texture when "Smoothness" is set, what i miss ??
    original shader: https://ibb.co/mUGhed
    custom shader:
    https://ibb.co/kbgLXy