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
"use strict"; | |
const clamp = (num, min, max) => num < min ? min : num > max ? max : num; | |
/** Given a temperature (in Kelvin), estimate an RGB equivalent | |
* @param {number} tmpKelvin - Temperature (in Kelvin) between 1000 and 40000 | |
* @returns {{r:number, g:number, b:number}} - RGB channel intensities (0-255) | |
* @description Ported from: http://www.tannerhelland.com/4435/convert-temperature-rgb-algorithm-code/ | |
*/ | |
exports.getRGBFromTemperature = function(tmpKelvin) { |
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
Shader "Standard-DoubleSided" | |
{ | |
Properties | |
{ | |
_Color("Color", Color) = (1,1,1,1) | |
_MainTex("Albedo", 2D) = "white" {} | |
_Cutoff("Alpha Cutoff", Range(0.0, 1.0)) = 0.5 | |
_Glossiness("Smoothness", Range(0.0, 1.0)) = 0.5 |