30 lines
1.4 KiB
HLSL
30 lines
1.4 KiB
HLSL
// Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt)
|
|
// This code in no way belongs to BrainFailProductions. I have just made a small change to make
|
|
// it work with texture arrays
|
|
|
|
|
|
#ifndef UNITY_STANDARD_CORE_FORWARD_INCLUDED
|
|
#define UNITY_STANDARD_CORE_FORWARD_INCLUDED
|
|
|
|
#if defined(UNITY_NO_FULL_STANDARD_SHADER)
|
|
# define UNITY_STANDARD_SIMPLE 1
|
|
#endif
|
|
|
|
#include "Includes/BatchFewStandardConfig.cginc"
|
|
|
|
#if UNITY_STANDARD_SIMPLE
|
|
#include "Includes/BatchFewStandardCoreForwardSimple.cginc"
|
|
VertexOutputBaseSimple vertBase (VertexInput v) { return vertForwardBaseSimple(v); }
|
|
VertexOutputForwardAddSimple vertAdd (VertexInput v) { return vertForwardAddSimple(v); }
|
|
half4 fragBase (VertexOutputBaseSimple i) : SV_Target { return fragForwardBaseSimpleInternal(i); }
|
|
half4 fragAdd (VertexOutputForwardAddSimple i) : SV_Target { return fragForwardAddSimpleInternal(i); }
|
|
#else
|
|
#include "Includes/BatchFewStandardCore.cginc"
|
|
VertexOutputForwardBase vertBase (VertexInput v) { return vertForwardBase(v); }
|
|
VertexOutputForwardAdd vertAdd (VertexInput v) { return vertForwardAdd(v); }
|
|
half4 fragBase (VertexOutputForwardBase i) : SV_Target { return fragForwardBaseInternal(i); }
|
|
half4 fragAdd (VertexOutputForwardAdd i) : SV_Target { return fragForwardAddInternal(i); }
|
|
#endif
|
|
|
|
#endif // UNITY_STANDARD_CORE_FORWARD_INCLUDED
|