Compare commits
3 Commits
f620a650aa
...
97c82d46b8
| Author | SHA1 | Date | |
|---|---|---|---|
| 97c82d46b8 | |||
| 3769723861 | |||
| 48a0e3facb |
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3af8f06e8a10afb43b30f6746acbf7a3
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8705e6675e3398743b179e7517477f95
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 11500000, guid: 7aed4a49184670549a7848ee83952078, type: 3}
|
||||
Binary file not shown.
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dfbafcee1589b994190c8b138fa536fd
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 11500000, guid: 7aed4a49184670549a7848ee83952078, type: 3}
|
||||
Binary file not shown.
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 06451afa071792b4fb063e0bcda1bf4e
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 11500000, guid: 7aed4a49184670549a7848ee83952078, type: 3}
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 31ae15794738c134a94e378c021711b0
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 11500000, guid: 7aed4a49184670549a7848ee83952078, type: 3}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cb5a5730510d4e149b46695b20885be2
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -255,7 +255,7 @@ Transform:
|
||||
m_GameObject: {fileID: 1826889287}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0.18301274, y: -0.6830127, z: 0.18301274, w: 0.6830127}
|
||||
m_LocalPosition: {x: 2.1, y: 0.8, z: 0.2}
|
||||
m_LocalPosition: {x: 2.1, y: 1.23, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
@@ -432,7 +432,7 @@ Transform:
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
||||
--- !u!1001 &1990011521
|
||||
--- !u!1001 &2104382819
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
@@ -440,87 +440,131 @@ PrefabInstance:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: -973084862543737302, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -8930390722167643903, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_ExecuteInEditor
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -973084862543737302, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_PropertySheet.m_Uint.m_Array.Array.size
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -973084862543737302, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -973084862543737302, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_PropertySheet.m_Float.m_Array.Array.size
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -973084862543737302, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_PropertySheet.m_Uint.m_Array.Array.data[0].m_Name
|
||||
value: SplatCount
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -973084862543737302, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -973084862543737302, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_PropertySheet.m_Uint.m_Array.Array.data[1].m_Name
|
||||
value: SHDegrees
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -973084862543737302, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -973084862543737302, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_PropertySheet.m_Float.m_Array.Array.data[0].m_Name
|
||||
value: OpacityMultiplier
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -973084862543737302, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_PropertySheet.m_Float.m_Array.Array.data[1].m_Name
|
||||
value: ScaleMultiplier
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -973084862543737302, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_PropertySheet.m_Uint.m_Array.Array.data[0].m_Value
|
||||
value: 11081
|
||||
value: 20000
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -973084862543737302, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -973084862543737302, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_PropertySheet.m_Uint.m_Array.Array.data[1].m_Value
|
||||
value: 0
|
||||
value: 3
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -973084862543737302, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -973084862543737302, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_PropertySheet.m_Float.m_Array.Array.data[0].m_Value
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -973084862543737302, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_PropertySheet.m_Float.m_Array.Array.data[1].m_Value
|
||||
value: 64
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -973084862543737302, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_PropertySheet.m_Uint.m_Array.Array.data[0].m_Overridden
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -973084862543737302, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -973084862543737302, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_PropertySheet.m_Uint.m_Array.Array.data[1].m_Overridden
|
||||
value: 1
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -774367247743995920, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -973084862543737302, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_PropertySheet.m_Float.m_Array.Array.data[0].m_Overridden
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -973084862543737302, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_PropertySheet.m_Float.m_Array.Array.data[1].m_Overridden
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -774367247743995920, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_Enabled
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -364223573239433514, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -364223573239433514, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -364223573239433514, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: -1
|
||||
value: -2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -364223573239433514, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -364223573239433514, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -364223573239433514, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
value: 0.11
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -364223573239433514, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -364223573239433514, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
value: 3.09
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -364223573239433514, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -364223573239433514, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
value: -0.1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -364223573239433514, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -364223573239433514, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 0.9920709
|
||||
value: 0.96583617
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -364223573239433514, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -364223573239433514, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
value: 0.09989466
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -364223573239433514, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -364223573239433514, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: -0.12567958
|
||||
value: -0.23785771
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -364223573239433514, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -364223573239433514, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
value: 0.024601186
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -364223573239433514, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -364223573239433514, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
value: 11.81
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -364223573239433514, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -364223573239433514, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: -14.44
|
||||
value: -27.67
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -364223573239433514, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: -364223573239433514, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8980549144392899874, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: splat_30750-cropped
|
||||
- target: {fileID: -364223573239433514, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_ConstrainProportionsScale
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8980549144392899874, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
- target: {fileID: 8980549144392899874, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: watch
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8980549144392899874, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
@@ -528,11 +572,11 @@ PrefabInstance:
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: -4216948427090074523, guid: dfbafcee1589b994190c8b138fa536fd, type: 3}
|
||||
m_SourcePrefab: {fileID: -4216948427090074523, guid: 31ae15794738c134a94e378c021711b0, type: 3}
|
||||
--- !u!1660057539 &9223372036854775807
|
||||
SceneRoots:
|
||||
m_ObjectHideFlags: 0
|
||||
m_Roots:
|
||||
- {fileID: 688714160}
|
||||
- {fileID: 1911516433}
|
||||
- {fileID: 1990011521}
|
||||
- {fileID: 2104382819}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f0801febb2a50a54ba1429eca4d4c0a1
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}
|
||||
useAsTemplate: 0
|
||||
exposeTemplateAsShader: 0
|
||||
template:
|
||||
name:
|
||||
category:
|
||||
description:
|
||||
icon: {instanceID: 0}
|
||||
thumbnail: {instanceID: 0}
|
||||
@@ -0,0 +1,54 @@
|
||||
#define EPSILON 0.0004f
|
||||
|
||||
float CrossProduct(float2 A, float2 B)
|
||||
{
|
||||
return A.x * B.y - A.y * B.x;
|
||||
}
|
||||
|
||||
float SweepArea(float2 A, float2 B)
|
||||
{
|
||||
return abs(CrossProduct(A, B));
|
||||
}
|
||||
|
||||
float4x4 GetMajorAxes(float4x4 Axes, float4x4 AxesProjections)
|
||||
{
|
||||
float4x4 result = (float4x4)0;
|
||||
|
||||
float2 x_proj = AxesProjections[0].xy;
|
||||
float2 y_proj = AxesProjections[1].xy;
|
||||
float2 z_proj = AxesProjections[2].xy;
|
||||
|
||||
float3 x_axes = Axes[0].xyz;
|
||||
float3 y_axes = Axes[1].xyz;
|
||||
float3 z_axes = Axes[2].xyz;
|
||||
|
||||
float xy_area = SweepArea(x_proj, y_proj);
|
||||
float xz_area = SweepArea(x_proj, z_proj);
|
||||
float yz_area = SweepArea(y_proj, z_proj);
|
||||
|
||||
// Compute selection weights using step
|
||||
float xy_is_max = step(xz_area, xy_area) * step(yz_area, xy_area);
|
||||
float xz_is_max = step(yz_area, xz_area) * (1.0 - xy_is_max);
|
||||
float yz_is_max = 1.0 - xy_is_max - xz_is_max;
|
||||
|
||||
// Select axis0
|
||||
float3 axis0 =
|
||||
xy_is_max * x_axes +
|
||||
xz_is_max * x_axes +
|
||||
yz_is_max * y_axes;
|
||||
|
||||
// Select axis1
|
||||
float3 axis1 =
|
||||
xy_is_max * y_axes +
|
||||
xz_is_max * z_axes +
|
||||
yz_is_max * z_axes;
|
||||
|
||||
// Normalize and scale if length is below threshold
|
||||
float len0 = length(axis0);
|
||||
float len1 = length(axis1);
|
||||
|
||||
result[0].xyz = normalize(axis0) * max(len0, EPSILON);
|
||||
result[1].xyz = normalize(axis1) * max(len1, EPSILON);
|
||||
|
||||
return result;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,58 +0,0 @@
|
||||
#define EPSILON 0.0004f
|
||||
|
||||
/// Hidden
|
||||
float CrossProduct(float2 A, float2 B)
|
||||
{
|
||||
return A.x * B.y - A.y * B.x;
|
||||
}
|
||||
|
||||
/// Hidden
|
||||
float SweepArea(float2 A, float2 B)
|
||||
{
|
||||
return abs(CrossProduct(A, B));
|
||||
}
|
||||
|
||||
float4x4 GetMajorAxes(float4x4 Axes, float4x4 AxesProjections)
|
||||
{
|
||||
float4x4 result = (float4x4)0;
|
||||
|
||||
float2 x_proj = AxesProjections[0].xy;
|
||||
float2 y_proj = AxesProjections[1].xy;
|
||||
float2 z_proj = AxesProjections[2].xy;
|
||||
|
||||
float3 x_axes = Axes[0].xyz;
|
||||
float3 y_axes = Axes[1].xyz;
|
||||
float3 z_axes = Axes[2].xyz;
|
||||
|
||||
float xy_area = SweepArea(x_proj, y_proj);
|
||||
float xz_area = SweepArea(x_proj, z_proj);
|
||||
float yz_area = SweepArea(y_proj, z_proj);
|
||||
|
||||
if (xy_area > xz_area && xy_area > yz_area)
|
||||
{
|
||||
result[0].xyz = x_axes;
|
||||
result[1].xyz = y_axes;
|
||||
}
|
||||
else if (xz_area > yz_area)
|
||||
{
|
||||
result[0].xyz = x_axes;
|
||||
result[1].xyz = z_axes;
|
||||
}
|
||||
else
|
||||
{
|
||||
result[0].xyz = y_axes;
|
||||
result[1].xyz = z_axes;
|
||||
}
|
||||
|
||||
if (length(result[0].xyz) < 0.0004)
|
||||
{
|
||||
result[0].xyz = normalize(result[0].xyz) * EPSILON;
|
||||
}
|
||||
|
||||
if (length(result[1].xyz) < 0.0004)
|
||||
{
|
||||
result[1].xyz = normalize(result[1].xyz) * EPSILON;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
Binary file not shown.
@@ -6,7 +6,7 @@ EditorBuildSettings:
|
||||
serializedVersion: 2
|
||||
m_Scenes:
|
||||
- enabled: 1
|
||||
path: Assets/vfx-graph-gs/Main.unity
|
||||
path: Assets/vfx-graph-gs/Scenes/Main.unity
|
||||
guid: 09fad7c6f4d48844d9510f9903fca619
|
||||
m_configObjects:
|
||||
com.unity.input.settings.actions: {fileID: -944628639613478452, guid: 052faaac586de48259a63d0c4782560b, type: 3}
|
||||
|
||||
Reference in New Issue
Block a user