Skip to content

Instantly share code, notes, and snippets.

View cuddlepunk's full-sized avatar

demi cuddlepunk

View GitHub Profile
@baukeJansen
baukeJansen / MainLightNode.hlsl
Last active May 2, 2022 21:08
Modified Light Node (OG by @CiroContns on twitter) for Shader Graph 5.13.0
// Warning, because of a bug the code below marks UnityInput.hlsl and Lighting.hlsl as imported but only adds the required functionality
// Reason = error with redefined variables
//===============================================================================================================================================================================
// Stripped down version of: https://github.com/Unity-Technologies/ScriptableRenderPipeline/blob/master/com.unity.render-pipelines.lightweight/ShaderLibrary/UnityInput.hlsl
//===============================================================================================================================================================================
#ifndef LIGHTWEIGHT_SHADER_VARIABLES_INCLUDED
#define LIGHTWEIGHT_SHADER_VARIABLES_INCLUDED
// Light Indices block feature