mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-10-02 15:53:30 -05:00
MTOON対応時はUnityCGを用いない
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user