Skip to main content

Module material

Module material 

Source
Expand description

Unity materials as stored: the shader’s name and render state (decoded into crate::shader’s types), and the saved properties (textures with their tiling and offset, floats, integers, colours), keywords, tags and render queue. What they mean depends on the shader.

Structs§

ShaderData
A Shader’s name and render state (m_ParsedForm); its compiled programs are not read.
TexEnv
A texture property: the texture (None: no texture set) and its tiling (_ST) with Unity’s bottom-left origin.
UnityMaterialData
A Material as stored, its properties in stored order.

Functions§

shader_name
The name of the Shader r (m_ParsedForm.m_Name).