Cyanilux / URP_ShaderGraphCustomLighting

Some custom lighting functions/sub-graphs for Shader Graph, Universal Render Pipeline
MIT License
558 stars 63 forks source link

VERSION_GREATER_EQUAL doesn't exist #5

Closed PythagoRascal closed 1 year ago

PythagoRascal commented 3 years ago

Hi!

First off, thank you so much for this example repo! I've spent way too long searching for a way to make unlit shadows work and only finding outdated posts.

One thing I had to do to make your repo work, was adding one line to CustomLighting.hlsl to fix an error that said that VERSION_GREATER_EQUAL does not exist. The line in question is:

#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Version.hlsl"

I'm on my MacBook Pro (Big Sur 11.5, Metal) on URP version 11.0.0. Not sure if this is necessary only for Mac or only for newer versions of URP though.

Cheers!