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
/// | |
/// Draw lines at runtime | |
/// by Nothke | |
/// unlicensed, aka do whatever you want with it | |
/// made during Stugan 2016 :) | |
/// ..(it's midnight, and Robbie clicks A LOT, LOUDLY!) | |
/// | |
/// Important: | |
/// - Should be called in OnPostRender() (after everything else has been drawn) | |
/// therefore the script that calls it must be attached to the camera |
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/Cook-Torrance" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_BumpMap("Normal Map", 2D) = "bump" {} | |
_Metallic("Metallic", Range(0,1)) = 0.5 | |
_MetallicTex("Metallic", 2D) = "white" {} | |
_Roughness("Roughness", Range(0.000000001,1)) = 0.5 | |
_RoughnessTex("Roughness", 2D) = "white" {} | |
_Fresnel("Fresnel Value", Float) = 0.028 |
NewerOlder