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
//Original code from: | |
//https://github.com/RishiAstra/Survive-From-Scratch/blob/21d98a4dcbb3ef25a79bb3ca9733b35b866eda74/Assets/AwesomeTechnologies/VegetationStudio/Utility/LightProbeUtility.cs | |
//Added EvaluateSH2 method to evaluate the SH2 with C#, so it will work with Unity Jobs | |
public class LightProbeUtility | |
{ | |
public struct LightProbeData | |
{ | |
public Vector4 unity_SHAr; | |
public Vector4 unity_SHAg; | |
public Vector4 unity_SHAb; |
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 "Hidden/SpecularDiffuseToAlbedo" | |
{ | |
SubShader | |
{ | |
// No culling or depth | |
Cull Off ZWrite Off ZTest Always | |
Pass | |
{ |
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
precision highp float; | |
varying vec2 vUv; | |
varying vec3 vecPos; | |
varying vec3 vecNormal; | |
uniform sampler2D _Diffuse; | |
uniform sampler2D _Specular; | |
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
global proc CreateUI() { | |
global int $job; | |
if (`window -ex _uv_window`) { | |
return; | |
} | |
$job = `scriptJob -idleEvent UpdateUI`; | |
window -t "UV Coordinates Editor" _uv_window; | |
columnLayout; | |
rowLayout -numberOfColumns 4; | |
text "u"; |