Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Beginner question about shader - Using Grass.Unity tutorial

Discussion in 'Shaders' started by htwarrior, Mar 2, 2007.

  1. htwarrior

    htwarrior

    Joined:
    Feb 25, 2006
    Posts:
    40
    Hi , I have a (maybe ) silly problem with the Grass.Unity example :


    Every time I change the "Wave speed" property in the Inspector from the default values 9.500,4.500,-8.000 -3.500 to any other value , they return to the default values. Then, I have tried to change the source code of the shader "FX/WaterPlane (reflective&refractive)" :

    for example when trying

    uniform float4 WaveSpeed = float4(0.0,0.0,0.0,0.0);

    The values in the Inspector also remain 9.500,4.500,-8.000 -3.500. How do i change the value of this property?

    Thanks