update space shooter

pull/455/head
何冠峰 2024-12-31 15:13:13 +08:00
parent 4370ed544f
commit d1d6e023c4
234 changed files with 1727 additions and 5047 deletions

View File

@ -38,7 +38,6 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.37311953, g: 0.38074014, b: 0.3587274, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
@ -104,7 +103,7 @@ NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
serializedVersion: 3
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
@ -117,7 +116,7 @@ NavMeshSettings:
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
buildHeightMesh: 0
maxJobWorkers: 0
preserveTilesOutsideBounds: 0
debug:
@ -130,7 +129,7 @@ LightingSettings:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Settings.lighting
serializedVersion: 3
serializedVersion: 6
m_GIWorkflowMode: 1
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 0
@ -143,7 +142,7 @@ LightingSettings:
m_LightmapMaxSize: 1024
m_BakeResolution: 40
m_Padding: 2
m_TextureCompression: 1
m_LightmapCompression: 3
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
@ -164,13 +163,13 @@ LightingSettings:
m_PVRCulling: 1
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 500
m_PVREnvironmentSampleCount: 500
m_PVRSampleCount: 512
m_PVREnvironmentSampleCount: 512
m_PVREnvironmentReferencePointCount: 2048
m_LightProbeSampleCountMultiplier: 4
m_PVRBounces: 2
m_PVRMinBounces: 2
m_PVREnvironmentMIS: 0
m_PVREnvironmentImportanceSampling: 0
m_PVRFilteringMode: 2
m_PVRDenoiserTypeDirect: 0
m_PVRDenoiserTypeIndirect: 0
@ -184,6 +183,9 @@ LightingSettings:
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_PVRTiledBaking: 0
m_NumRaysToShootPerTexel: -1
m_RespectSceneVisibilityWhenBakingGI: 0
--- !u!1 &1281760859
GameObject:
m_ObjectHideFlags: 0
@ -221,12 +223,13 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1281760859}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &6920458660802423023
GameObject:
@ -268,9 +271,17 @@ Camera:
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_Iso: 200
m_ShutterSpeed: 0.005
m_Aperture: 16
m_FocusDistance: 10
m_FocalLength: 50
m_BladeCount: 5
m_Curvature: {x: 2, y: 11}
m_BarrelClipping: 0.25
m_Anamorphism: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
@ -304,10 +315,17 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6920458660802423023}
serializedVersion: 2
m_LocalRotation: {x: 0.7071068, y: 0, z: 0, w: 0.7071068}
m_LocalPosition: {x: 0, y: 10, z: 5}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0}
--- !u!1660057539 &9223372036854775807
SceneRoots:
m_ObjectHideFlags: 0
m_Roots:
- {fileID: 6920458660802423026}
- {fileID: 1281760861}

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: cc38993f12e70694fb84c45607c9f24c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 6638b178c52c9e44198ca3fd5f3c4bd8
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,77 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: vehicle_playerShip_glass_mat
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _NORMALMAP
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _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}
- _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}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 2f60c03db44b7fd4898c532bc3d1bb86
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,77 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: vehicle_playerShip_metal_mat
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _NORMALMAP
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _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}
- _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}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 1109665e2073c024083d3230dba1fa09
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 214f92124328c964798dd33a78bab85d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,308 +0,0 @@
#include "UnityCG.cginc"
// DEFINES, CONSTRUCTORS AND STRUCTS
sampler2D _MainTex;
half4 _MainTex_ST;
// Color, brightness and contrast
#if COLOR_ON
half4 _Color;
half _Brightness;
half _Contrast;
#endif
// Phong point light
#if PHONG_ON
uniform half4 _PointLightColor;
uniform half3 _PointLightPosition;
half _AmbiencePower;
half _SpecularPower;
half _DiffusePower;
#endif
// Detail map
#if DETAIL_ON
sampler2D _DetailMap;
half _DetailStrength;
#endif
// Detail mask
#if DETAIL_ON && DETAIL_MASK_ON
sampler2D _DetailMask;
#endif
// Emission map
#if EMISSION_ON
sampler2D _EmissionMap;
half _EmissionStrength;
#endif
// Normal map
#if NORMAL_ON
sampler2D _NormalMap;
#endif
struct appdata
{
float4 vertex : POSITION;
half2 texcoord : TEXCOORD0;
#if PHONG_ON
float4 normal : NORMAL;
#endif
#if NORMAL_ON
float4 tangent : TANGENT;
#endif
};
struct appdata_lm
{
float4 vertex : POSITION;
half2 texcoord : TEXCOORD0;
half2 texcoord_lm : TEXCOORD1;
#if PHONG_ON
float4 normal : NORMAL;
#endif
#if NORMAL_ON
float4 tangent : TANGENT;
#endif
};
struct v2f
{
float4 vertex : SV_POSITION;
half2 uv_main : TEXCOORD0;
UNITY_FOG_COORDS(1)
#if PHONG_ON
float4 worldVertex : TEXCOORD2; // worldPos
#endif
#if PHONG_ON || NORMAL_ON
half3 worldNormal : TEXCOORD3;
#endif
#if NORMAL_ON
// these three vectors will hold a 3x3 rotation matrix
// that transforms from tangent to world space
half3 tspace0 : TEXCOORD4; // tangent.x, bitangent.x, normal.x
half3 tspace1 : TEXCOORD5; // tangent.y, bitangent.y, normal.y
half3 tspace2 : TEXCOORD6; // tangent.z, bitangent.z, normal.z
#endif
};
struct v2f_lm
{
float4 vertex : SV_POSITION;
half2 uv_main : TEXCOORD0;
half2 uv_lm : TEXCOORD1;
UNITY_FOG_COORDS(2)
#if PHONG_ON
float4 worldVertex : TEXCOORD3;
#endif
#if PHONG_ON || NORMAL_ON
half3 worldNormal : TEXCOORD4;
#endif
#if NORMAL_ON
// these three vectors will hold a 3x3 rotation matrix
// that transforms from tangent to world space
half3 tspace0 : TEXCOORD5; // tangent.x, bitangent.x, normal.x
half3 tspace1 : TEXCOORD6; // tangent.y, bitangent.y, normal.y
half3 tspace2 : TEXCOORD7; // tangent.z, bitangent.z, normal.z
#endif
};
// VERTEX SHADERS
v2f vert(appdata v)
{
v2f o;
o.vertex = UnityObjectToClipPos(v.vertex);
#if PHONG_ON
o.worldVertex = mul(unity_ObjectToWorld, v.vertex);
o.worldNormal = UnityObjectToWorldNormal(v.normal);
#endif
#if NORMAL_ON
half3 wTangent = UnityObjectToWorldDir(v.tangent.xyz);
// compute bitangent from cross product of normal and tangent
half tangentSign = v.tangent.w * unity_WorldTransformParams.w;
half3 wBitangent = cross(o.worldNormal, wTangent) * tangentSign;
// output the tangent space matrix
o.tspace0 = half3(wTangent.x, wBitangent.x, o.worldNormal.x);
o.tspace1 = half3(wTangent.y, wBitangent.y, o.worldNormal.y);
o.tspace2 = half3(wTangent.z, wBitangent.z, o.worldNormal.z);
#endif
o.uv_main = TRANSFORM_TEX(v.texcoord, _MainTex);
UNITY_TRANSFER_FOG(o, o.vertex);
return o;
}
v2f_lm vert_lm(appdata_lm v)
{
v2f_lm o;
o.vertex = UnityObjectToClipPos(v.vertex); // XXX: Is this efficient?
#if PHONG_ON
o.worldVertex = mul(unity_ObjectToWorld, v.vertex);
o.worldNormal = UnityObjectToWorldNormal(v.normal);
#endif
#if NORMAL_ON && PHONG_ON
half3 wTangent = UnityObjectToWorldDir(v.tangent.xyz);
// compute bitangent from cross product of normal and tangent
half tangentSign = v.tangent.w * unity_WorldTransformParams.w;
half3 wBitangent = cross(o.worldNormal, wTangent) * tangentSign;
// output the tangent space matrix
o.tspace0 = half3(wTangent.x, wBitangent.x, o.worldNormal.x);
o.tspace1 = half3(wTangent.y, wBitangent.y, o.worldNormal.y);
o.tspace2 = half3(wTangent.z, wBitangent.z, o.worldNormal.z);
#endif
o.uv_main = TRANSFORM_TEX(v.texcoord, _MainTex);
// lightmapped uv
o.uv_lm = v.texcoord_lm.xy * unity_LightmapST.xy + unity_LightmapST.zw;
UNITY_TRANSFER_FOG(o, o.vertex);
return o;
}
// FRAGMENT SHADERS
#if COLOR_ON
// Fix the brightness, contrast and color
half4 bcc(half4 main_color)
{
main_color.rgb /= main_color.a;
main_color.rgb = ((main_color.rgb - 0.5f) * max(_Contrast, 0)) + 0.5f;
main_color.rgb += _Brightness * 0.05;
main_color.rgb *= main_color.a;
//main_color.rgb = lerp(main_color.rgb, _Color.rgb, _Color.a);
main_color *= _Color;
return main_color;
}
#endif
fixed4 frag(v2f i) : SV_Target
{
half4 returnColor = tex2D(_MainTex, i.uv_main);
#if DETAIL_ON
half4 mask = half4(1, 1, 1, 1);
#endif
#if DETAIL_ON && DETAIL_MASK_ON
mask = tex2D(_DetailMask, i.uv_main);
#endif
#if DETAIL_ON
half4 detailMap = tex2D(_DetailMap, i.uv_main) * mask;
const fixed3 constantList = fixed3(1.0, 0.5, 0.0);
returnColor = (returnColor + _DetailStrength*detailMap) * constantList.xxxz + (returnColor + _DetailStrength*detailMap) * constantList.zzzy;
#endif
#if EMISSION_ON
returnColor += tex2D(_EmissionMap, i.uv_main)*_EmissionStrength*0.2;
#endif
#if NORMAL_ON
// sample the normal map, and decode from the Unity encoding
half3 tnormal = UnpackNormal(tex2D(_NormalMap, i.uv_main));
// transform normal from tangent to world space
half3 worldNormal;
worldNormal.x = dot(i.tspace0, tnormal);
worldNormal.y = dot(i.tspace1, tnormal);
worldNormal.z = dot(i.tspace2, tnormal);
float3 normal = normalize(worldNormal);
#endif
#if !NORMAL_ON && PHONG_ON
float3 normal = normalize(i.worldNormal.xyz);
#endif
#if PHONG_ON
float3 localCoords = i.worldVertex.xyz;
// ambient intensities
half3 amb = returnColor.rgb * unity_AmbientSky * _AmbiencePower;
// diffuse intensities
half3 L = normalize(_PointLightPosition - localCoords);
half LdotN = dot(L, normal);
half3 dif = _PointLightColor.rgb * returnColor.rgb * saturate(LdotN) * _DiffusePower;
// specular intensities
half3 V = normalize(_WorldSpaceCameraPos - localCoords);
half3 H = normalize(V+L);
half3 spe = _PointLightColor.rgb * pow(saturate(dot(normal, H)), 25) * _SpecularPower;
returnColor.rgb = lerp(returnColor.rgb, amb.rgb+dif.rgb+spe.rgb, _PointLightColor.a);
#endif
UNITY_APPLY_FOG(i.fogCoord, returnColor);
#if COLOR_ON
returnColor = bcc(returnColor);
#endif
return returnColor;
}
fixed4 frag_lm(v2f_lm i) : SV_Target
{
half4 returnColor = tex2D(_MainTex, i.uv_main);
#if DETAIL_ON
half4 mask = half4(1, 1, 1, 1);
#endif
#if DETAIL_ON && DETAIL_MASK_ON
mask = tex2D(_DetailMask, i.uv_main);
#endif
#if DETAIL_ON
half4 detailMap = tex2D(_DetailMap, i.uv_main) * mask;
const fixed3 constantList = fixed3(1.0, 0.5, 0.0);
returnColor = (returnColor + _DetailStrength*detailMap) * constantList.xxxz + (returnColor + _DetailStrength*detailMap) * constantList.zzzy;
#endif
#if EMISSION_ON
returnColor += tex2D(_EmissionMap, i.uv_main)*_EmissionStrength/5;
#endif
returnColor.rgb *= DecodeLightmap(UNITY_SAMPLE_TEX2D(unity_Lightmap, i.uv_lm));
#if NORMAL_ON
// sample the normal map, and decode from the Unity encoding
half3 tnormal = UnpackNormal(tex2D(_NormalMap, i.uv_main));
// transform normal from tangent to world space
half3 worldNormal;
worldNormal.x = dot(i.tspace0, tnormal);
worldNormal.y = dot(i.tspace1, tnormal);
worldNormal.z = dot(i.tspace2, tnormal);
float3 normal = normalize(worldNormal);
#endif
#if !NORMAL_ON && PHONG_ON
float3 normal = normalize(i.worldNormal.xyz);
#endif
#if PHONG_ON
float3 localCoords = i.worldVertex.xyz;
// ambient intensities
half3 amb = returnColor.rgb * unity_AmbientSky * _AmbiencePower;
// diffuse intensities
half3 L = normalize(_PointLightPosition - localCoords);
half LdotN = dot(L, normal);
half3 dif = _PointLightColor.rgb * returnColor.rgb * saturate(LdotN) * _DiffusePower;
// specular intensities
half3 V = normalize(_WorldSpaceCameraPos - localCoords);
half3 H = normalize(V+L);
half3 spe = _PointLightColor.rgb * pow(saturate(dot(normal, H)), 25) * _SpecularPower;
returnColor.rgb = lerp(returnColor.rgb, amb.rgb+dif.rgb+spe.rgb, _PointLightColor.a);
#endif
UNITY_APPLY_FOG(i.fogCoord, returnColor);
#if COLOR_ON
returnColor = bcc(returnColor);
#endif
return returnColor;
}
// SURFACE SHADERS

