您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
34 行
875 B
34 行
875 B
#ifndef SHADERPASS
|
|
#error Undefine_SHADERPASS
|
|
#endif
|
|
|
|
#define ATTRIBUTES_NEED_NORMAL
|
|
#define ATTRIBUTES_NEED_TANGENT
|
|
#define ATTRIBUTES_NEED_TEXCOORD0
|
|
#define ATTRIBUTES_NEED_TEXCOORD1
|
|
#define ATTRIBUTES_NEED_COLOR
|
|
|
|
#if defined(_REQUIRE_UV2) || defined(_REQUIRE_UV3) || defined(DYNAMICLIGHTMAP_ON) || defined(DEBUG_DISPLAY)
|
|
#define ATTRIBUTES_NEED_TEXCOORD2
|
|
#endif
|
|
#if defined(_REQUIRE_UV3) || defined(DEBUG_DISPLAY)
|
|
#define ATTRIBUTES_NEED_TEXCOORD3
|
|
#endif
|
|
|
|
#define VARYINGS_NEED_POSITION_WS
|
|
#define VARYINGS_NEED_TANGENT_TO_WORLD
|
|
#define VARYINGS_NEED_TEXCOORD0
|
|
#define VARYINGS_NEED_TEXCOORD1
|
|
#ifdef ATTRIBUTES_NEED_TEXCOORD2
|
|
#define VARYINGS_NEED_TEXCOORD2
|
|
#endif
|
|
#ifdef ATTRIBUTES_NEED_TEXCOORD3
|
|
#define VARYINGS_NEED_TEXCOORD3
|
|
#endif
|
|
#define VARYINGS_NEED_COLOR
|
|
|
|
#ifdef _DOUBLESIDED_ON
|
|
#define VARYINGS_NEED_CULLFACE
|
|
#endif
|
|
|
|
#include "../../ShaderPass/VaryingMesh.hlsl"
|