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.

Advanced foliage shader [released]

Discussion in 'Assets and Asset Store' started by larsbertram1, Apr 24, 2012.

  1. tequyla

    tequyla

    Joined:
    Jul 22, 2012
    Posts:
    335
    asset concerned: Advanced Foliage Shaders v.4

    unity 2020.3.29f1


    3 errors with old code. Below a first try to fix on 2 files.


    error type:

    assets\advanced foliage shader v4\scripts\foliage tool afs v4\afsfoliagetool.cs(185,14): error cs0117: 'handles' does not contain a definition for 'circlecap'


    SetupAdvancedFoliageShader.cs
    Code (CSharp):
    1. if(SyncWindDir) {
    2.             //Handles.ArrowCap(0, transform.position, transform.rotation, hsize);
    3.             Handles.ArrowHandleCap(0, transform.position, transform.rotation, hsize, EventType.Repaint);
    4.  
    5.         }
    6.         else {
    7.             Quaternion rotation = Quaternion.LookRotation(new Vector3(Wind.x, Wind.y, Wind.z));
    8.             //Handles.ArrowCap(0, transform.position, rotation, hsize);
    9.             Handles.ArrowHandleCap(0, transform.position, rotation, hsize, EventType.Repaint);
    10.         }
    11.  
    AfsFoliageTool.cs
    Code (CSharp):
    1. Handles.color = Color.green;
    2.                     //Handles.CircleCap(0, offset, rotation, size);
    3.                     Handles.CircleHandleCap(0, offset, rotation, size, EventType.Repaint);
    4.  
    let me know if the asset works now.

    ++

    Teq.
     
    Last edited: May 13, 2022
  2. Unity2033

    Unity2033

    Joined:
    Aug 5, 2022
    Posts:
    2
    Wondering is this asset gonna get some update, especially for urp support or this will get depreciated soon? Definitely gonna buy this asset even the price is getting higher.
     
  3. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    6,773
    cu
    rrently i do not plan any urp version. my Lux URP Essentials package contains grass, foliage and tree creator shaders. if you are only looking for a grass solution you might be interested in the advanced terrain grass.