Voxel Plugin
2.0p-304
2.0p-304
  • Home
    • Roadmap
    • Release Notes
  • Getting Started
    • Installing Voxel Plugin
    • Using MetaGraphs
      • Using the MetaGraph Preview
      • Finding the Right Nodes
      • Variables and Parameters
    • Step-by-Step Guides
      • Getting Started with Smooth Terrains
      • Getting Started with Blocky Terrains
      • Getting Started with Foliage
      • Getting Started with Materials
  • Landmass & MetaGraphs
    • Design Philosophy
      • What are Landmass & MetaGraphs
      • A Technical Exploration of MetaGraphs
    • Deep Dives into MetaGraphs
      • Passing Data to Materials
      • Working with Curves
      • Working with Landmass
        • Using Landmass Height Brushes
        • Scale and Resolution for Landmass Brushes
        • Complex Usecases for Landmass Brushes
      • Choosing the right Chunk Spawner
      • Using Height Canvases
      • MetaGraph Macros
      • Floats and Density
      • Buffers and Uniforms
    • Optimizing MetaGraphs
      • Utilities for Performant Graphs
      • Memory Usage & Render Performance
      • Profiling Generation Times
    • Extending MetaGraphs through C++
Powered by GitBook
On this page

Was this helpful?

  1. Landmass & MetaGraphs
  2. Deep Dives into MetaGraphs

Passing Data to Materials

PreviousDeep Dives into MetaGraphsNextWorking with Curves

Last updated 2 years ago

Was this helpful?

This page is a stub. This means that the information on this topic will be significantly expanded in the future. What is currently on this page is an incomplete picture.

Any data that can be represented as a float can be passed into materials from a MetaGraph. Information can be passed using Vertex Data, or using detail textures.

The Vertex Data's Color and Texture Coordinate pins can be used to transmit vertex data. The Detail Texture's Color pin will create a texture at a higher resolution than the mesh' vertex density, and can then be retrieved in a material using the Voxel_GetDetailTextures UV pin to sampe a Texture Parameter named VoxelDetailTextures_<NAME>Texture, with <NAME> being identical to your MetaGraph node's Name pin.