v0.3
This commit is contained in:
1 parent
ede05dcfb1
commit
34ee00a443
14 files changed
+804
-18
No files matched your search
+21
-10
@@ -1,4 +1,4 @@
|
|||||||
Shader "BSDF//URP"
|
Shader "BSDF/URP"
|
||||||
{
|
{
|
||||||
Properties
|
Properties
|
||||||
{
|
{
|
||||||
@@ -7,6 +7,7 @@ Shader "BSDF//URP"
|
|||||||
_Metallic("金属度", Range(0, 1)) = 0.0
|
_Metallic("金属度", Range(0, 1)) = 0.0
|
||||||
_Smoothness("光滑度", Range(0, 1)) = 0
|
_Smoothness("光滑度", Range(0, 1)) = 0
|
||||||
_EmissionColor("自发光颜色", Color) = (0, 0, 0, 1)
|
_EmissionColor("自发光颜色", Color) = (0, 0, 0, 1)
|
||||||
|
_EmissionStrength("自发光强度", Float) = 0
|
||||||
_LightMap("光照贴图", 2D) = "white" {}
|
_LightMap("光照贴图", 2D) = "white" {}
|
||||||
}
|
}
|
||||||
SubShader
|
SubShader
|
||||||
@@ -16,14 +17,14 @@ Shader "BSDF//URP"
|
|||||||
"RenderType" = "Opaque"
|
"RenderType" = "Opaque"
|
||||||
}
|
}
|
||||||
HLSLINCLUDE
|
HLSLINCLUDE
|
||||||
#pragma multi_compile _MAIN_LIGHT_SHADOWS //主光源阴影
|
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS //主光源阴影
|
||||||
#pragma multi_compile _MAIN_LIGHT_SHADOWS _MAIN_LIGHT_SHADOWS_CASCADE//主光源级联阴影
|
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS_CASCADE//主光源级联阴影
|
||||||
#pragma multi_compile _MAIN_LIGHT_SHADOWS _MAIN_LIGHT_SHADOWS_SCREEN//主光源屏幕空间阴影
|
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS_SCREEN//主光源屏幕空间阴影
|
||||||
#pragma multi_compile _ADDITIONAL_LIGHT_LAYERS//附加光源
|
#pragma multi_compile _ _ADDITIONAL_LIGHT_LAYERS//附加光源
|
||||||
#pragma multi_compile _ADDITIONAL_LIGHT_COOKIES//附加光源烘焙
|
#pragma multi_compile _ _ADDITIONAL_LIGHT_COOKIES//附加光源烘焙
|
||||||
#pragma multi_compile _ADDITIONAL_SCREEN_SPACE_SHADOWS//附加光源屏幕空间阴影
|
#pragma multi_compile _ _ADDITIONAL_SCREEN_SPACE_SHADOWS//附加光源屏幕空间阴影
|
||||||
#pragma multi_compile _ADDITIONAL_LIGHT_SHADOWS//附加光源
|
#pragma multi_compile _ _ADDITIONAL_LIGHT_SHADOWS//附加光源
|
||||||
#pragma multi_compile _SHADOWS_SOFT_SHADOWS//软阴影
|
#pragma multi_compile _ _SHADOWS_SOFT_SHADOWS//软阴影
|
||||||
|
|
||||||
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
|
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
|
||||||
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl"
|
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl"
|
||||||
@@ -33,6 +34,7 @@ Shader "BSDF//URP"
|
|||||||
float _Metallic;
|
float _Metallic;
|
||||||
float _Smoothness;
|
float _Smoothness;
|
||||||
float4 _EmissionColor;
|
float4 _EmissionColor;
|
||||||
|
float _EmissionStrength;
|
||||||
CBUFFER_END
|
CBUFFER_END
|
||||||
|
|
||||||
TEXTURE2D(_BaseMap);
|
TEXTURE2D(_BaseMap);
|
||||||
@@ -109,6 +111,9 @@ Shader "BSDF//URP"
|
|||||||
data.fogCoord = ComputeFogFactor(input.positionWS);//雾坐标
|
data.fogCoord = ComputeFogFactor(input.positionWS);//雾坐标
|
||||||
data.normalWS = input.normalWS;
|
data.normalWS = input.normalWS;
|
||||||
data.viewDirectionWS = GetWorldSpaceNormalizeViewDir(input.positionWS);
|
data.viewDirectionWS = GetWorldSpaceNormalizeViewDir(input.positionWS);
|
||||||
|
// 采样光照贴图
|
||||||
|
//float2 lightmapUV = _Lightmap * unity_LightmapST.xy + unity_LightmapST.zw;
|
||||||
|
//data.bakedGI = SampleLightmap(lightmapUV, inputData.normalWS); //SampleSH(data.normalWS); // 球谐函数采样环境光//float3(0.5, 0.5, 0.5)
|
||||||
data.bakedGI = SampleSH(data.normalWS); // 球谐函数采样环境光//float3(0.5, 0.5, 0.5)
|
data.bakedGI = SampleSH(data.normalWS); // 球谐函数采样环境光//float3(0.5, 0.5, 0.5)
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
@@ -127,7 +132,13 @@ Shader "BSDF//URP"
|
|||||||
InputData inputData = InitializeInputData(input);
|
InputData inputData = InitializeInputData(input);
|
||||||
SurfaceData surface = GetSurfaceData(input);
|
SurfaceData surface = GetSurfaceData(input);
|
||||||
float4 color = UniversalFragmentPBR(inputData, surface);
|
float4 color = UniversalFragmentPBR(inputData, surface);
|
||||||
color.rgb += surface.emission;//自发光
|
/* uint pixelLightCount = GetAdditionalLightsCount();
|
||||||
|
for (uint lightIndex = 0u; lightIndex < pixelLightCount; ++lightIndex)
|
||||||
|
{
|
||||||
|
Light light = GetAdditionalLight(lightIndex, inputData.positionWS);
|
||||||
|
color.rgb += LightingPhysicallyBased(surface, inputData, light);
|
||||||
|
} */
|
||||||
|
color.rgb += surface.emission * _EmissionStrength;//自发光
|
||||||
color.rgb = MixFog(color.rgb, inputData.fogCoord);//混合雾效
|
color.rgb = MixFog(color.rgb, inputData.fogCoord);//混合雾效
|
||||||
/* Light mainLight = GetMainLight();
|
/* Light mainLight = GetMainLight();
|
||||||
float3 normal = normalize(input.normalWS);
|
float3 normal = normalize(input.normalWS);
|
||||||
|
|||||||
@@ -0,0 +1,187 @@
|
|||||||
|
Shader "BSDF/StandardURP"
|
||||||
|
{
|
||||||
|
Properties
|
||||||
|
{
|
||||||
|
_BaseMap("纹理贴图", 2D) = "white" {}
|
||||||
|
_LightMap("光照贴图", 2D) = "white" {}
|
||||||
|
_NormalMap("法线贴图", 2D) = "bump" {}
|
||||||
|
_BaseColor("基础颜色", Color) = (1, 1, 1, 1)
|
||||||
|
_Metallic("金属度", Range(0, 1)) = 0.0
|
||||||
|
_Specular("镜面反射颜色", Color) = (1, 1, 1, 1)
|
||||||
|
_Smoothness("光滑度", Range(0, 1)) = 0
|
||||||
|
_EmissionColor("自发光颜色", Color) = (0, 0, 0, 1)
|
||||||
|
_EmissionStrength("自发光强度", Float) = 0
|
||||||
|
_ClearCoatMask("清漆遮罩", Range(0, 1)) = 0
|
||||||
|
_ClearCoatSmoothness("清漆光滑度", Range(0, 1)) = 0
|
||||||
|
}
|
||||||
|
SubShader
|
||||||
|
{
|
||||||
|
Tags {
|
||||||
|
"RenderPipeline" = "UniversalPipeline"
|
||||||
|
"RenderType" = "Opaque"
|
||||||
|
}
|
||||||
|
HLSLINCLUDE
|
||||||
|
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS //主光源阴影
|
||||||
|
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS_CASCADE//主光源级联阴影
|
||||||
|
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS_SCREEN//主光源屏幕空间阴影
|
||||||
|
#pragma multi_compile _ _ADDITIONAL_LIGHT_LAYERS//附加光源
|
||||||
|
#pragma multi_compile _ _ADDITIONAL_LIGHT_COOKIES//附加光源烘焙
|
||||||
|
#pragma multi_compile _ _ADDITIONAL_SCREEN_SPACE_SHADOWS//附加光源屏幕空间阴影
|
||||||
|
#pragma multi_compile _ _ADDITIONAL_LIGHT_SHADOWS//附加光源
|
||||||
|
#pragma multi_compile _ _SHADOWS_SOFT_SHADOWS//软阴影
|
||||||
|
|
||||||
|
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
|
||||||
|
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl"
|
||||||
|
|
||||||
|
CBUFFER_START(UnityPerMaterial)
|
||||||
|
float4 _BaseColor;
|
||||||
|
float _Metallic;
|
||||||
|
float _Smoothness;
|
||||||
|
float4 _EmissionColor;
|
||||||
|
float _EmissionStrength;
|
||||||
|
float4 _Specular;
|
||||||
|
float _ClearCoatMask;
|
||||||
|
float _ClearCoatSmoothness;
|
||||||
|
CBUFFER_END
|
||||||
|
|
||||||
|
TEXTURE2D(_BaseMap);
|
||||||
|
SAMPLER(sampler_BaseMap);
|
||||||
|
TEXTURE2D(_LightMap);
|
||||||
|
SAMPLER(sampler_LightMap);
|
||||||
|
TEXTURE2D(_NormalMap);
|
||||||
|
SAMPLER(sampler_NormalMap);
|
||||||
|
ENDHLSL
|
||||||
|
Pass{
|
||||||
|
Name "UniversalForward"
|
||||||
|
Tags {
|
||||||
|
"LightMode" = "UniversalForward"//光照模型向前渲染
|
||||||
|
}
|
||||||
|
HLSLPROGRAM //着色器
|
||||||
|
#pragma vertex MainVertexShader
|
||||||
|
#pragma fragment MainFragmentShader
|
||||||
|
|
||||||
|
struct Attributes
|
||||||
|
{
|
||||||
|
float4 positionOS : POSITION;
|
||||||
|
float2 uv0 : TEXCOORD0;
|
||||||
|
float3 normalOS : NORMAL;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct Varyings
|
||||||
|
{
|
||||||
|
float4 positionCS : SV_POSITION;
|
||||||
|
float3 normalWS : TEXCOORD2;
|
||||||
|
float2 uv0 : TEXCOORD0;//语义相同用于传送数据
|
||||||
|
float3 positionWS : TEXCOORD1;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* struct SurfaceData
|
||||||
|
{
|
||||||
|
float3 albedo;//漫反射颜色
|
||||||
|
float metallic;//金属度
|
||||||
|
float smoothness;//光滑度
|
||||||
|
float3 normalTS;//法线
|
||||||
|
//float occlusion;//遮挡
|
||||||
|
float3 emission;//自发光
|
||||||
|
float alpha;//透明度
|
||||||
|
}; */
|
||||||
|
|
||||||
|
/* struct InputData
|
||||||
|
{
|
||||||
|
float3 positionWS;//世界空间位置
|
||||||
|
float3 normalWS;//世界空间法线
|
||||||
|
float3 viewDirectionWS;//视线方向
|
||||||
|
float4 shadowCoord;//阴影坐标
|
||||||
|
float fogCoord;//雾坐标
|
||||||
|
float4 bakedGI;//烘焙全局光照
|
||||||
|
}; */
|
||||||
|
|
||||||
|
SurfaceData GetSurfaceData(Varyings input){
|
||||||
|
float4 baseMap = SAMPLE_TEXTURE2D(_BaseMap, sampler_BaseMap, input.uv0);
|
||||||
|
float3 baseColor = _BaseColor.rgb;
|
||||||
|
float4 normalMap = SAMPLE_TEXTURE2D(_NormalMap, sampler_NormalMap, input.uv0);
|
||||||
|
SurfaceData surface;
|
||||||
|
surface.albedo = baseMap.rgb * baseColor;//漫反射颜色
|
||||||
|
surface.specular =_Specular.rgb;//镜面反射颜色
|
||||||
|
surface.metallic = _Metallic;//金属度
|
||||||
|
surface.smoothness = _Smoothness;//光滑度
|
||||||
|
surface.normalTS = UnpackNormal(normalMap);//法线
|
||||||
|
surface.emission = _EmissionColor.rgb;//自发光
|
||||||
|
surface.alpha = baseMap.a * _BaseColor.a;//透明度
|
||||||
|
surface.occlusion = 1.0;//环境光遮蔽
|
||||||
|
surface.clearCoatMask = _ClearCoatMask;//清漆遮罩
|
||||||
|
surface.clearCoatSmoothness = _ClearCoatSmoothness;//清漆光滑度
|
||||||
|
return surface;
|
||||||
|
}
|
||||||
|
|
||||||
|
InputData InitializeInputData(Varyings input){
|
||||||
|
InputData data;
|
||||||
|
data.positionWS = input.positionWS;
|
||||||
|
data.shadowCoord = TransformWorldToShadowCoord(input.positionWS);// 阴影坐标
|
||||||
|
data.fogCoord = ComputeFogFactor(input.positionWS);//雾坐标
|
||||||
|
data.normalWS = input.normalWS;
|
||||||
|
data.viewDirectionWS = GetWorldSpaceNormalizeViewDir(input.positionWS);
|
||||||
|
// 采样光照贴图
|
||||||
|
//float2 lightmapUV = _Lightmap * unity_LightmapST.xy + unity_LightmapST.zw;
|
||||||
|
//data.bakedGI = SampleLightmap(lightmapUV, inputData.normalWS); //SampleSH(data.normalWS); // 球谐函数采样环境光//float3(0.5, 0.5, 0.5)
|
||||||
|
data.bakedGI = SampleSH(data.normalWS); // 球谐函数采样环境光//float3(0.5, 0.5, 0.5)
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
|
BRDFData SurfaceDataToBSDFData(SurfaceData surface, InputData inputData){
|
||||||
|
BRDFData bsdf;
|
||||||
|
bsdf.albedo = surface.albedo;//漫反射颜色
|
||||||
|
bsdf.specular = lerp(float3(0.04, 0.04, 0.04), _Specular.rgb, surface.metallic);//镜面反射颜色
|
||||||
|
bsdf.diffuse = surface.albedo * (1.0 - surface.metallic);//漫反射颜色
|
||||||
|
bsdf.reflectance = surface.specular * surface.metallic + bsdf.diffuse * (1.0 - surface.metallic);//反射率
|
||||||
|
bsdf.normalWS = inputData.normalWS;
|
||||||
|
bsdf.viewDirectionWS = inputData.viewDirectionWS;
|
||||||
|
bsdf.emission = surface.emission;
|
||||||
|
bsdf.alpha = surface.alpha;
|
||||||
|
bsdf.occlusion = surface.occlusion;
|
||||||
|
bsdf.clearCoatMask = surface.clearCoatMask;
|
||||||
|
bsdf.clearCoatSmoothness = surface.clearCoatSmoothness;
|
||||||
|
return bsdf;
|
||||||
|
}
|
||||||
|
|
||||||
|
Varyings MainVertexShader(Attributes input){
|
||||||
|
Varyings output;
|
||||||
|
VertexPositionInputs vertexInput = GetVertexPositionInputs(input.positionOS.xyz);
|
||||||
|
VertexNormalInputs vertexNormalInput = GetVertexNormalInputs(input.normalOS);
|
||||||
|
output.positionCS = vertexInput.positionCS;
|
||||||
|
output.uv0 = input.uv0;
|
||||||
|
output.positionWS = vertexInput.positionWS;
|
||||||
|
output.normalWS = vertexNormalInput.normalWS;
|
||||||
|
return output;
|
||||||
|
}
|
||||||
|
float4 MainFragmentShader(Varyings input):SV_TARGET{
|
||||||
|
InputData inputData = InitializeInputData(input);
|
||||||
|
SurfaceData surface = GetSurfaceData(input);
|
||||||
|
float4 color = UniversalFragmentPBR(inputData, surface);
|
||||||
|
/* uint pixelLightCount = GetAdditionalLightsCount();
|
||||||
|
for (uint lightIndex = 0u; lightIndex < pixelLightCount; ++lightIndex)
|
||||||
|
{
|
||||||
|
Light light = GetAdditionalLight(lightIndex, inputData.positionWS);
|
||||||
|
color.rgb += LightingPhysicallyBased(surface, inputData, light);
|
||||||
|
} */
|
||||||
|
color.rgb += surface.emission * _EmissionStrength;//自发光
|
||||||
|
color.rgb = MixFog(color.rgb, inputData.fogCoord);//混合雾效
|
||||||
|
/* Light mainLight = GetMainLight();
|
||||||
|
float3 normal = normalize(input.normalWS);
|
||||||
|
float3 lightDir = normalize(mainLight.direction);
|
||||||
|
float NdotL = saturate(dot(normal, lightDir));
|
||||||
|
float lambert = 0.5 + 0.5 * NdotL;
|
||||||
|
lambert *=pow(0.5 + 0.5 * NdotL, 2);
|
||||||
|
float3 headUpDir = normalize(_HeadUp);
|
||||||
|
float3 headForwardDir = normalize(_HeadForward);
|
||||||
|
float3 headRightDir = normalize(_HeadRight);
|
||||||
|
float4 basemap = SAMPLE_TEXTURE2D(_BaseMap, sampler_BaseMap, input.uv0);
|
||||||
|
float3 baseColor = _BaseColor.rgb;
|
||||||
|
float3 finalColor = baseColor * basemap.rgb * lambert; */
|
||||||
|
return float4(color.rgb, 1);
|
||||||
|
}
|
||||||
|
ENDHLSL
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a4f731dbb20f7a44381de800e9236e1d
|
||||||
|
ShaderImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
defaultTextures: []
|
||||||
|
nonModifiableTextures: []
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,168 @@
|
|||||||
|
Shader "BSDF/MixedURPGradient"
|
||||||
|
{
|
||||||
|
Properties
|
||||||
|
{
|
||||||
|
_BaseMap("纹理贴图", 2D) = "white" {}
|
||||||
|
_BaseColor("基础颜色", Color) = (1, 1, 1, 1)
|
||||||
|
_Metallic("金属度", Range(0, 1)) = 0.0
|
||||||
|
_Smoothness("光滑度", Range(0, 1)) = 0
|
||||||
|
_EmissionColor("自发光颜色", Color) = (0, 0, 0, 1)
|
||||||
|
_EmissionStrength("自发光强度", Float) = 0
|
||||||
|
_LightMap("光照贴图", 2D) = "white" {}
|
||||||
|
_MaxBoundsY("最大边界", Float) = 1
|
||||||
|
_MinBoundsY("最小边界", Float) = 0
|
||||||
|
_MixedUV("混合UV",2D) = "white" {}
|
||||||
|
}
|
||||||
|
SubShader
|
||||||
|
{
|
||||||
|
Tags {
|
||||||
|
"RenderPipeline" = "UniversalPipeline"
|
||||||
|
"RenderType" = "Opaque"
|
||||||
|
}
|
||||||
|
HLSLINCLUDE
|
||||||
|
#pragma multi_compile _MAIN_LIGHT_SHADOWS //主光源阴影
|
||||||
|
#pragma multi_compile _MAIN_LIGHT_SHADOWS _MAIN_LIGHT_SHADOWS_CASCADE//主光源级联阴影
|
||||||
|
#pragma multi_compile _MAIN_LIGHT_SHADOWS _MAIN_LIGHT_SHADOWS_SCREEN//主光源屏幕空间阴影
|
||||||
|
#pragma multi_compile _ADDITIONAL_LIGHT_LAYERS//附加光源
|
||||||
|
#pragma multi_compile _ADDITIONAL_LIGHT_COOKIES//附加光源烘焙
|
||||||
|
#pragma multi_compile _ADDITIONAL_SCREEN_SPACE_SHADOWS//附加光源屏幕空间阴影
|
||||||
|
#pragma multi_compile _ADDITIONAL_LIGHT_SHADOWS//附加光源
|
||||||
|
#pragma multi_compile _SHADOWS_SOFT_SHADOWS//软阴影
|
||||||
|
|
||||||
|
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
|
||||||
|
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl"
|
||||||
|
|
||||||
|
CBUFFER_START(UnityPerMaterial)
|
||||||
|
float4 _BaseColor;
|
||||||
|
float _Metallic;
|
||||||
|
float _Smoothness;
|
||||||
|
float4 _EmissionColor;
|
||||||
|
float _EmissionStrength;
|
||||||
|
float _MaxBoundsY;
|
||||||
|
float _MinBoundsY;
|
||||||
|
float4 _Colors[2]; //定义一个固定大小的颜色数组
|
||||||
|
CBUFFER_END
|
||||||
|
|
||||||
|
TEXTURE2D(_BaseMap);
|
||||||
|
SAMPLER(sampler_BaseMap);
|
||||||
|
TEXTURE2D(_LightMap);
|
||||||
|
SAMPLER(sampler_LightMap);
|
||||||
|
TEXTURE2D(_MixedUV);
|
||||||
|
SAMPLER(sampler_MixedUV);
|
||||||
|
ENDHLSL
|
||||||
|
Pass{
|
||||||
|
Name "UniversalForward"
|
||||||
|
Tags {
|
||||||
|
"LightMode" = "UniversalForward"//光照模型向前渲染
|
||||||
|
}
|
||||||
|
HLSLPROGRAM //着色器
|
||||||
|
#pragma vertex MainVertexShader
|
||||||
|
#pragma fragment MainFragmentShader
|
||||||
|
|
||||||
|
struct Attributes
|
||||||
|
{
|
||||||
|
float4 positionOS : POSITION;
|
||||||
|
float2 uv0 : TEXCOORD0;
|
||||||
|
float3 normalOS : NORMAL;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct Varyings
|
||||||
|
{
|
||||||
|
float4 positionCS : SV_POSITION;
|
||||||
|
float3 normalWS : TEXCOORD2;
|
||||||
|
float2 uv0 : TEXCOORD0;//语义相同用于传送数据
|
||||||
|
float3 positionWS : TEXCOORD1;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* struct SurfaceData
|
||||||
|
{
|
||||||
|
float3 albedo;//漫反射颜色
|
||||||
|
float metallic;//金属度
|
||||||
|
float smoothness;//光滑度
|
||||||
|
float3 normalTS;//法线
|
||||||
|
//float occlusion;//遮挡
|
||||||
|
float3 emission;//自发光
|
||||||
|
float alpha;//透明度
|
||||||
|
}; */
|
||||||
|
|
||||||
|
/* struct InputData
|
||||||
|
{
|
||||||
|
float3 positionWS;//世界空间位置
|
||||||
|
float3 normalWS;//世界空间法线
|
||||||
|
float3 viewDirectionWS;//视线方向
|
||||||
|
float4 shadowCoord;//阴影坐标
|
||||||
|
float fogCoord;//雾坐标
|
||||||
|
float4 bakedGI;//烘焙全局光照
|
||||||
|
}; */
|
||||||
|
float3 GetBaseColor(float y,float3 MixedUV)
|
||||||
|
{
|
||||||
|
y = (_MaxBoundsY - y) / (_MaxBoundsY - _MinBoundsY); //将y值归一化到0-1之间
|
||||||
|
float3 color = lerp(_Colors[0].rgb, _Colors[1].rgb, y); //根据归一化的y值在颜色数组中插值
|
||||||
|
float3 mixedColor=lerp(_Colors[0].rgb, _Colors[1].rgb, MixedUV.r); //根据混合UV的r值在颜色数组中插值
|
||||||
|
color = lerp(color, mixedColor, clamp(MixedUV.g, 0, 1)); //将两种颜色插值结果再次进行插值,得到最终的颜色
|
||||||
|
return color;
|
||||||
|
}
|
||||||
|
SurfaceData GetSurfaceData(Varyings input){
|
||||||
|
float4 baseMap = SAMPLE_TEXTURE2D(_BaseMap, sampler_BaseMap, input.uv0);
|
||||||
|
float4 mixedUV = SAMPLE_TEXTURE2D(_MixedUV, sampler_MixedUV, input.uv0);
|
||||||
|
float3 baseColor = GetBaseColor(input.positionWS.y, mixedUV.rgb);
|
||||||
|
SurfaceData surface;
|
||||||
|
surface.albedo = baseMap.rgb * baseColor;//漫反射颜色
|
||||||
|
surface.specular =float3(1, 1, 1);//镜面反射颜色
|
||||||
|
surface.metallic = _Metallic;//金属度
|
||||||
|
surface.smoothness = _Smoothness;//光滑度
|
||||||
|
surface.normalTS = float3(0, 0, 1);//法线
|
||||||
|
surface.emission = _EmissionColor.rgb;//自发光
|
||||||
|
surface.alpha = baseMap.a * _BaseColor.a;//透明度
|
||||||
|
surface.occlusion = 1.0;//环境光遮蔽
|
||||||
|
surface.clearCoatMask = 0.0;//清漆遮罩
|
||||||
|
surface.clearCoatSmoothness = 0.0;//清漆光滑度
|
||||||
|
return surface;
|
||||||
|
}
|
||||||
|
|
||||||
|
InputData InitializeInputData(Varyings input){
|
||||||
|
InputData data;
|
||||||
|
data.positionWS = input.positionWS;
|
||||||
|
data.shadowCoord = TransformWorldToShadowCoord(input.positionWS);// 阴影坐标
|
||||||
|
data.fogCoord = ComputeFogFactor(input.positionWS);//雾坐标
|
||||||
|
data.normalWS = input.normalWS;
|
||||||
|
data.viewDirectionWS = GetWorldSpaceNormalizeViewDir(input.positionWS);
|
||||||
|
data.bakedGI = SampleSH(data.normalWS); // 球谐函数采样环境光//float3(0.5, 0.5, 0.5)
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
|
Varyings MainVertexShader(Attributes input){
|
||||||
|
Varyings output;
|
||||||
|
VertexPositionInputs vertexInput = GetVertexPositionInputs(input.positionOS.xyz);
|
||||||
|
VertexNormalInputs vertexNormalInput = GetVertexNormalInputs(input.normalOS);
|
||||||
|
output.positionCS = vertexInput.positionCS;
|
||||||
|
output.uv0 = input.uv0;
|
||||||
|
output.positionWS = vertexInput.positionWS;
|
||||||
|
output.normalWS = vertexNormalInput.normalWS;
|
||||||
|
return output;
|
||||||
|
}
|
||||||
|
float4 MainFragmentShader(Varyings input):SV_TARGET{
|
||||||
|
InputData inputData = InitializeInputData(input);
|
||||||
|
SurfaceData surface = GetSurfaceData(input);
|
||||||
|
float4 color = UniversalFragmentPBR(inputData, surface);
|
||||||
|
color.rgb += surface.emission * _EmissionStrength;//自发光
|
||||||
|
color.rgb = MixFog(color.rgb, inputData.fogCoord);//混合雾效
|
||||||
|
/* Light mainLight = GetMainLight();
|
||||||
|
float3 normal = normalize(input.normalWS);
|
||||||
|
float3 lightDir = normalize(mainLight.direction);
|
||||||
|
float NdotL = saturate(dot(normal, lightDir));
|
||||||
|
float lambert = 0.5 + 0.5 * NdotL;
|
||||||
|
lambert *=pow(0.5 + 0.5 * NdotL, 2);
|
||||||
|
float3 headUpDir = normalize(_HeadUp);
|
||||||
|
float3 headForwardDir = normalize(_HeadForward);
|
||||||
|
float3 headRightDir = normalize(_HeadRight);
|
||||||
|
float4 basemap = SAMPLE_TEXTURE2D(_BaseMap, sampler_BaseMap, input.uv0);
|
||||||
|
float3 baseColor = _BaseColor.rgb;
|
||||||
|
float3 finalColor = baseColor * basemap.rgb * lambert; */
|
||||||
|
return float4(color.rgb, 1);
|
||||||
|
}
|
||||||
|
ENDHLSL
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a3c868b7dc6f3494a9c8ea4c0b32f83f
|
||||||
|
ShaderImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
defaultTextures: []
|
||||||
|
nonModifiableTextures: []
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
+7
-3
@@ -21,7 +21,7 @@ Material:
|
|||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_Name: "\u72D0\u72F8\u5934"
|
m_Name: "\u72D0\u72F8\u5934"
|
||||||
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
m_Shader: {fileID: 4800000, guid: 2d97986670789c546acf60dbfda7aca9, type: 3}
|
||||||
m_Parent: {fileID: 0}
|
m_Parent: {fileID: 0}
|
||||||
m_ModifiedSerializedProperties: 0
|
m_ModifiedSerializedProperties: 0
|
||||||
m_ValidKeywords: []
|
m_ValidKeywords: []
|
||||||
@@ -30,8 +30,7 @@ Material:
|
|||||||
m_EnableInstancingVariants: 0
|
m_EnableInstancingVariants: 0
|
||||||
m_DoubleSidedGI: 0
|
m_DoubleSidedGI: 0
|
||||||
m_CustomRenderQueue: -1
|
m_CustomRenderQueue: -1
|
||||||
stringTagMap:
|
stringTagMap: {}
|
||||||
RenderType: Opaque
|
|
||||||
disabledShaderPasses: []
|
disabledShaderPasses: []
|
||||||
m_LockedProperties:
|
m_LockedProperties:
|
||||||
m_SavedProperties:
|
m_SavedProperties:
|
||||||
@@ -61,6 +60,10 @@ Material:
|
|||||||
m_Texture: {fileID: 0}
|
m_Texture: {fileID: 0}
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _LightMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
- _MainTex:
|
- _MainTex:
|
||||||
m_Texture: {fileID: 0}
|
m_Texture: {fileID: 0}
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
@@ -108,6 +111,7 @@ Material:
|
|||||||
- _DetailNormalMapScale: 1
|
- _DetailNormalMapScale: 1
|
||||||
- _DstBlend: 0
|
- _DstBlend: 0
|
||||||
- _DstBlendAlpha: 0
|
- _DstBlendAlpha: 0
|
||||||
|
- _EmissionStrength: 0
|
||||||
- _EnvironmentReflections: 1
|
- _EnvironmentReflections: 1
|
||||||
- _GlossMapScale: 1
|
- _GlossMapScale: 1
|
||||||
- _Glossiness: 0.5
|
- _Glossiness: 0.5
|
||||||
|
|||||||
+9
-3
@@ -8,7 +8,7 @@ Material:
|
|||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_Name: "\u6811\u6869"
|
m_Name: "\u6811\u6869"
|
||||||
m_Shader: {fileID: 4800000, guid: 2d97986670789c546acf60dbfda7aca9, type: 3}
|
m_Shader: {fileID: 4800000, guid: a3c868b7dc6f3494a9c8ea4c0b32f83f, type: 3}
|
||||||
m_Parent: {fileID: 0}
|
m_Parent: {fileID: 0}
|
||||||
m_ModifiedSerializedProperties: 0
|
m_ModifiedSerializedProperties: 0
|
||||||
m_ValidKeywords: []
|
m_ValidKeywords: []
|
||||||
@@ -24,7 +24,7 @@ Material:
|
|||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
m_TexEnvs:
|
m_TexEnvs:
|
||||||
- _BaseMap:
|
- _BaseMap:
|
||||||
m_Texture: {fileID: 2800000, guid: d8f57a1d8ae1b354b9990e1d0db423ee, type: 3}
|
m_Texture: {fileID: 0}
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- _BumpMap:
|
- _BumpMap:
|
||||||
@@ -59,6 +59,10 @@ Material:
|
|||||||
m_Texture: {fileID: 0}
|
m_Texture: {fileID: 0}
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MixedUV:
|
||||||
|
m_Texture: {fileID: 2800000, guid: 42d4a0d0a27e4874da87610cd85e9633, type: 3}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
- _OcclusionMap:
|
- _OcclusionMap:
|
||||||
m_Texture: {fileID: 0}
|
m_Texture: {fileID: 0}
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
@@ -102,13 +106,15 @@ Material:
|
|||||||
- _GlossMapScale: 1
|
- _GlossMapScale: 1
|
||||||
- _Glossiness: 0.5
|
- _Glossiness: 0.5
|
||||||
- _GlossyReflections: 1
|
- _GlossyReflections: 1
|
||||||
|
- _MaxBoundsY: 6
|
||||||
- _Metallic: 0
|
- _Metallic: 0
|
||||||
|
- _MinBoundsY: -1
|
||||||
- _Mode: 0
|
- _Mode: 0
|
||||||
- _OcclusionStrength: 1
|
- _OcclusionStrength: 1
|
||||||
- _Parallax: 0.02
|
- _Parallax: 0.02
|
||||||
- _QueueOffset: 0
|
- _QueueOffset: 0
|
||||||
- _ReceiveShadows: 1
|
- _ReceiveShadows: 1
|
||||||
- _Smoothness: 0.5
|
- _Smoothness: 0
|
||||||
- _SmoothnessTextureChannel: 0
|
- _SmoothnessTextureChannel: 0
|
||||||
- _SpecularHighlights: 1
|
- _SpecularHighlights: 1
|
||||||
- _SrcBlend: 1
|
- _SrcBlend: 1
|
||||||
|
|||||||
+8
-2
@@ -8,7 +8,7 @@ Material:
|
|||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_Name: "\u6811\u6869"
|
m_Name: "\u6811\u6869"
|
||||||
m_Shader: {fileID: 4800000, guid: 2d97986670789c546acf60dbfda7aca9, type: 3}
|
m_Shader: {fileID: 4800000, guid: a3c868b7dc6f3494a9c8ea4c0b32f83f, type: 3}
|
||||||
m_Parent: {fileID: 0}
|
m_Parent: {fileID: 0}
|
||||||
m_ModifiedSerializedProperties: 0
|
m_ModifiedSerializedProperties: 0
|
||||||
m_ValidKeywords: []
|
m_ValidKeywords: []
|
||||||
@@ -24,7 +24,7 @@ Material:
|
|||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
m_TexEnvs:
|
m_TexEnvs:
|
||||||
- _BaseMap:
|
- _BaseMap:
|
||||||
m_Texture: {fileID: 2800000, guid: d8f57a1d8ae1b354b9990e1d0db423ee, type: 3}
|
m_Texture: {fileID: 0}
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- _BumpMap:
|
- _BumpMap:
|
||||||
@@ -59,6 +59,10 @@ Material:
|
|||||||
m_Texture: {fileID: 0}
|
m_Texture: {fileID: 0}
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MixedUV:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
- _OcclusionMap:
|
- _OcclusionMap:
|
||||||
m_Texture: {fileID: 0}
|
m_Texture: {fileID: 0}
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
@@ -102,7 +106,9 @@ Material:
|
|||||||
- _GlossMapScale: 1
|
- _GlossMapScale: 1
|
||||||
- _Glossiness: 0.5
|
- _Glossiness: 0.5
|
||||||
- _GlossyReflections: 1
|
- _GlossyReflections: 1
|
||||||
|
- _MaxBoundsY: 1
|
||||||
- _Metallic: 0
|
- _Metallic: 0
|
||||||
|
- _MinBoundsY: 0
|
||||||
- _Mode: 0
|
- _Mode: 0
|
||||||
- _OcclusionStrength: 1
|
- _OcclusionStrength: 1
|
||||||
- _Parallax: 0.02
|
- _Parallax: 0.02
|
||||||
|
|||||||
+137
@@ -0,0 +1,137 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &-1542606555262861240
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 11
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
version: 7
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: "\u81EA\u53D1\u5149\u6750\u8D28"
|
||||||
|
m_Shader: {fileID: 4800000, guid: 2d97986670789c546acf60dbfda7aca9, type: 3}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BaseMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _LightMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _SpecGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- unity_Lightmaps:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- unity_LightmapsInd:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- unity_ShadowMasks:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _AlphaClip: 0
|
||||||
|
- _AlphaToMask: 0
|
||||||
|
- _Blend: 0
|
||||||
|
- _BlendModePreserveSpecular: 1
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _ClearCoatMask: 0
|
||||||
|
- _ClearCoatSmoothness: 0
|
||||||
|
- _Cull: 2
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailAlbedoMapScale: 1
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _DstBlendAlpha: 0
|
||||||
|
- _EmissionStrength: 78.27
|
||||||
|
- _EnvironmentReflections: 1
|
||||||
|
- _GlossMapScale: 0
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 0
|
||||||
|
- _Metallic: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.005
|
||||||
|
- _QueueOffset: 0
|
||||||
|
- _ReceiveShadows: 1
|
||||||
|
- _Smoothness: 0.5
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _SrcBlendAlpha: 1
|
||||||
|
- _Surface: 0
|
||||||
|
- _WorkflowMode: 1
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _EmissionColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c2d0848529373644797a1f727a87c7b1
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Binary file not shown.
@@ -0,0 +1,114 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0a6bbafe2d653ad49b5c4cbbb1bb56dd
|
||||||
|
ModelImporter:
|
||||||
|
serializedVersion: 22200
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects:
|
||||||
|
- first:
|
||||||
|
type: UnityEngine:Material
|
||||||
|
assembly: UnityEngine.CoreModule
|
||||||
|
name: "\u9F9F\u80CC\u7AF9\u53F6\u5B50"
|
||||||
|
second: {fileID: 2100000, guid: 01a97498a63768e459c56bf6428d979b, type: 2}
|
||||||
|
materials:
|
||||||
|
materialImportMode: 2
|
||||||
|
materialName: 0
|
||||||
|
materialSearch: 1
|
||||||
|
materialLocation: 1
|
||||||
|
animations:
|
||||||
|
legacyGenerateAnimations: 4
|
||||||
|
bakeSimulation: 0
|
||||||
|
resampleCurves: 1
|
||||||
|
optimizeGameObjects: 0
|
||||||
|
removeConstantScaleCurves: 0
|
||||||
|
motionNodeName:
|
||||||
|
rigImportErrors:
|
||||||
|
rigImportWarnings:
|
||||||
|
animationImportErrors:
|
||||||
|
animationImportWarnings:
|
||||||
|
animationRetargetingWarnings:
|
||||||
|
animationDoRetargetingWarnings: 0
|
||||||
|
importAnimatedCustomProperties: 0
|
||||||
|
importConstraints: 0
|
||||||
|
animationCompression: 1
|
||||||
|
animationRotationError: 0.5
|
||||||
|
animationPositionError: 0.5
|
||||||
|
animationScaleError: 0.5
|
||||||
|
animationWrapMode: 0
|
||||||
|
extraExposedTransformPaths: []
|
||||||
|
extraUserProperties: []
|
||||||
|
clipAnimations: []
|
||||||
|
isReadable: 0
|
||||||
|
meshes:
|
||||||
|
lODScreenPercentages: []
|
||||||
|
globalScale: 1
|
||||||
|
meshCompression: 0
|
||||||
|
addColliders: 0
|
||||||
|
useSRGBMaterialColor: 1
|
||||||
|
sortHierarchyByName: 1
|
||||||
|
importPhysicalCameras: 1
|
||||||
|
importVisibility: 1
|
||||||
|
importBlendShapes: 1
|
||||||
|
importCameras: 1
|
||||||
|
importLights: 1
|
||||||
|
nodeNameCollisionStrategy: 1
|
||||||
|
fileIdsGeneration: 2
|
||||||
|
swapUVChannels: 0
|
||||||
|
generateSecondaryUV: 0
|
||||||
|
useFileUnits: 1
|
||||||
|
keepQuads: 0
|
||||||
|
weldVertices: 1
|
||||||
|
bakeAxisConversion: 0
|
||||||
|
preserveHierarchy: 0
|
||||||
|
skinWeightsMode: 0
|
||||||
|
maxBonesPerVertex: 4
|
||||||
|
minBoneWeight: 0.001
|
||||||
|
optimizeBones: 1
|
||||||
|
meshOptimizationFlags: -1
|
||||||
|
indexFormat: 0
|
||||||
|
secondaryUVAngleDistortion: 8
|
||||||
|
secondaryUVAreaDistortion: 15.000001
|
||||||
|
secondaryUVHardAngle: 88
|
||||||
|
secondaryUVMarginMethod: 1
|
||||||
|
secondaryUVMinLightmapResolution: 40
|
||||||
|
secondaryUVMinObjectScale: 1
|
||||||
|
secondaryUVPackMargin: 4
|
||||||
|
useFileScale: 1
|
||||||
|
strictVertexDataChecks: 0
|
||||||
|
tangentSpace:
|
||||||
|
normalSmoothAngle: 60
|
||||||
|
normalImportMode: 0
|
||||||
|
tangentImportMode: 3
|
||||||
|
normalCalculationMode: 4
|
||||||
|
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||||
|
blendShapeNormalImportMode: 1
|
||||||
|
normalSmoothingSource: 0
|
||||||
|
referencedClips: []
|
||||||
|
importAnimation: 1
|
||||||
|
humanDescription:
|
||||||
|
serializedVersion: 3
|
||||||
|
human: []
|
||||||
|
skeleton: []
|
||||||
|
armTwist: 0.5
|
||||||
|
foreArmTwist: 0.5
|
||||||
|
upperLegTwist: 0.5
|
||||||
|
legTwist: 0.5
|
||||||
|
armStretch: 0.05
|
||||||
|
legStretch: 0.05
|
||||||
|
feetSpacing: 0
|
||||||
|
globalScale: 1
|
||||||
|
rootMotionBoneName:
|
||||||
|
hasTranslationDoF: 0
|
||||||
|
hasExtraRoot: 0
|
||||||
|
skeletonHasParents: 1
|
||||||
|
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||||
|
autoGenerateAvatarMappingIfUnspecified: 1
|
||||||
|
animationType: 2
|
||||||
|
humanoidOversampling: 1
|
||||||
|
avatarSetup: 0
|
||||||
|
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||||
|
importBlendShapeDeformPercent: 1
|
||||||
|
remapMaterialsIfMaterialImportModeIsNone: 0
|
||||||
|
additionalBone: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
+127
@@ -0,0 +1,127 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 42d4a0d0a27e4874da87610cd85e9633
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 13
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 0
|
||||||
|
wrapV: 0
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 1
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 0
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: WebGL
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID:
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Reference in new issue
Block a user