View File

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: 3da53e94e926e0140a44a19326e2b2b3
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
preprocessorOverride: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,110 +0,0 @@
// Standard shader for mobile
// Written by Nihal Mirpuri @nylonee
Shader "Mobile/Standard"
{
Properties
{
_MainTex("Albedo", 2D) = "white" {}
[Toggle(COLOR_ON)] _ColorToggle("Color, Brightness, Contrast Toggle", Int) = 0
_Color("Color", Color) = (1,1,1)
_Brightness ("Brightness", Range(-10.0, 10.0)) = 0.0
_Contrast ("Contrast", Range(0.0, 3.0)) = 1
[Toggle(PHONG_ON)] _Phong("Point Light Toggle", Int) = 0
_PointLightColor("Point Light Color", Color) = (1,1,1,1)
_PointLightPosition("Point Light Position", Vector) = (0.0,0.0,0.0)
_AmbiencePower("Ambience intensity", Range(0.0,2.0)) = 1.0
_SpecularPower("Specular intensity", Range(0.0,2.0)) = 1.0
_DiffusePower("Diffuse intensity", Range(0.0,2.0)) = 1.0
[Toggle(DETAIL_ON)] _Detail("Detail Map Toggle", Int) = 0
_DetailMap("Detail Map", 2D) = "white" {}
_DetailStrength("Detail Map Strength", Range(0.0, 2.0)) = 1
[Toggle(DETAIL_MASK_ON)] _Mask("Detail Mask Toggle", Int) = 0
_DetailMask("Detail Mask", 2D) = "white" {}
[Toggle(EMISSION_ON)] _Emission("Emission Map Toggle", Int) = 0
_EmissionMap("Emission", 2D) = "white" {}
_EmissionStrength("Emission Strength", Range(0.0,10.0)) = 1
[Toggle(NORMAL_ON)] _Normal("Normal Map Toggle", Int) = 0
_NormalMap("Normal Map", 2D) = "bump" {}
}
SubShader {
Tags { "RenderType" = "Opaque" }
LOD 150
// Render the relevant pass based on whether lightmap data is being passed in
Pass {
Tags { "LightMode" = "VertexLM" }
Lighting Off
Cull Back
CGPROGRAM
#pragma vertex vert_lm
#pragma fragment frag_lm
#pragma multi_compile_fog
#pragma skip_variants FOG_LINEAR FOG_EXP
#pragma shader_feature COLOR_ON
#pragma shader_feature PHONG_ON
#pragma shader_feature DETAIL_ON
#pragma shader_feature DETAIL_MASK_ON
#pragma shader_feature EMISSION_ON
#pragma shader_feature NORMAL_ON
#include "StandardMobile.cginc"
ENDCG
}
Pass {
Tags { "LightMode" = "VertexLMRGBM" }
Lighting Off
Cull Back
CGPROGRAM
#pragma vertex vert_lm
#pragma fragment frag_lm
#pragma multi_compile_fog
#pragma skip_variants FOG_LINEAR FOG_EXP
#pragma shader_feature COLOR_ON
#pragma shader_feature PHONG_ON
#pragma shader_feature DETAIL_ON
#pragma shader_feature DETAIL_MASK_ON
#pragma shader_feature EMISSION_ON
#pragma shader_feature NORMAL_ON
#include "StandardMobile.cginc"
ENDCG
}
Pass {
Tags { "LightMode" = "Vertex" }
Lighting Off
Cull Back
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#pragma multi_compile_fog
#pragma skip_variants FOG_LINEAR FOG_EXP
#pragma shader_feature COLOR_ON
#pragma shader_feature PHONG_ON
#pragma shader_feature DETAIL_ON
#pragma shader_feature DETAIL_MASK_ON
#pragma shader_feature EMISSION_ON
#pragma shader_feature NORMAL_ON
#include "StandardMobile.cginc"
ENDCG
}
}
FallBack "Mobile/VertexLit"
}

