浏览代码

Added fire shader and campfire (#172)

* Added fire shader and campfire

* Tweaked campfire light position

Co-authored-by: Ciro Continisio <ciro@unity3d.com>
/main
GitHub 4 年前
当前提交
32d860af
共有 7 个文件被更改,包括 3119 次插入0 次删除
  1. 999
      UOP1_Project/Assets/Prefabs/Props/PotOverFire.prefab
  2. 116
      UOP1_Project/Assets/Materials/Campfire.mat
  3. 8
      UOP1_Project/Assets/Materials/Campfire.mat.meta
  4. 1001
      UOP1_Project/Assets/Materials/FireMask.png
  5. 92
      UOP1_Project/Assets/Materials/FireMask.png.meta
  6. 893
      UOP1_Project/Assets/Shaders/Fire.shadergraph
  7. 10
      UOP1_Project/Assets/Shaders/Fire.shadergraph.meta

999
UOP1_Project/Assets/Prefabs/Props/PotOverFire.prefab
文件差异内容过多而无法显示
查看文件

116
UOP1_Project/Assets/Materials/Campfire.mat


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-2573192380809024110
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: 2
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Campfire
m_Shader: {fileID: -6465566751694194690, guid: 9910b923a7ae9c64bbd9e10995d179ca,
type: 3}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- Texture2D_223E1D7B:
m_Texture: {fileID: 2800000, guid: 405de57fd505b8440b23fbc23f7e9336, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _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}
- _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}
- _SampleTexture2D_70A94F15_Texture_1:
m_Texture: {fileID: 2800000, guid: 405de57fd505b8440b23fbc23f7e9336, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SampleTexture2D_9940286F_Texture_1:
m_Texture: {fileID: 2800000, guid: 405de57fd505b8440b23fbc23f7e9336, type: 3}
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}
m_Floats:
- Vector1_1A732881: 0.2
- Vector1_3CE37CDE: 7
- Vector1_43B53AD2: 0.35
- Vector1_55B236D2: 0.54
- Vector1_90DF4251: 8
- Vector1_A30EBD86: 0.5
- Vector1_C3BE765A: 1
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1
- _Cull: 2
- _Cutoff: 0.5
- _DstBlend: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Surface: 0
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- Color_1ECA086B: {r: 0.9811321, g: 0.93277717, b: 0.32858667, a: 1}
- Color_7137159: {r: 1, g: 0.6946566, b: 0, a: 1}
- Color_8BBE60CD: {r: 0.745283, g: 0, b: 0.076829664, a: 1}
- Color_A1627D43: {r: 1, g: 0.9648944, b: 0.6933962, a: 1}
- Color_CC0A6174: {r: 1, g: 0.5446759, b: 0, a: 1}
- Color_CEDF8312: {r: 1, g: 0.48748022, b: 0, a: 0.6431373}
- Color_E7D92A50: {r: 1, g: 0.19297355, b: 0, a: 1}
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}

8
UOP1_Project/Assets/Materials/Campfire.mat.meta


fileFormatVersion: 2
guid: 9eaadb2cdec6d774ab8888159179c573
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

1001
UOP1_Project/Assets/Materials/FireMask.png
文件差异内容过多而无法显示
查看文件

92
UOP1_Project/Assets/Materials/FireMask.png.meta


fileFormatVersion: 2
guid: 405de57fd505b8440b23fbc23f7e9336
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
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
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: -1
wrapV: -1
wrapW: -1
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
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

893
UOP1_Project/Assets/Shaders/Fire.shadergraph
文件差异内容过多而无法显示
查看文件

10
UOP1_Project/Assets/Shaders/Fire.shadergraph.meta


fileFormatVersion: 2
guid: 9910b923a7ae9c64bbd9e10995d179ca
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}
正在加载...
取消
保存