열차 목업의 내부 확인용 프로젝트
smchoi
2024-07-24 ff74c0073046f0e086eb7d355950bda39937c92c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using UnityEngine;
 
// [ExecuteInEditMode] // Make mirror live-update even when not in play mode
public class MirrorScript : MonoBehaviour
{
    [Tooltip("Maximum number of per pixel lights that will show in the mirrored image")]
    public int MaximumPerPixelLights = 2;
 
    [Tooltip("Texture size for the mirror, depending on how close the player can get to the mirror, this will need to be larger")]
    public int TextureSize = 768;
 
    [Tooltip("Subtracted from the near plane of the mirror")]
    public float ClipPlaneOffset = 0.07f;
 
    [Tooltip("Far clip plane for mirro camera")]
    public float FarClipPlane = 1000.0f;
 
    [Tooltip("What layers will be reflected?")]
    public LayerMask ReflectLayers = -1;
 
    [Tooltip("Add a flare layer to the reflection camera?")]
    public bool AddFlareLayer = false;
 
    [Tooltip("For quads, the normal points forward (true). For planes, the normal points up (false)")]
    public bool NormalIsForward = true;
 
    [Tooltip("Aspect ratio (width / height). Set to 0 to use default.")]
    public float AspectRatio = 0.0f;
 
    [Tooltip("Set to true if you have multiple mirrors facing each other to get an infinite effect, otherwise leave as false for a more realistic mirror effect.")]
    public bool MirrorRecursion;
}