This file contains 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 System.Diagnostics; | |
using System.Reflection; | |
using TMPro; | |
using UnityEngine; | |
using Debug = UnityEngine.Debug; | |
public class ReflectionBenchmark : MonoBehaviour | |
{ |
This file contains 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
// Based on tutorial: | |
// https://learnopengl.com/#!Advanced-Lighting/Parallax-Mapping | |
Shader "Custom/ParallaxMapping" | |
{ | |
Properties | |
{ | |
_MainTex ("Diffuse", 2D) = "white" {} | |
_NormalMap ("Normal", 2D) = "white" {} | |
_NormalActive ("NormalActive", Int) = 1 |