Skip to content

Instantly share code, notes, and snippets.

View Saduras's full-sized avatar

David Speck Saduras

  • Amsterdam
View GitHub Profile
@Saduras
Saduras / ReflectionBenchmark.cs
Last active September 24, 2017 13:21
Reflection benchmark
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
{
@Saduras
Saduras / ParallaxMapping.shader
Last active February 11, 2024 10:28
Parallax mapping shader for Unity
// 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