浏览代码

Custom lighting shader tests

/main
Ciro Continisio 4 年前
当前提交
0788d614
共有 13 个文件被更改,包括 1771 次插入1665 次删除
  1. 6
      UOP1_Project/Assets/Art/PlaceholderModels/Pig.fbx.meta
  2. 5
      UOP1_Project/Assets/Materials/ToonGeneric.mat
  3. 6
      UOP1_Project/Assets/Materials/ToonPig.mat
  4. 2
      UOP1_Project/Assets/Materials/White.mat
  5. 214
      UOP1_Project/Assets/Scenes/ToonShading.unity
  6. 8
      UOP1_Project/Assets/Scenes/ToonShading/LightingData.asset
  7. 999
      UOP1_Project/Assets/Scenes/ToonShading/Lightmap-0_comp_dir.png
  8. 992
      UOP1_Project/Assets/Scenes/ToonShading/Lightmap-0_comp_light.exr
  9. 448
      UOP1_Project/Assets/Shaders/CustomLighting.shadergraph
  10. 10
      UOP1_Project/Assets/Shaders/ToonShading.shadergraph.meta
  11. 431
      UOP1_Project/Assets/Shaders/Toon2.shadergraph
  12. 315
      UOP1_Project/Assets/Shaders/ToonShading.shadergraph
  13. 0
      /UOP1_Project/Assets/Shaders/CustomLighting.shadergraph.meta

6
UOP1_Project/Assets/Art/PlaceholderModels/Pig.fbx.meta


importLights: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
generateSecondaryUV: 1
useFileUnits: 1
keepQuads: 0
weldVertices: 1

meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVAreaDistortion: 15
secondaryUVPackMargin: 4
secondaryUVPackMargin: 35
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60

5
UOP1_Project/Assets/Materials/ToonGeneric.mat


m_Floats:
- Boolean_1E9DE5A1: 0
- LIGHTMAP: 0
- Vector1_766834AD: -0.1
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1

- _OutlineThickness: 4
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _Smoothness: 0.25
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

m_Colors:
- Color_6358DF5B: {r: 1, g: 1, b: 0.6367924, a: 0}
- _MixedShadowsColor: {r: 0.52380735, g: 0.5930185, b: 0.745283, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
- _Tint: {r: 0.74061054, g: 0.8261332, b: 0.8396226, a: 0}
--- !u!114 &4663899985341053177

6
UOP1_Project/Assets/Materials/ToonPig.mat


m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: ToonPig
m_Shader: {fileID: -6465566751694194690, guid: d14103578c1e37446821481c42b55189,
m_Shader: {fileID: -6465566751694194690, guid: ce3adfe50c31dcd48a286c93f30a7a37,
type: 3}
m_ShaderKeywords:
m_LightmapFlags: 4

- _OutlineThickness: 1.45
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _Smoothness: 0.46
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1

m_Colors:
- Color_6358DF5B: {r: 0, g: 0.6742267, b: 1, a: 0}
- _MixedShadowsColor: {r: 0.52380735, g: 0.5930185, b: 0.745283, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
- _Tint: {r: 1, g: 1, b: 1, a: 0}
--- !u!114 &3217464616716757470

2
UOP1_Project/Assets/Materials/White.mat


- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _BaseColor: {r: 0.9622642, g: 0.9622642, b: 0.9622642, 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}

214
UOP1_Project/Assets/Scenes/ToonShading.unity


m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AO: 1
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0

m_MixedBakeMode: 1
m_BakeBackend: 2
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRDirectSampleCount: 64
m_PVREnvironmentSampleCount: 256
m_PVREnvironmentSampleCount: 512
m_PVRDenoiserTypeDirect: 1
m_PVRDenoiserTypeIndirect: 1
m_PVRDenoiserTypeAO: 1
m_PVRDenoiserTypeDirect: 2
m_PVRDenoiserTypeIndirect: 2
m_PVRDenoiserTypeAO: 2
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 5
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRCulling: 0
m_PVRFilteringGaussRadiusDirect: 2
m_PVRFilteringGaussRadiusIndirect: 4
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2

- target: {fileID: -8679921383154817045, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}
propertyPath: m_LocalPosition.x
value: 1.69
value: 1.182
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}

- target: {fileID: -8679921383154817045, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
value: 0
value: 0.4062465
value: 0
value: -0
value: 0
value: 0.9137635
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}

- target: {fileID: -8679921383154817045, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 47.938004
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}

m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 972802865}
m_LocalRotation: {x: -0.02992655, y: 0.96792686, z: -0.14066207, w: -0.20600057}
m_LocalPosition: {x: 3.1853414, y: 2.91, z: 5.35}
m_LocalRotation: {x: -0.0063817957, y: 0.94574267, z: -0.24947761, w: -0.2080653}
m_LocalPosition: {x: 3.23, y: 3.29, z: 6.634}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: 28.329, y: -153.67401, z: 5.9830003}
--- !u!114 &972802869
MonoBehaviour:
m_ObjectHideFlags: 0

serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 0.6933962, g: 1, b: 0.7135004, a: 1}
m_Color: {r: 1, g: 0.99300146, b: 0.9386792, a: 1}
m_Intensity: 0.7
m_Range: 10
m_SpotAngle: 30

m_Father: {fileID: 926554854}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1413697149
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}
propertyPath: m_LocalPosition.x
value: 3.48
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}
propertyPath: m_LocalPosition.y
value: 0.8
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}
propertyPath: m_LocalPosition.z
value: 4.261
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}
propertyPath: m_RootOrder
value: 14
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7511558181221131132, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: cddd3350453cf434a8947870acec244b, type: 2}
- target: {fileID: -7511558181221131132, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}
propertyPath: m_StitchLightmapSeams
value: 1
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}
propertyPath: m_Name
value: Pig (1)
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: dd5c71e6c3eca43b1998ff544efa89a6,
type: 3}
propertyPath: m_StaticEditorFlags
value: 4294967295
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: dd5c71e6c3eca43b1998ff544efa89a6, type: 3}
--- !u!1001 &1471690008
PrefabInstance:
m_ObjectHideFlags: 0

m_Children: []
m_Father: {fileID: 1203001620}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1678446970
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1678446972}
- component: {fileID: 1678446971}
m_Layer: 0
m_Name: Point Light (1)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &1678446971
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1678446970}
m_Enabled: 1
serializedVersion: 10
m_Type: 2
m_Shape: 0
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Intensity: 2
m_Range: 6
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 0
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.02
m_NormalBias: 0.1
m_NearPlane: 0.1
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 1
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &1678446972
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1678446970}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 2.57, y: 0.78, z: -18.288}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 13
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1688949998
GameObject:

8
UOP1_Project/Assets/Scenes/ToonShading/LightingData.asset
文件差异内容过多而无法显示
查看文件

999
UOP1_Project/Assets/Scenes/ToonShading/Lightmap-0_comp_dir.png
文件差异内容过多而无法显示
查看文件

992
UOP1_Project/Assets/Scenes/ToonShading/Lightmap-0_comp_light.exr
文件差异内容过多而无法显示
查看文件

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

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


fileFormatVersion: 2
guid: d14103578c1e37446821481c42b55189
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}

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

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

/UOP1_Project/Assets/Shaders/Toon2.shadergraph.meta → /UOP1_Project/Assets/Shaders/CustomLighting.shadergraph.meta

正在加载...
取消
保存