Logo Test 2019
  • Tile Composer
      • Back
      • Documentation
          • Back
          • Introduction
          • Documentation: Tile Collections
          • Documentation: Tile
          • Documentation: Tile Composer
          • Documentation: Solvers
          • Documentation: Helpful Tools
          • Tutorial: Empty Tiles
          • Tutorial: Connectors
          • Tutorial: Neighbors from mesh
          • Tutorial: Neighbor matrix editing
          • Combining Workflows
          • Tutorial: Multiple Tile Composer Passes
          • Custom Grid Types
  • DirectX 11 Grass Shader
      • Back
      • Documentation
          • Back
          • General Overview
          • Grass Painter
          • Interaction System
          • CPU Fallback
          • Grass Texture Atlas Templates
          • Performance Optimization
          • Improve Visuals
          • Virtual Reality
          • Using URP and HDRP
          • Upgrade to version 2
  • Contact

Documentation

  • General Overview
  • Grass Painter
  • Interaction System
  • CPU Fallback
  • Grass Texture Atlas Templates
  • Performance Optimization
  • Improve Visuals
  • Virtual Reality
  • Using URP and HDRP
  • Upgrade to version 2

Table of Contents

  • Upgrade guide to version 2.x
  • Upgrade the grass objects
  • Upgrade the interaction system
    • Upgrade the interaction camera
    • Upgrade all interaction objects
    • Upgrade trail renderer
DirectX 11 Grass Shader > Documentation > Upgrade to version 2

Upgrade guide to version 2.x

Version 2 of the shader introduces some breaking changes, this guide tries to make the necessary changes as easy as possible.

Upgrade the grass objects

Repeat these steps for each of your grass objects:

  1. Delete your grass object, but remember the settings of its renderer.
  2. Select your floor object
  3. Add Component: Stix Games > General > Nature Mesh Filter
  4. Add Component: Stix Games > General > Grass Renderer
  5. Select your grass material in the Grass Renderers Material Field
  6. Configure the grass renderer to match the settings of your old renderer
  7. Optional: Add grass fallback for unsupported hardware or low-end devices.

Upgrade the interaction system

The interaction system (former displacement system) is now more powerful and more straight forward to use, however, the performance cost has increased. Look at the performance optimization information for help at solving this problem once you've finished this problem.

Upgrade the interaction camera

  1. Rename your displacement camera to interaction camera (just for consistency)
  2. Look at the scripts attached to the camera. If the Render Texture Displacement script was automatically replaced, skip the next step, otherwise:
  3. Delete any missing scripts, then Add Component: Stix Games > Interaction > Render Texture Interaction

Upgrade all interaction objects

For each interaction object:

  1. Add Component to the new object: Stix Games > Interaction > Interaction Object
  2. Disable the mesh renderer, but don't delete it, it is used to store the material. You can enable the mesh renderer for debugging your interaction object.

The objects layer doesn't affect the grass interaction anymore.

Upgrade trail renderer

If the script wasn't replaced automatically, simply replace the old displacement trail renderer with the new interaction trail renderer.


If you think something is missing from this documentation page, or would like to give us feedback, please contact us through the contact form.
Logo Test 2019
© StixGames 2015 - 2023
All rights reserved.
The entered information could not be validated.
You will receive a mail to confirm your registration.

Impressum