本项目演示如何创建自己的顶点动画着色器。场景不使用任何纹理或动画资源,所有内容都使用Shader Graph进行着色和动画处理。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

454 行
15 KiB

; FBX 7.1.0 project file
; Copyright (C) 1997-2010 Autodesk Inc. and/or its licensors.
; All rights reserved.
; ----------------------------------------------------
FBXHeaderExtension: {
FBXHeaderVersion: 1003
FBXVersion: 7100
CreationTimeStamp: {
Version: 1000
Year: 2011
Month: 11
Day: 29
Hour: 10
Minute: 49
Second: 16
Millisecond: 96
}
Creator: "FBX SDK/FBX Plugins version 2012.2"
SceneInfo: "SceneInfo::GlobalInfo", "UserData" {
Type: "UserData"
Version: 100
MetaData: {
Version: 100
Title: ""
Subject: ""
Author: ""
Keywords: ""
Revision: ""
Comment: ""
}
Properties70: {
P: "DocumentUrl", "KString", "Url", "", "J:\zivixUnity3d\Assets\Sea_Assets\Sea_Environment\groundPlaneMesh.FBX"
P: "SrcDocumentUrl", "KString", "Url", "", "J:\zivixUnity3d\Assets\Sea_Assets\Sea_Environment\groundPlaneMesh.FBX"
P: "Original", "Compound", "", ""
P: "Original|ApplicationVendor", "KString", "", "", "Autodesk"
P: "Original|ApplicationName", "KString", "", "", "3ds Max"
P: "Original|ApplicationVersion", "KString", "", "", "2012"
P: "Original|DateTime_GMT", "DateTime", "", "", "29/11/2011 16:49:16.092"
P: "Original|FileName", "KString", "", "", "J:\zivixUnity3d\Assets\Sea_Assets\Sea_Environment\groundPlaneMesh.FBX"
P: "LastSaved", "Compound", "", ""
P: "LastSaved|ApplicationVendor", "KString", "", "", "Autodesk"
P: "LastSaved|ApplicationName", "KString", "", "", "3ds Max"
P: "LastSaved|ApplicationVersion", "KString", "", "", "2012"
P: "LastSaved|DateTime_GMT", "DateTime", "", "", "29/11/2011 16:49:16.092"
}
}
}
GlobalSettings: {
Version: 1000
Properties70: {
P: "UpAxis", "int", "Integer", "",2
P: "UpAxisSign", "int", "Integer", "",1
P: "FrontAxis", "int", "Integer", "",1
P: "FrontAxisSign", "int", "Integer", "",-1
P: "CoordAxis", "int", "Integer", "",0
P: "CoordAxisSign", "int", "Integer", "",1
P: "OriginalUpAxis", "int", "Integer", "",2
P: "OriginalUpAxisSign", "int", "Integer", "",1
P: "UnitScaleFactor", "double", "Number", "",2.54
P: "OriginalUnitScaleFactor", "double", "Number", "",2.54
P: "AmbientColor", "ColorRGB", "Color", "",0,0,0
P: "DefaultCamera", "KString", "", "", "Producer Perspective"
P: "TimeMode", "enum", "", "",6
P: "TimeSpanStart", "KTime", "Time", "",0
P: "TimeSpanStop", "KTime", "Time", "",92372316000
P: "CustomFrameRate", "double", "Number", "",-1
}
}
; Documents Description
;------------------------------------------------------------------
Documents: {
Count: 1
Document: 1485452720, "", "Scene" {
Properties70: {
P: "SourceObject", "object", "", ""
P: "ActiveAnimStackName", "KString", "", "", ""
}
RootNode: 0
}
}
; Document References
;------------------------------------------------------------------
References: {
}
; Object definitions
;------------------------------------------------------------------
Definitions: {
Version: 100
Count: 8
ObjectType: "GlobalSettings" {
Count: 1
}
ObjectType: "AnimationStack" {
Count: 1
PropertyTemplate: "KFbxAnimStack" {
Properties70: {
P: "Description", "KString", "", "", ""
P: "LocalStart", "KTime", "Time", "",0
P: "LocalStop", "KTime", "Time", "",0
P: "ReferenceStart", "KTime", "Time", "",0
P: "ReferenceStop", "KTime", "Time", "",0
}
}
}
ObjectType: "AnimationLayer" {
Count: 1
PropertyTemplate: "KFbxAnimLayer" {
Properties70: {
P: "Weight", "Number", "", "A",100
P: "Mute", "bool", "", "",0
P: "Solo", "bool", "", "",0
P: "Lock", "bool", "", "",0
P: "Color", "ColorRGB", "Color", "",0.8,0.8,0.8
P: "BlendMode", "enum", "", "",0
P: "RotationAccumulationMode", "enum", "", "",0
P: "ScaleAccumulationMode", "enum", "", "",0
P: "BlendModeBypass", "ULongLong", "", "",0
}
}
}
ObjectType: "Model" {
Count: 1
PropertyTemplate: "KFbxNode" {
Properties70: {
P: "QuaternionInterpolate", "enum", "", "",0
P: "RotationOffset", "Vector3D", "Vector", "",0,0,0
P: "RotationPivot", "Vector3D", "Vector", "",0,0,0
P: "ScalingOffset", "Vector3D", "Vector", "",0,0,0
P: "ScalingPivot", "Vector3D", "Vector", "",0,0,0
P: "TranslationActive", "bool", "", "",0
P: "TranslationMin", "Vector3D", "Vector", "",0,0,0
P: "TranslationMax", "Vector3D", "Vector", "",0,0,0
P: "TranslationMinX", "bool", "", "",0
P: "TranslationMinY", "bool", "", "",0
P: "TranslationMinZ", "bool", "", "",0
P: "TranslationMaxX", "bool", "", "",0
P: "TranslationMaxY", "bool", "", "",0
P: "TranslationMaxZ", "bool", "", "",0
P: "RotationOrder", "enum", "", "",0
P: "RotationSpaceForLimitOnly", "bool", "", "",0
P: "RotationStiffnessX", "double", "Number", "",0
P: "RotationStiffnessY", "double", "Number", "",0
P: "RotationStiffnessZ", "double", "Number", "",0
P: "AxisLen", "double", "Number", "",10
P: "PreRotation", "Vector3D", "Vector", "",0,0,0
P: "PostRotation", "Vector3D", "Vector", "",0,0,0
P: "RotationActive", "bool", "", "",0
P: "RotationMin", "Vector3D", "Vector", "",0,0,0
P: "RotationMax", "Vector3D", "Vector", "",0,0,0
P: "RotationMinX", "bool", "", "",0
P: "RotationMinY", "bool", "", "",0
P: "RotationMinZ", "bool", "", "",0
P: "RotationMaxX", "bool", "", "",0
P: "RotationMaxY", "bool", "", "",0
P: "RotationMaxZ", "bool", "", "",0
P: "InheritType", "enum", "", "",0
P: "ScalingActive", "bool", "", "",0
P: "ScalingMin", "Vector3D", "Vector", "",0,0,0
P: "ScalingMax", "Vector3D", "Vector", "",1,1,1
P: "ScalingMinX", "bool", "", "",0
P: "ScalingMinY", "bool", "", "",0
P: "ScalingMinZ", "bool", "", "",0
P: "ScalingMaxX", "bool", "", "",0
P: "ScalingMaxY", "bool", "", "",0
P: "ScalingMaxZ", "bool", "", "",0
P: "GeometricTranslation", "Vector3D", "Vector", "",0,0,0
P: "GeometricRotation", "Vector3D", "Vector", "",0,0,0
P: "GeometricScaling", "Vector3D", "Vector", "",1,1,1
P: "MinDampRangeX", "double", "Number", "",0
P: "MinDampRangeY", "double", "Number", "",0
P: "MinDampRangeZ", "double", "Number", "",0
P: "MaxDampRangeX", "double", "Number", "",0
P: "MaxDampRangeY", "double", "Number", "",0
P: "MaxDampRangeZ", "double", "Number", "",0
P: "MinDampStrengthX", "double", "Number", "",0
P: "MinDampStrengthY", "double", "Number", "",0
P: "MinDampStrengthZ", "double", "Number", "",0
P: "MaxDampStrengthX", "double", "Number", "",0
P: "MaxDampStrengthY", "double", "Number", "",0
P: "MaxDampStrengthZ", "double", "Number", "",0
P: "PreferedAngleX", "double", "Number", "",0
P: "PreferedAngleY", "double", "Number", "",0
P: "PreferedAngleZ", "double", "Number", "",0
P: "LookAtProperty", "object", "", ""
P: "UpVectorProperty", "object", "", ""
P: "Show", "bool", "", "",1
P: "NegativePercentShapeSupport", "bool", "", "",1
P: "DefaultAttributeIndex", "int", "Integer", "",-1
P: "Freeze", "bool", "", "",0
P: "LODBox", "bool", "", "",0
P: "Lcl Translation", "Lcl Translation", "", "A",0,0,0
P: "Lcl Rotation", "Lcl Rotation", "", "A",0,0,0
P: "Lcl Scaling", "Lcl Scaling", "", "A",1,1,1
P: "Visibility", "Visibility", "", "A",1
P: "Visibility Inheritance", "Visibility Inheritance", "", "",1
}
}
}
ObjectType: "Geometry" {
Count: 1
PropertyTemplate: "KFbxMesh" {
Properties70: {
P: "Color", "ColorRGB", "Color", "",0.8,0.8,0.8
P: "BBoxMin", "Vector3D", "Vector", "",0,0,0
P: "BBoxMax", "Vector3D", "Vector", "",0,0,0
}
}
}
ObjectType: "Material" {
Count: 1
PropertyTemplate: "KFbxSurfacePhong" {
Properties70: {
P: "ShadingModel", "KString", "", "", "Phong"
P: "MultiLayer", "bool", "", "",0
P: "EmissiveColor", "ColorRGB", "Color", "",0,0,0
P: "EmissiveFactor", "double", "Number", "",1
P: "AmbientColor", "ColorRGB", "Color", "",0.2,0.2,0.2
P: "AmbientFactor", "double", "Number", "",1
P: "DiffuseColor", "ColorRGB", "Color", "",0.8,0.8,0.8
P: "DiffuseFactor", "double", "Number", "",1
P: "Bump", "Vector3D", "Vector", "",0,0,0
P: "NormalMap", "Vector3D", "Vector", "",0,0,0
P: "BumpFactor", "double", "Number", "",1
P: "TransparentColor", "ColorRGB", "Color", "",0,0,0
P: "TransparencyFactor", "double", "Number", "",0
P: "DisplacementColor", "ColorRGB", "Color", "",0,0,0
P: "DisplacementFactor", "double", "Number", "",1
P: "VectorDisplacementColor", "ColorRGB", "Color", "",0,0,0
P: "VectorDisplacementFactor", "double", "Number", "",1
P: "SpecularColor", "ColorRGB", "Color", "",0.2,0.2,0.2
P: "SpecularFactor", "double", "Number", "",1
P: "ShininessExponent", "double", "Number", "",20
P: "ReflectionColor", "ColorRGB", "Color", "",0,0,0
P: "ReflectionFactor", "double", "Number", "",1
}
}
}
ObjectType: "Texture" {
Count: 1
PropertyTemplate: "KFbxFileTexture" {
Properties70: {
P: "TextureTypeUse", "enum", "", "",0
P: "Texture alpha", "Number", "", "A",1
P: "CurrentMappingType", "enum", "", "",0
P: "WrapModeU", "enum", "", "",0
P: "WrapModeV", "enum", "", "",0
P: "UVSwap", "bool", "", "",0
P: "PremultiplyAlpha", "bool", "", "",1
P: "Translation", "Vector", "", "A",0,0,0
P: "Rotation", "Vector", "", "A",0,0,0
P: "Scaling", "Vector", "", "A",1,1,1
P: "TextureRotationPivot", "Vector3D", "Vector", "",0,0,0
P: "TextureScalingPivot", "Vector3D", "Vector", "",0,0,0
P: "CurrentTextureBlendMode", "enum", "", "",1
P: "UVSet", "KString", "", "", "default"
P: "UseMaterial", "bool", "", "",0
P: "UseMipMap", "bool", "", "",0
}
}
}
ObjectType: "Video" {
Count: 1
PropertyTemplate: "KFbxVideo" {
Properties70: {
P: "ImageSequence", "bool", "", "",0
P: "ImageSequenceOffset", "int", "Integer", "",0
P: "FrameRate", "double", "Number", "",0
P: "LastFrame", "int", "Integer", "",0
P: "Width", "int", "Integer", "",0
P: "Height", "int", "Integer", "",0
P: "Path", "KString", "XRefUrl", "", ""
P: "StartFrame", "int", "Integer", "",0
P: "StopFrame", "int", "Integer", "",0
P: "PlaySpeed", "double", "Number", "",0
P: "Offset", "KTime", "Time", "",0
P: "InterlaceMode", "enum", "", "",0
P: "FreeRunning", "bool", "", "",0
P: "Loop", "bool", "", "",0
P: "AccessMode", "enum", "", "",0
}
}
}
}
; Object properties
;------------------------------------------------------------------
Objects: {
Geometry: 805560352, "Geometry::", "Mesh" {
Properties70: {
P: "Color", "ColorRGB", "Color", "",0.898039215686275,0.603921568627451,0.843137254901961
}
Vertices: *24 {
a: 492.909637451172,0,-0,348.539733886719,-348.539733886719,-0,-2.15457639569649e-005,-492.909637451172,-0,-348.539733886719,-348.539733886719,-0,-492.909637451172,4.30915279139299e-005,-0,-348.539672851563,348.539794921875,-0,5.87788872508099e-006,492.909637451172,-0,348.539703369141,348.539794921875,-0
}
PolygonVertexIndex: *18 {
a: 6,5,-5,4,3,-3,2,1,-1,4,2,-1,6,4,-1,7,6,-1
}
Edges: *13 {
a: 0,1,2,3,4,5,6,7,8,11,14,15,17
}
GeometryVersion: 124
LayerElementNormal: 0 {
Version: 101
Name: ""
MappingInformationType: "ByPolygonVertex"
ReferenceInformationType: "Direct"
Normals: *54 {
a: 0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1
}
}
LayerElementUV: 0 {
Version: 101
Name: "UVChannel_1"
MappingInformationType: "ByPolygonVertex"
ReferenceInformationType: "IndexToDirect"
UV: *16 {
a: 0.14644655585289,0.853553295135498,2.98023223876953e-008,0.499999970197678,0.146446615457535,0.14644667506218,0.499999970197678,2.98023223876953e-008,0.853553414344788,0.14644667506218,1,0.5,0.853553295135498,0.853553414344788,0.499999970197678,1
}
UVIndex: *18 {
a: 1,2,3,3,4,5,5,6,7,3,5,7,1,3,7,0,1,7
}
}
LayerElementVisibility: 0 {
Version: 101
Name: ""
MappingInformationType: "ByEdge"
ReferenceInformationType: "Direct"
Visibility: *13 {
a: 1,1,0,1,1,0,1,1,0,0,0,1,1
}
}
LayerElementMaterial: 0 {
Version: 101
Name: ""
MappingInformationType: "AllSame"
ReferenceInformationType: "IndexToDirect"
Materials: *1 {
a: 0
}
}
Layer: 0 {
Version: 100
LayerElement: {
Type: "LayerElementNormal"
TypedIndex: 0
}
LayerElement: {
Type: "LayerElementMaterial"
TypedIndex: 0
}
LayerElement: {
Type: "LayerElementVisibility"
TypedIndex: 0
}
LayerElement: {
Type: "LayerElementUV"
TypedIndex: 0
}
}
}
Model: 1493629600, "Model::groundPlaneMesh", "Mesh" {
Version: 232
Properties70: {
P: "InheritType", "enum", "", "",1
P: "ScalingMax", "Vector3D", "Vector", "",0,0,0
P: "DefaultAttributeIndex", "int", "Integer", "",0
P: "Lcl Translation", "Lcl Translation", "", "A",4.24710321426392,1.54440116882324,0
P: "MaxHandle", "int", "Integer", "UH",3
}
MultiLayer: 0
MultiTake: 1
Shading: T
Culling: "CullingOff"
}
Material: 1493640688, "Material::Material #59", "" {
Version: 102
ShadingModel: "phong"
MultiLayer: 0
Properties70: {
P: "ShadingModel", "KString", "", "", "phong"
P: "EmissiveFactor", "double", "Number", "",0
P: "AmbientColor", "ColorRGB", "Color", "",0.587999999523163,0.587999999523163,0.587999999523163
P: "DiffuseColor", "ColorRGB", "Color", "",0.587999999523163,0.587999999523163,0.587999999523163
P: "TransparentColor", "ColorRGB", "Color", "",1,1,1
P: "SpecularColor", "ColorRGB", "Color", "",0.899999976158142,0.899999976158142,0.899999976158142
P: "SpecularFactor", "double", "Number", "",0
P: "ShininessExponent", "double", "Number", "",2.0000000206574
P: "Emissive", "Vector3D", "Vector", "",0,0,0
P: "Ambient", "Vector3D", "Vector", "",0.587999999523163,0.587999999523163,0.587999999523163
P: "Diffuse", "Vector3D", "Vector", "",0.587999999523163,0.587999999523163,0.587999999523163
P: "Specular", "Vector3D", "Vector", "",0,0,0
P: "Shininess", "double", "Number", "",2.0000000206574
P: "Opacity", "double", "Number", "",1
P: "Reflectivity", "double", "Number", "",0
}
}
Video: 1493641088, "Video::Map #43", "Clip" {
Type: "Clip"
Properties70: {
P: "Path", "KString", "XRefUrl", "", "J:\zivixUnity3d\Assets\Sea_Assets\Sea_Environment\seaGround_diffuse.tif"
}
UseMipMap: 0
Filename: "J:\zivixUnity3d\Assets\Sea_Assets\Sea_Environment\seaGround_diffuse.tif"
RelativeFilename: "seaGround_diffuse.tif"
}
Texture: 666981072, "Texture::Map #43", "" {
Type: "TextureVideoClip"
Version: 202
TextureName: "Texture::Map #43"
Properties70: {
P: "UVSet", "KString", "", "", "UVChannel_1"
P: "UseMaterial", "bool", "", "",1
}
Media: "Video::Map #43"
FileName: "J:\zivixUnity3d\Assets\Sea_Assets\Sea_Environment\seaGround_diffuse.tif"
RelativeFilename: "seaGround_diffuse.tif"
ModelUVTranslation: 0,0
ModelUVScaling: 1,1
Texture_Alpha_Source: "Alpha_Black"
Cropping: 0,0,0,0
}
}
; Object connections
;------------------------------------------------------------------
Connections: {
;Model::groundPlaneMesh, Model::RootNode
C: "OO",1493629600,0
;AnimLayer::BaseLayer, AnimStack::Take 001
C: "OO",1383194656,1489169936
;Geometry::, Model::groundPlaneMesh
C: "OO",805560352,1493629600
;Material::Material #59, Model::groundPlaneMesh
C: "OO",1493640688,1493629600
;Texture::Map #43, Material::Material #59
C: "OP",666981072,1493640688, "DiffuseColor"
;Video::Map #43, Texture::Map #43
C: "OO",1493641088,666981072
}