Stix Games Documentation
Discord✨ Get on the asset store ✨
DirectX 11 Grass Shader
DirectX 11 Grass Shader
  • General
    • DirectX 11 Grass Shader
    • Quick Start
    • Grass Renderer Components
      • Nature Mesh Filter
      • Grass Renderer
    • Material Settings
      • Shader Variants
      • Performance Settings
      • Visual Settings
  • Advanced Features
    • Grass Painter
    • Interaction System
    • CPU Fallback
      • How-To: Set up the grass fallback component
      • Texture Atlas Renderer Settings
      • Grass Fallback Renderer
    • Grass Texture Atlas Templates
    • Global Shader Variables
  • Guides
    • Performance Optimization
    • Improve Visuals
    • Fix Visual Artifacts
    • Virtual Reality
    • Render Pipelines
Powered by GitBook
On this page

Was this helpful?

  1. Advanced Features

Global Shader Variables

You can use global shader variables to change all materials at once. This can be helpful for creating in-game graphics settings.

Global Shader Variables stay changed when you exit Play Mode!

The following table contains the currently supported global shader variables.

Shader Variable
Description

_GlobalTargetDensityMultiplier

Gets multiplied with the Target Density of each grass material. Since Target Density is higher when the number is smaller (for historical reasons), be careful: A multiplier above 1 reduces the density, while a multiplier below 1 increases it.

PreviousGrass Texture Atlas TemplatesNextPerformance Optimization

Last updated 5 months ago

Was this helpful?