View File

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: ba67c8b1d5e59dc428ad9fc9270f8353
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
preprocessorOverride: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: ede1368ba1fd90949ba1a0b4c74c6970
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,16 +0,0 @@
fileFormatVersion: 2
guid: 8297a2bf97dbbba468bd2518d003a876
TrueTypeFontImporter:
serializedVersion: 2
fontSize: 16
forceTextureCase: -2
characterSpacing: 1
characterPadding: 0
includeFontData: 1
use2xBehaviour: 0
fontNames: []
customCharacters:
fontRenderingMode: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: 27267307e339645e08d812c2bd97702c
folderAsset: yes
timeCreated: 1438075911
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: a8421d374f00145d485dad8f07fdde7e
folderAsset: yes
timeCreated: 1438075911
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: db23997b705e34a419ba834ac85344f5
guid: 08d38891fe56f75448d95b93bf3e6c5c
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 9f9f9848e17e5eb46b596a07391a42cc
guid: b79178f10b84c764f8c91480b4fdabe8
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -2,20 +2,26 @@
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: prop_asteroid_01_mat
m_Shader: {fileID: 4800000, guid: ba67c8b1d5e59dc428ad9fc9270f8353, type: 3}
m_ShaderKeywords: _EMISSION _NORMALMAP
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _EMISSION
- _NORMALMAP
m_InvalidKeywords: []
m_LightmapFlags: 1
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
@ -63,6 +69,7 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AmbiencePower: 1
- _Brightness: 0

View File

@ -2,20 +2,26 @@
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: prop_asteroid_02_mat
m_Shader: {fileID: 4800000, guid: ba67c8b1d5e59dc428ad9fc9270f8353, type: 3}
m_ShaderKeywords: _EMISSION _NORMALMAP
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _EMISSION
- _NORMALMAP
m_InvalidKeywords: []
m_LightmapFlags: 1
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
@ -63,6 +69,7 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AmbiencePower: 1
- _Brightness: 0

View File

@ -2,20 +2,26 @@
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: prop_asteroid_03_mat
m_Shader: {fileID: 4800000, guid: ba67c8b1d5e59dc428ad9fc9270f8353, type: 3}
m_ShaderKeywords: _EMISSION _NORMALMAP
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _EMISSION
- _NORMALMAP
m_InvalidKeywords: []
m_LightmapFlags: 1
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
@ -63,6 +69,7 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AmbiencePower: 1
- _Brightness: 0

Some files were not shown because too many files have changed in this diff Show More