MTOON対応時はUnityCGを用いない

This commit is contained in:
notargs
2023-04-25 11:05:11 +09:00
parent 9514e7abe1
commit 86207b7cbd
10 changed files with 20 additions and 0 deletions

View File

@@ -1,8 +1,10 @@
#ifndef VRMC_MATERIALS_MTOON_ATTRIBUTE_INCLUDED
#define VRMC_MATERIALS_MTOON_ATTRIBUTE_INCLUDED
#ifndef MTOON_URP
#include <UnityCG.cginc>
#include <AutoLight.cginc>
#endif
struct Attributes
{

View File

@@ -1,7 +1,9 @@
#ifndef VRMC_MATERIALS_MTOON_FORWARD_FRAGMENT_INCLUDED
#define VRMC_MATERIALS_MTOON_FORWARD_FRAGMENT_INCLUDED
#ifndef MTOON_URP
#include <UnityCG.cginc>
#endif
#include "./vrmc_materials_mtoon_define.hlsl"
#include "./vrmc_materials_mtoon_utility.hlsl"
#include "./vrmc_materials_mtoon_input.hlsl"

View File

@@ -1,8 +1,10 @@
#ifndef VRMC_MATERIALS_MTOON_FORWARD_VERTEX_INCLUDED
#define VRMC_MATERIALS_MTOON_FORWARD_VERTEX_INCLUDED
#ifndef MTOON_URP
#include <UnityCG.cginc>
#include <AutoLight.cginc>
#endif
#include "./vrmc_materials_mtoon_define.hlsl"
#include "./vrmc_materials_mtoon_utility.hlsl"
#include "./vrmc_materials_mtoon_input.hlsl"

View File

@@ -1,7 +1,9 @@
#ifndef VRMC_MATERIALS_MTOON_GEOMETRY_NORMAL_INCLUDED
#define VRMC_MATERIALS_MTOON_GEOMETRY_NORMAL_INCLUDED
#ifndef MTOON_URP
#include <UnityCG.cginc>
#endif
#include "./vrmc_materials_mtoon_define.hlsl"
#include "./vrmc_materials_mtoon_utility.hlsl"
#include "./vrmc_materials_mtoon_input.hlsl"

View File

@@ -1,7 +1,9 @@
#ifndef VRMC_MATERIALS_MTOON_GEOMETRY_UV_INCLUDED
#define VRMC_MATERIALS_MTOON_GEOMETRY_UV_INCLUDED
#ifndef MTOON_URP
#include <UnityCG.cginc>
#endif
#include "./vrmc_materials_mtoon_define.hlsl"
#include "./vrmc_materials_mtoon_utility.hlsl"
#include "./vrmc_materials_mtoon_input.hlsl"

View File

@@ -1,7 +1,9 @@
#ifndef VRMC_MATERIALS_MTOON_GEOMETRY_VERTEX_INCLUDED
#define VRMC_MATERIALS_MTOON_GEOMETRY_VERTEX_INCLUDED
#ifndef MTOON_URP
#include <UnityCG.cginc>
#endif
#include "./vrmc_materials_mtoon_define.hlsl"
#include "./vrmc_materials_mtoon_utility.hlsl"
#include "./vrmc_materials_mtoon_input.hlsl"

View File

@@ -1,7 +1,9 @@
#ifndef VRMC_MATERIALS_MTOON_INPUT_INCLUDED
#define VRMC_MATERIALS_MTOON_INPUT_INCLUDED
#ifndef MTOON_URP
#include <UnityShaderVariables.cginc>
#endif
// Textures
UNITY_DECLARE_TEX2D(_MainTex);

View File

@@ -1,7 +1,9 @@
#ifndef VRMC_MATERIALS_MTOON_LIGHTING_MTOON_INCLUDED
#define VRMC_MATERIALS_MTOON_LIGHTING_MTOON_INCLUDED
#ifndef MTOON_URP
#include <UnityShaderVariables.cginc>
#endif
#include "./vrmc_materials_mtoon_define.hlsl"
#include "./vrmc_materials_mtoon_utility.hlsl"
#include "./vrmc_materials_mtoon_input.hlsl"

View File

@@ -1,9 +1,11 @@
#ifndef VRMC_MATERIALS_MTOON_LIGHTING_UNITY_INCLUDED
#define VRMC_MATERIALS_MTOON_LIGHTING_UNITY_INCLUDED
#ifndef MTOON_URP
#include <UnityCG.cginc>
#include <AutoLight.cginc>
#include <Lighting.cginc>
#endif
#include "./vrmc_materials_mtoon_define.hlsl"
#include "./vrmc_materials_mtoon_input.hlsl"
#include "./vrmc_materials_mtoon_attribute.hlsl"

View File

@@ -1,7 +1,9 @@
#ifndef VRMC_MATERIALS_MTOON_UTILITY_INCLUDED
#define VRMC_MATERIALS_MTOON_UTILITY_INCLUDED
#ifndef MTOON_URP
#include <UnityCG.cginc>
#endif
// define
static const float PI_2 = 6.28318530718;