Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Our response to Improbable’s blog post (and why you can keep working on your SpatialOS game). Read more here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

How to change the texture for detecting planes in ARCore 1.2

Discussion in 'ARCore' started by Aupuma, May 10, 2018.

  1. Aupuma

    Aupuma

    Joined:
    Feb 15, 2017
    Posts:
    17
    Hi, I'm trying to use a different texture for the detecting planes, but with the PlaneGrid material, the texture only uses its black/white data.
    I want the material to be opaque or at least transparent with the colors from the texure and I tried using the standard material or the diffuseWithLightEstimation but it only shows a solid color.

    I know it could be done editing the ARCore PlaneGrid.shader but I have no idea about editing shaders, help me please... :confused:
     
  2. Pauleta

    Pauleta

    Joined:
    Aug 8, 2013
    Posts:
    15
    Make a copy of the ARCore/PlaneGrid shader and replace the fragment shader
    Code (CSharp):
    1. fixed4 frag(v2f i) : SV_Target
    2. {
    3.   fixed4 col = tex2D(_MainTex, i.uv);
    4.   return col;
    5. }
     
  3. Jatin_J3

    Jatin_J3

    Joined:
    Oct 31, 2014
    Posts:
    3
    I want to add real time reflection on plane grid shader.How can i do that?
    I have used several solutions but wasnt able to find a proper one.Any help would be appreciated.