This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| [RequireComponent(typeof(RectTransform))] | |
| [RequireComponent(typeof(Image))] | |
| public class RaycastMaskTest : MonoBehaviour, ICanvasRaycastFilter { | |
| [SerializeField] | |
| private float _ignoreAlpha = 0f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class OutlineSwitch : MonoBehaviour { | |
| public Material _mtl; | |
| public Color _color; | |
| // Use this for initialization | |
| void Start () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEditor; | |
| public class WMipmapBias | |
| { | |
| [MenuItem("Assets/SetMipmapBias5")] | |
| public static void SetMipmapBias5() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shader "Custom/ZOffsetStandard" { | |
| Properties { | |
| _Color ("Color", Color) = (1,1,1,1) | |
| _MainTex ("Albedo (RGB)", 2D) = "white" {} | |
| _Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
| _Metallic("Metallic", Range(0,1)) = 0.0 | |
| _ZOffset ("ZOffset", Range(-100,100)) = 0.0 | |
| } | |
| SubShader { | |
| Tags { "RenderType"="Opaque" } |
NewerOlder