Version: 2017.2

TrailRenderer.generateLightingData

매뉴얼로 전환
public bool generateLightingData ;

설명

Configures a trail to generate Normals and Tangents. With this data, Scene lighting can affect the trail via Normal Maps and the Unity Standard Shader, or your own custom-built Shaders.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { private TrailRenderer tr;

void Start() { tr = GetComponent<TrailRenderer>(); tr.material = new Material(Shader.Find("Standard")); tr.generateLightingData = true; } }