Compare commits

..

14 Commits

Author SHA1 Message Date
semantic-release-bot d6ee505e7c chore(release): 5.7.0 [skip ci]
# [5.7.0](https://github.com/mob-sakai/UIEffect/compare/5.6.4...5.7.0) (2025-04-11)

### Bug Fixes

* colors appeared darker when alpha was low ([21172f3](https://github.com/mob-sakai/UIEffect/commit/21172f37c21792906ac9e33827c771d388397653))
* shrink shader variants for color filters ([7f60a56](https://github.com/mob-sakai/UIEffect/commit/7f60a56a9af6b4ecee223b466f1b2499af0194f4))

### Features

* `UIEffectReplica.flip` has been deprecated ([6af34e2](https://github.com/mob-sakai/UIEffect/commit/6af34e2994378fd33025b41fe08898b552aa08ab))
* add `GradationIntensity` and `GradationColorFilter` properties ([a6781b9](https://github.com/mob-sakai/UIEffect/commit/a6781b92899c38f49eccfebf4173028955a5aced))
* calculate the normalized position on the shader side ([01bbeed](https://github.com/mob-sakai/UIEffect/commit/01bbeedde7cf2d757d6d295475f0ad9acd24dce3)), closes [#323](https://github.com/mob-sakai/UIEffect/issues/323) [#324](https://github.com/mob-sakai/UIEffect/issues/324)
* ShaderGraph support ([2dd2e26](https://github.com/mob-sakai/UIEffect/commit/2dd2e261666b611be3a1fd5ac112db34fd99038e)), closes [#326](https://github.com/mob-sakai/UIEffect/issues/326)
2025-04-11 07:35:55 +00:00
mob-sakai 3917df60af docs: update readme 2025-04-11 09:52:49 +09:00
mob-sakai 6845678f8f chore: update test workflows 2025-04-11 09:50:48 +09:00
mob-sakai 9fbaae7d07 demo: add urp project 2025-04-11 09:50:48 +09:00
mob-sakai 3d1abb979a chore: update demos 2025-04-11 09:50:48 +09:00
mob-sakai 6af34e2994 feat: UIEffectReplica.flip has been deprecated 2025-04-11 09:50:48 +09:00
mob-sakai a6781b9289 feat: add GradationIntensity and GradationColorFilter properties 2025-04-11 09:50:48 +09:00
mob-sakai 7f60a56a9a fix: shrink shader variants for color filters
This avoids the local shader variant limit (=60).
Since it uses a uniform branch, there is no impact on rendering performance.
2025-04-11 03:17:40 +09:00
mob-sakai 2dd2e26166 feat: ShaderGraph support
close #326
2025-04-11 03:17:40 +09:00
mob-sakai 21172f37c2 fix: colors appeared darker when alpha was low 2025-04-10 18:07:46 +09:00
mob-sakai 01bbeedde7 feat: calculate the normalized position on the shader side
With this change, UIEffect becomes up to 50% faster.
Additionally, gradients are rendered more beautifully.
close #323, close #324
2025-04-10 18:07:46 +09:00
semantic-release-bot c6fa44a0b6 chore(release): 5.6.4 [skip ci]
## [5.6.4](https://github.com/mob-sakai/UIEffect/compare/5.6.3...5.6.4) (2025-04-10)

### Bug Fixes

* avoid potential allocations ([26da24d](https://github.com/mob-sakai/UIEffect/commit/26da24dbc4022dcd71e7a58e5f02a6922ba2ddff))
* optional shaders do not support all shader combinations ([6014ab5](https://github.com/mob-sakai/UIEffect/commit/6014ab54d010872f8fee63fc961ac5ab2edd08e1))
2025-04-10 09:07:31 +00:00
mob-sakai 26da24dbc4 fix: avoid potential allocations 2025-04-10 09:26:09 +09:00
mob-sakai 6014ab54d0 fix: optional shaders do not support all shader combinations 2025-04-08 23:40:58 +09:00
209 changed files with 132314 additions and 9458 deletions
+126
View File
@@ -0,0 +1,126 @@
# Required secrets
# UNITY_LICENSE: The contents of Unity license file
# UNITY_EMAIL: Unity user email to login
# UNITY_PASSWORD: Unity user password to login
name: 🧪 Test URP
run-name: 🧪 Test URP (${{ github.event.pull_request.title || github.ref_name }})
env:
# MINIMUM_VERSION: The minimum version of Unity.
MINIMUM_VERSION: 6000.0
# EXCLUDE_FILTER: The excluded versions of Unity.
EXCLUDE_FILTER: "(2020.2.0|2021.1|2023.2|2023.3)"
PROJECT_PATH: UIEffectURP
on:
workflow_dispatch:
inputs:
usePeriodVersions:
description: "Use the period versions (.0f1, .10f1, 20f1, ...)."
required: false
default: "true"
push:
branches:
- develop
- "develop-*"
tags:
- "!*"
paths-ignore:
- "**.md"
pull_request_target:
types:
- opened
- reopened
- synchronize
paths-ignore:
- "**.md"
jobs:
setup:
name: ⚙️ Setup
runs-on: ubuntu-latest
outputs:
unityVersions: ${{ steps.setup.outputs.unityVersions }}
steps:
- name: ⚙️ Find target Unity versions
id: setup
run: |
echo "==== Target Unity Versions ===="
LATEST_VERSIONS=`npx unity-changeset list --versions --latest-patch --min ${MINIMUM_VERSION} --json --all`
if [ "${{ inputs.usePeriodVersions }}" = "true" ]; then
ADDITIONAL_VERSIONS=`npx unity-changeset list --versions --grep '0f' --min ${MINIMUM_VERSION} --json`
else
ADDITIONAL_VERSIONS=[]
fi
VERSIONS=`echo "[${LATEST_VERSIONS}, ${ADDITIONAL_VERSIONS}]" \
| jq -c '[ flatten | sort | unique | .[] | select( test("${{ env.EXCLUDE_FILTER }}") | not ) ]'`
echo "unityVersions=${VERSIONS}" | tee $GITHUB_OUTPUT
test:
name: 🧪 Run tests
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
needs: setup
strategy:
fail-fast: false
max-parallel: 6
matrix:
unityVersion: ${{ fromJson(needs.setup.outputs.unityVersions) }}
steps:
- name: 🚚 Checkout ($${{ github.ref }})
if: github.event_name == 'push'
uses: actions/checkout@v4
- name: 🚚 Checkout pull request (pull_request_target)
if: github.event_name == 'pull_request_target'
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: 🚚 Marge pull request (pull_request_target)
if: github.event_name == 'pull_request_target'
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git merge origin/${{ github.event.pull_request.base.ref }} --no-edit
- name: 📥 Cache library
uses: actions/cache@v4
with:
path: Library
key: Library-${{ matrix.unityVersion }}-${{ github.event.pull_request.head.sha || github.sha }}
restore-keys: |
Library-${{ matrix.unityVersion }}-
Library-
- name: 🛠️ Build Unity Project (Test)
uses: game-ci/unity-builder@v4
timeout-minutes: 45
with:
customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }}
targetPlatform: StandaloneLinux64
allowDirtyBuild: true
customParameters: -nographics
projectPath: ${{ env.PROJECT_PATH }}
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
# - name: 🧪 Run tests
# uses: game-ci/unity-test-runner@v4
# timeout-minutes: 45
# with:
# customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }}
# # unityVersion: ${{ matrix.unityVersion }}
# customParameters: -nographics
# checkName: ${{ matrix.unityVersion }} Test Results
# githubToken: ${{ github.token }}
# env:
# UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
# UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
# UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
+3
View File
@@ -10,6 +10,7 @@ env:
MINIMUM_VERSION: 2020.3
# EXCLUDE_FILTER: The excluded versions of Unity.
EXCLUDE_FILTER: "(2020.2.0|2021.1|2023.2|2023.3)"
PROJECT_PATH: .
on:
workflow_dispatch:
@@ -104,6 +105,7 @@ jobs:
targetPlatform: StandaloneLinux64
allowDirtyBuild: true
customParameters: -nographics
projectPath: ${{ env.PROJECT_PATH }}
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
@@ -118,6 +120,7 @@ jobs:
customParameters: -nographics
checkName: ${{ matrix.unityVersion }} Test Results
githubToken: ${{ github.token }}
projectPath: ${{ env.PROJECT_PATH }}
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
+25 -4
View File
@@ -1,14 +1,35 @@
using Coffee.UIEffects;
using UnityEngine;
[ExecuteAlways]
public class GradationTest : MonoBehaviour
{
[SerializeField] private UIEffect m_Target;
[Range(-1, 1)]
[SerializeField]
protected float m_GradationOffset = 0;
[SerializeField] private Gradient m_Gradient;
[Range(0.01f, 10)]
[SerializeField]
protected float m_GradationScale = 1;
public void SetGradation()
[SerializeField]
[Range(0, 360)]
private float m_GradationRotation = 0;
private UIEffect[] _uiEffects;
private void Awake()
{
m_Target.SetGradientKeys(m_Gradient.colorKeys, m_Gradient.alphaKeys, m_Gradient.mode);
_uiEffects = GetComponentsInChildren<UIEffect>(true);
}
private void OnValidate()
{
foreach (var uiEffect in _uiEffects)
{
uiEffect.gradationOffset = m_GradationOffset;
uiEffect.gradationScale = m_GradationScale;
uiEffect.gradationRotation = m_GradationRotation;
}
}
}
File diff suppressed because it is too large Load Diff
+932
View File
@@ -0,0 +1,932 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 12
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 2
m_BakeBackend: 1
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 512
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 256
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 1
m_PVRDenoiserTypeDirect: 1
m_PVRDenoiserTypeIndirect: 1
m_PVRDenoiserTypeAO: 1
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 1
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_LightingSettings: {fileID: 0}
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 3
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
buildHeightMesh: 0
maxJobWorkers: 0
preserveTilesOutsideBounds: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &1256184
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1256185}
m_Layer: 5
m_Name: Root
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1256185
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1256184}
m_LocalRotation: {x: 0.1981076, y: 0.13871644, z: 0.13871644, w: 0.9603483}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1022391538}
m_Father: {fileID: 320007022}
m_LocalEulerAnglesHint: {x: 20, y: 20, z: 20}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 200, y: 200}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &320007018
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 320007022}
- component: {fileID: 320007021}
- component: {fileID: 320007020}
- component: {fileID: 320007019}
m_Layer: 5
m_Name: Canvas
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &320007019
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 320007018}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
--- !u!114 &320007020
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 320007018}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 1
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
m_PresetInfoIsWorld: 0
--- !u!223 &320007021
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 320007018}
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 0
m_Camera: {fileID: 1076137588}
m_PlaneDistance: 100
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_VertexColorAlwaysGammaSpace: 0
m_AdditionalShaderChannelsFlag: 1
m_UpdateRectTransformForStandalone: 0
m_SortingLayerID: 0
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!224 &320007022
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 320007018}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0, y: 0, z: 0}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1256185}
- {fileID: 2068343013}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}
--- !u!1 &1022391537
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1022391538}
- component: {fileID: 1022391541}
- component: {fileID: 1022391540}
- component: {fileID: 1022391539}
m_Layer: 5
m_Name: UIEffect
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1022391538
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1022391537}
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: 1256185}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 50, y: 50}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1022391539
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1022391537}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 938fce054c42f40a3969e27a88d9bdd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_ToneFilter: 0
m_ToneIntensity: 1
m_ToneParams: {x: 0, y: 0, z: 0, w: 0}
m_ColorFilter: 0
m_ColorIntensity: 1
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_ColorGlow: 0
m_SamplingFilter: 0
m_SamplingIntensity: 0.5
m_SamplingWidth: 1
m_SamplingScale: 1
m_TransitionFilter: 0
m_TransitionRate: 0.5
m_TransitionReverse: 0
m_TransitionTex: {fileID: 0}
m_TransitionTexScale: {x: 1, y: 1}
m_TransitionTexOffset: {x: 0, y: 0}
m_TransitionTexSpeed: {x: 0, y: 0}
m_TransitionRotation: 0
m_TransitionKeepAspectRatio: 1
m_TransitionWidth: 0.2
m_TransitionSoftness: 0.2
m_TransitionRange:
m_Min: 0
m_Max: 1
m_TransitionColorFilter: 6
m_TransitionColor: {r: 0, g: 0.5, b: 1, a: 1}
m_TransitionColorGlow: 0
m_TransitionPatternReverse: 0
m_TransitionAutoPlaySpeed: 0
m_TargetMode: 0
m_TargetColor: {r: 1, g: 1, b: 1, a: 1}
m_TargetRange: 0.1
m_TargetSoftness: 0.5
m_BlendType: 1
m_SrcBlendMode: 1
m_DstBlendMode: 10
m_ShadowMode: 0
m_ShadowDistance: {x: 1, y: -1}
m_ShadowIteration: 1
m_ShadowFade: 0.9
m_ShadowMirrorScale: 0.5
m_ShadowBlurIntensity: 1
m_ShadowColorFilter: 4
m_ShadowColor: {r: 1, g: 1, b: 1, a: 1}
m_ShadowColorGlow: 0
m_GradationMode: 0
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
key1: {r: 1, g: 1, b: 1, a: 1}
key2: {r: 0, g: 0, b: 0, a: 0}
key3: {r: 0, g: 0, b: 0, a: 0}
key4: {r: 0, g: 0, b: 0, a: 0}
key5: {r: 0, g: 0, b: 0, a: 0}
key6: {r: 0, g: 0, b: 0, a: 0}
key7: {r: 0, g: 0, b: 0, a: 0}
ctime0: 0
ctime1: 65535
ctime2: 0
ctime3: 0
ctime4: 0
ctime5: 0
ctime6: 0
ctime7: 0
atime0: 0
atime1: 65535
atime2: 0
atime3: 0
atime4: 0
atime5: 0
atime6: 0
atime7: 0
m_Mode: 0
m_ColorSpace: -1
m_NumColorKeys: 2
m_NumAlphaKeys: 2
m_GradationOffset: 0
m_GradationScale: 1
m_GradationRotation: 0
m_AllowToModifyMeshShape: 1
m_EdgeMode: 0
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeColorGlow: 0
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
m_DetailFilter: 4
m_DetailIntensity: 1
m_DetailThreshold:
m_Min: 0
m_Max: 1
m_DetailTex: {fileID: 2800000, guid: e3e220b3071ad46a58b9051928389c6b, type: 3}
m_DetailTexScale: {x: 1, y: 1}
m_DetailTexOffset: {x: 0, y: 0}
m_DetailTexSpeed: {x: 0, y: 0}
m_CustomRoot: {fileID: 1256185}
m_Flip: 0
--- !u!114 &1022391540
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1022391537}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &1022391541
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1022391537}
m_CullTransparentMesh: 1
--- !u!1 &1076137586
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1076137589}
- component: {fileID: 1076137588}
- component: {fileID: 1076137587}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1076137587
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1076137586}
m_Enabled: 1
--- !u!20 &1076137588
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1076137586}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
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_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.01
far clip plane: 3000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &1076137589
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1076137586}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 1000, y: 1000, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1303535690
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1303535693}
- component: {fileID: 1303535692}
- component: {fileID: 1303535691}
m_Layer: 0
m_Name: EventSystem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1303535691
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1303535690}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
m_Name:
m_EditorClassIdentifier:
m_SendPointerHoverToParent: 1
m_HorizontalAxis: Horizontal
m_VerticalAxis: Vertical
m_SubmitButton: Submit
m_CancelButton: Cancel
m_InputActionsPerSecond: 10
m_RepeatDelay: 0.5
m_ForceModuleActive: 0
--- !u!114 &1303535692
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1303535690}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_FirstSelected: {fileID: 0}
m_sendNavigationEvents: 1
m_DragThreshold: 10
--- !u!4 &1303535693
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1303535690}
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_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1740148341
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1740148343}
- component: {fileID: 1740148342}
- component: {fileID: 1740148344}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &1740148342
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1740148341}
m_Enabled: 1
serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
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: 4
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_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &1740148343
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1740148341}
serializedVersion: 2
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
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_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!114 &1740148344
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1740148341}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 474bcb49853aa07438625e644c072ee6, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Version: 1
m_UsePipelineSettings: 1
m_AdditionalLightsShadowResolutionTier: 2
m_LightLayerMask: 1
m_CustomShadowLayers: 0
m_ShadowLayerMask: 1
m_LightCookieSize: {x: 1, y: 1}
m_LightCookieOffset: {x: 0, y: 0}
--- !u!1 &2068343012
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2068343013}
- component: {fileID: 2068343016}
- component: {fileID: 2068343015}
- component: {fileID: 2068343014}
m_Layer: 5
m_Name: UIEffect
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2068343013
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2068343012}
m_LocalRotation: {x: 0.1981076, y: 0.13871644, z: 0.13871644, w: 0.9603483}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 320007022}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2068343014
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2068343012}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 938fce054c42f40a3969e27a88d9bdd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_ToneFilter: 0
m_ToneIntensity: 1
m_ToneParams: {x: 0, y: 0, z: 0, w: 0}
m_ColorFilter: 0
m_ColorIntensity: 1
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_ColorGlow: 0
m_SamplingFilter: 0
m_SamplingIntensity: 0.5
m_SamplingWidth: 1
m_SamplingScale: 1
m_TransitionFilter: 0
m_TransitionRate: 0.5
m_TransitionReverse: 0
m_TransitionTex: {fileID: 0}
m_TransitionTexScale: {x: 1, y: 1}
m_TransitionTexOffset: {x: 0, y: 0}
m_TransitionTexSpeed: {x: 0, y: 0}
m_TransitionRotation: 0
m_TransitionKeepAspectRatio: 1
m_TransitionWidth: 0.2
m_TransitionSoftness: 0.2
m_TransitionRange:
m_Min: 0
m_Max: 1
m_TransitionColorFilter: 6
m_TransitionColor: {r: 0, g: 0.5, b: 1, a: 1}
m_TransitionColorGlow: 0
m_TransitionPatternReverse: 0
m_TransitionAutoPlaySpeed: 0
m_TargetMode: 0
m_TargetColor: {r: 1, g: 1, b: 1, a: 1}
m_TargetRange: 0.1
m_TargetSoftness: 0.5
m_BlendType: 1
m_SrcBlendMode: 1
m_DstBlendMode: 10
m_ShadowMode: 0
m_ShadowDistance: {x: 1, y: -1}
m_ShadowIteration: 1
m_ShadowFade: 0.9
m_ShadowMirrorScale: 0.5
m_ShadowBlurIntensity: 1
m_ShadowColorFilter: 4
m_ShadowColor: {r: 1, g: 1, b: 1, a: 1}
m_ShadowColorGlow: 0
m_GradationMode: 0
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
key1: {r: 1, g: 1, b: 1, a: 1}
key2: {r: 0, g: 0, b: 0, a: 0}
key3: {r: 0, g: 0, b: 0, a: 0}
key4: {r: 0, g: 0, b: 0, a: 0}
key5: {r: 0, g: 0, b: 0, a: 0}
key6: {r: 0, g: 0, b: 0, a: 0}
key7: {r: 0, g: 0, b: 0, a: 0}
ctime0: 0
ctime1: 65535
ctime2: 0
ctime3: 0
ctime4: 0
ctime5: 0
ctime6: 0
ctime7: 0
atime0: 0
atime1: 65535
atime2: 0
atime3: 0
atime4: 0
atime5: 0
atime6: 0
atime7: 0
m_Mode: 0
m_ColorSpace: -1
m_NumColorKeys: 2
m_NumAlphaKeys: 2
m_GradationOffset: 0
m_GradationScale: 1
m_GradationRotation: 0
m_AllowToModifyMeshShape: 1
m_EdgeMode: 0
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeColorGlow: 0
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
m_DetailFilter: 4
m_DetailIntensity: 1
m_DetailThreshold:
m_Min: 0
m_Max: 1
m_DetailTex: {fileID: 2800000, guid: e3e220b3071ad46a58b9051928389c6b, type: 3}
m_DetailTexScale: {x: 1, y: 1}
m_DetailTexOffset: {x: 0, y: 0}
m_DetailTexSpeed: {x: 0, y: 0}
m_CustomRoot: {fileID: 0}
m_Flip: 0
--- !u!114 &2068343015
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2068343012}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &2068343016
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2068343012}
m_CullTransparentMesh: 1
--- !u!1660057539 &9223372036854775807
SceneRoots:
m_ObjectHideFlags: 0
m_Roots:
- {fileID: 320007022}
- {fileID: 1740148343}
- {fileID: 1303535693}
- {fileID: 1076137589}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 36defbd49737346888941c302d8fd96e
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

+123
View File
@@ -0,0 +1,123 @@
fileFormatVersion: 2
guid: e3e220b3071ad46a58b9051928389c6b
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
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
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
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
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
cookieLightType: 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
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
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: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
+211 -63
View File
@@ -38,7 +38,6 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.37311924, g: 0.38073963, b: 0.3587269, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
@@ -253,6 +252,7 @@ MonoBehaviour:
m_UseTargetTransform: 1
m_SamplingScale: 1
m_AllowToModifyMeshShape: 1
m_CustomRoot: {fileID: 0}
--- !u!114 &571623417
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -395,6 +395,7 @@ Canvas:
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_VertexColorAlwaysGammaSpace: 0
m_AdditionalShaderChannelsFlag: 27
m_SortingLayerID: 0
m_SortingOrder: 0
@@ -476,7 +477,7 @@ GameObject:
- component: {fileID: 1120943173}
- component: {fileID: 1120943172}
m_Layer: 5
m_Name: UIEffect (1)
m_Name: UIEffect_KeyFeature
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
@@ -491,16 +492,16 @@ RectTransform:
m_GameObject: {fileID: 1120943170}
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_LocalScale: {x: 2, y: 2, z: 2}
m_ConstrainProportionsScale: 1
m_Children: []
m_Father: {fileID: 986199155}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 125, y: -57}
m_SizeDelta: {x: 627.607, y: 970.6}
m_AnchoredPosition: {x: 0, y: -12.107}
m_SizeDelta: {x: 404, y: 512}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1120943172
MonoBehaviour:
@@ -515,93 +516,111 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_ToneFilter: 1
m_ToneIntensity: 0.875
m_ToneIntensity: 0.5
m_ToneParams: {x: 0, y: 0, z: 0, w: 0}
m_ColorFilter: 6
m_ColorIntensity: 0.7
m_Color: {r: 0.745283, g: 0, b: 0.11693734, a: 1}
m_ColorIntensity: 0.5
m_Color: {r: 0.5377358, g: 0, b: 0.09190052, a: 1}
m_ColorGlow: 0
m_SamplingFilter: 5
m_SamplingIntensity: 0.197
m_SamplingFilter: 1
m_SamplingIntensity: 0
m_SamplingWidth: 1
m_SamplingScale: 1
m_TransitionFilter: 3
m_TransitionRate: 0.411
m_TransitionFilter: 8
m_TransitionRate: 0
m_TransitionReverse: 0
m_TransitionTex: {fileID: 2800000, guid: 5a9e7b253d8344331a9ef15185eaa629, type: 3}
m_TransitionTex: {fileID: 2800000, guid: 51cf4ae69d327428fbac4ee73e8587fe, type: 3}
m_TransitionTexScale: {x: 1, y: 1}
m_TransitionTexOffset: {x: 0, y: 0}
m_TransitionRotation: 120
m_TransitionTexSpeed: {x: 0, y: 0}
m_TransitionRotation: 45
m_TransitionKeepAspectRatio: 1
m_TransitionWidth: 0.071
m_TransitionSoftness: 0.401
m_TransitionWidth: 0.5
m_TransitionSoftness: 0.475
m_TransitionRange:
m_Min: 0
m_Max: 1
m_TransitionColorFilter: 6
m_TransitionColor: {r: 0, g: 0.5019608, b: 1.0039216, a: 1}
m_Min: 0.5
m_Max: 0.85
m_TransitionColorFilter: 1
m_TransitionColor: {r: 0, g: 0, b: 0, a: 0.5019608}
m_TransitionColorGlow: 0
m_TransitionPatternReverse: 0
m_TransitionAutoPlaySpeed: 0
m_TargetMode: 0
m_TargetColor: {r: 0.22352943, g: 0.87843144, b: 0.9450981, a: 1}
m_TargetRange: 0.118
m_TargetColor: {r: 0.15686275, g: 0.72156864, b: 0.8509804, a: 1}
m_TargetRange: 0.033
m_TargetSoftness: 0.5
m_BlendType: 1
m_SrcBlendMode: 1
m_DstBlendMode: 10
m_ShadowMode: 0
m_ShadowDistance: {x: 5, y: -5}
m_ShadowIteration: 4
m_ShadowFade: 0.9
m_ShadowMode: 4
m_ShadowDistance: {x: 3, y: -3}
m_ShadowIteration: 2
m_ShadowFade: 0.1
m_ShadowMirrorScale: 0.5
m_ShadowBlurIntensity: 1
m_ShadowColorFilter: 4
m_ShadowColor: {r: 1, g: 1, b: 1, a: 1}
m_ShadowColorGlow: 0
m_GradationMode: 0
m_ShadowColor: {r: 0, g: 1, b: 1, a: 1}
m_ShadowColorGlow: 1
m_GradationMode: 10
m_GradationIntensity: 0.75
m_GradationColorFilter: 1
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 0, b: 0, a: 1}
key1: {r: 1, g: 0.8571428, b: 0, a: 1}
key2: {r: 0.2857144, g: 1, b: 0, a: 0}
key3: {r: 0, g: 1, b: 0.57142854, a: 0}
key4: {r: 0, g: 0.5714288, b: 1, a: 0}
key5: {r: 0.28571415, g: 0, b: 1, a: 0}
key0: {r: 1, g: 1, b: 1, a: 1}
key1: {r: 0.2857144, g: 1, b: 0, a: 1}
key2: {r: 1, g: 1, b: 1, a: 1}
key3: {r: 0, g: 0.5714288, b: 1, a: 0}
key4: {r: 1, g: 1, b: 1, a: 0}
key5: {r: 1, g: 0, b: 0.8571429, a: 0}
key6: {r: 1, g: 0, b: 0.8571429, a: 0}
key7: {r: 1, g: 0, b: 0, a: 0}
ctime0: 0
ctime1: 9830
ctime2: 18724
ctime3: 28720
ctime4: 38165
ctime5: 46838
ctime0: 10879
ctime1: 21823
ctime2: 32768
ctime3: 43646
ctime4: 54591
ctime5: 65535
ctime6: 56173
ctime7: 65535
atime0: 0
atime1: 65535
atime2: 0
atime2: 65535
atime3: 0
atime4: 0
atime5: 0
atime6: 0
atime7: 0
m_Mode: 0
m_NumColorKeys: 8
m_Mode: 1
m_NumColorKeys: 6
m_NumAlphaKeys: 2
m_GradationOffset: -0.349
m_GradationScale: 0.62374645
m_GradationRotation: 0
m_GradationOffset: 0
m_GradationScale: 0.15
m_GradationRotation: 135
m_AllowToModifyMeshShape: 1
m_EdgeMode: 0
m_EdgeWidth: 0.5
m_EdgeMode: 2
m_EdgeWidth: 0.05
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeColor: {r: 1, g: 0.2688679, b: 0.76984084, a: 1}
m_EdgeColorGlow: 0
m_EdgeShinyRate: 0.75
m_EdgeShinyWidth: 0.5
m_EdgeShinySpeed: 1
m_EdgeShinyAutoPlaySpeed: 0
m_PatternArea: 1
m_DetailFilter: 0
m_DetailIntensity: 1
m_DetailThreshold:
m_Min: 0
m_Max: 1
m_DetailTex: {fileID: 0}
m_DetailTexScale: {x: 1, y: 1}
m_DetailTexOffset: {x: 0, y: 0}
m_DetailTexSpeed: {x: 0, y: 0}
m_CustomRoot: {fileID: 0}
m_Flip: 0
--- !u!114 &1120943173
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -654,7 +673,7 @@ GameObject:
- component: {fileID: 1242517206}
- component: {fileID: 1242517205}
m_Layer: 5
m_Name: UIEffect
m_Name: UIEffect_Inspector
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
@@ -671,7 +690,8 @@ RectTransform:
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Children:
- {fileID: 2125393230}
m_Father: {fileID: 986199155}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@@ -718,6 +738,31 @@ MonoBehaviour:
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
m_SeparateReverseCurve: 0
m_ReverseCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
m_Delay: 0.5
m_Duration: 1
m_Interval: 0.5
@@ -728,6 +773,9 @@ MonoBehaviour:
m_OnComplete:
m_PersistentCalls:
m_Calls: []
m_OnChangedRate:
m_PersistentCalls:
m_Calls: []
--- !u!114 &1242517206
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -748,7 +796,7 @@ MonoBehaviour:
m_Color: {r: 1, g: 0.08701122, b: 0, a: 1}
m_ColorGlow: 0
m_SamplingFilter: 1
m_SamplingIntensity: 1
m_SamplingIntensity: 0.7
m_SamplingWidth: 1
m_SamplingScale: 1
m_TransitionFilter: 3
@@ -757,6 +805,7 @@ MonoBehaviour:
m_TransitionTex: {fileID: 2800000, guid: 5a9e7b253d8344331a9ef15185eaa629, type: 3}
m_TransitionTexScale: {x: 1, y: 1}
m_TransitionTexOffset: {x: 0, y: 0}
m_TransitionTexSpeed: {x: 0, y: 0}
m_TransitionRotation: 120
m_TransitionKeepAspectRatio: 1
m_TransitionWidth: 0.074
@@ -773,7 +822,7 @@ MonoBehaviour:
m_TargetColor: {r: 0.22352943, g: 0.87843144, b: 0.9450981, a: 1}
m_TargetRange: 0.118
m_TargetSoftness: 0.5
m_BlendType: 1
m_BlendType: 0
m_SrcBlendMode: 1
m_DstBlendMode: 10
m_ShadowMode: 4
@@ -783,11 +832,15 @@ MonoBehaviour:
m_ShadowMirrorScale: 0.5
m_ShadowBlurIntensity: 1
m_ShadowColorFilter: 4
m_ShadowColor: {r: 1, g: 1, b: 1, a: 1}
m_ShadowColor: {r: 0, g: 0, b: 0, a: 1}
m_ShadowColorGlow: 0
m_GradationMode: 2
m_GradationMode: 10
m_GradationIntensity: 1
m_GradationColorFilter: 1
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 0, b: 0, a: 1}
@@ -817,17 +870,30 @@ MonoBehaviour:
m_Mode: 0
m_NumColorKeys: 8
m_NumAlphaKeys: 2
m_GradationOffset: -0.349
m_GradationScale: 0.62374645
m_GradationRotation: 0
m_GradationOffset: 0
m_GradationScale: 1
m_GradationRotation: 60
m_AllowToModifyMeshShape: 1
m_EdgeMode: 2
m_EdgeWidth: 0.5
m_EdgeColorFilter: 6
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeColorGlow: 0
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinySpeed: 1
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
m_DetailFilter: 1
m_DetailIntensity: 1
m_DetailThreshold:
m_Min: 0.25
m_Max: 0.5
m_DetailTex: {fileID: 2800000, guid: dee1cb6c2ee294c6087ea9d89d368417, type: 3}
m_DetailTexScale: {x: 1, y: 1}
m_DetailTexOffset: {x: 0, y: 0}
m_DetailTexSpeed: {x: 0, y: 0}
m_CustomRoot: {fileID: 2125393230}
m_Flip: 1
--- !u!114 &1242517207
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -935,6 +1001,7 @@ MonoBehaviour:
m_TransitionTex: {fileID: 0}
m_TransitionTexScale: {x: 1, y: 1}
m_TransitionTexOffset: {x: 0, y: 0}
m_TransitionTexSpeed: {x: 0, y: 0}
m_TransitionRotation: 0
m_TransitionKeepAspectRatio: 1
m_TransitionWidth: 0.2
@@ -964,8 +1031,12 @@ MonoBehaviour:
m_ShadowColor: {r: 1, g: 1, b: 1, a: 1}
m_ShadowColorGlow: 0
m_GradationMode: 0
m_GradationIntensity: 1
m_GradationColorFilter: 1
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
@@ -1003,9 +1074,22 @@ MonoBehaviour:
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeColorGlow: 0
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinySpeed: 1
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
m_DetailFilter: 0
m_DetailIntensity: 1
m_DetailThreshold:
m_Min: 0
m_Max: 1
m_DetailTex: {fileID: 0}
m_DetailTexScale: {x: 1, y: 1}
m_DetailTexOffset: {x: 0, y: 0}
m_DetailTexSpeed: {x: 0, y: 0}
m_CustomRoot: {fileID: 0}
m_Flip: 0
--- !u!114 &1567169364
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -1082,6 +1166,31 @@ MonoBehaviour:
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
m_SeparateReverseCurve: 0
m_ReverseCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 1
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
m_Delay: 0.5
m_Duration: 1
m_Interval: 0.5
@@ -1092,3 +1201,42 @@ MonoBehaviour:
m_OnComplete:
m_PersistentCalls:
m_Calls: []
m_OnChangedRate:
m_PersistentCalls:
m_Calls: []
--- !u!1 &2125393229
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2125393230}
m_Layer: 5
m_Name: Root
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2125393230
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2125393229}
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: 1242517204}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
File diff suppressed because it is too large Load Diff
@@ -9,7 +9,7 @@ using Debug = UnityEngine.Debug;
internal static class TextMeshProSupport
{
private const string k_Version = "userData: v5.6.0";
private const string k_Version = "userData: v5.7.0";
private const string k_VersionUnity6 = k_Version + " (Unity 6)";
private static readonly Dictionary<string, string> s_FileGuids = new Dictionary<string, string>()
+53 -128
View File
@@ -103,7 +103,7 @@ NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 3
serializedVersion: 2
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
@@ -116,7 +116,7 @@ NavMeshSettings:
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
buildHeightMesh: 0
accuratePlacement: 0
maxJobWorkers: 0
preserveTilesOutsideBounds: 0
debug:
@@ -154,6 +154,7 @@ RectTransform:
m_ConstrainProportionsScale: 1
m_Children: []
m_Father: {fileID: 1238718230}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
@@ -272,13 +273,13 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 216727156}
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 &853562893
GameObject:
@@ -358,7 +359,6 @@ Canvas:
m_SortingBucketNormalizedSize: 0
m_VertexColorAlwaysGammaSpace: 0
m_AdditionalShaderChannelsFlag: 27
m_UpdateRectTransformForStandalone: 0
m_SortingLayerID: 0
m_SortingOrder: 0
m_TargetDisplay: 0
@@ -376,6 +376,7 @@ RectTransform:
m_Children:
- {fileID: 974292077}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
@@ -415,6 +416,7 @@ RectTransform:
m_ConstrainProportionsScale: 1
m_Children: []
m_Father: {fileID: 1439618203}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
@@ -480,6 +482,8 @@ MonoBehaviour:
m_ShadowColor: {r: 1, g: 1, b: 1, a: 1}
m_ShadowColorGlow: 0
m_GradationMode: 0
m_GradationIntensity: 1
m_GradationColorFilter: 1
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
@@ -511,7 +515,6 @@ MonoBehaviour:
atime6: 0
atime7: 0
m_Mode: 0
m_ColorSpace: -1
m_NumColorKeys: 2
m_NumAlphaKeys: 2
m_GradationOffset: 0
@@ -522,11 +525,22 @@ MonoBehaviour:
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeColorGlow: 0
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
m_DetailFilter: 0
m_DetailIntensity: 1
m_DetailThreshold:
m_Min: 0
m_Max: 1
m_DetailTex: {fileID: 0}
m_DetailTexScale: {x: 1, y: 1}
m_DetailTexOffset: {x: 0, y: 0}
m_DetailTexSpeed: {x: 0, y: 0}
m_CustomRoot: {fileID: 0}
m_Flip: 0
--- !u!114 &899451495
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -672,6 +686,7 @@ RectTransform:
- {fileID: 1439618203}
- {fileID: 1238718230}
m_Father: {fileID: 853562897}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
@@ -750,6 +765,7 @@ RectTransform:
m_ConstrainProportionsScale: 1
m_Children: []
m_Father: {fileID: 1238718230}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
@@ -899,6 +915,7 @@ RectTransform:
- {fileID: 171138033}
- {fileID: 1039816999}
m_Father: {fileID: 974292077}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
@@ -945,17 +962,9 @@ 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
@@ -989,13 +998,13 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1419796999}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 1, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1439618202
GameObject:
@@ -1028,6 +1037,7 @@ RectTransform:
- {fileID: 1624967587}
- {fileID: 899451493}
m_Father: {fileID: 974292077}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
@@ -1045,7 +1055,7 @@ GameObject:
- component: {fileID: 1624967587}
- component: {fileID: 1624967590}
- component: {fileID: 1624967589}
- component: {fileID: 1624967588}
- component: {fileID: 1624967592}
- component: {fileID: 1624967591}
m_Layer: 5
m_Name: Unity-Chan
@@ -1067,118 +1077,13 @@ RectTransform:
m_ConstrainProportionsScale: 1
m_Children: []
m_Father: {fileID: 1439618203}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -72, y: 0}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1624967588
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1624967586}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 938fce054c42f40a3969e27a88d9bdd8, type: 3}
m_Name:
m_EditorClassIdentifier:
m_ToneFilter: 0
m_ToneIntensity: 1
m_ToneParams: {x: 0, y: 0, z: 0, w: 0}
m_ColorFilter: 0
m_ColorIntensity: 1
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_ColorGlow: 0
m_SamplingFilter: 0
m_SamplingIntensity: 0.5
m_SamplingWidth: 1
m_SamplingScale: 1
m_TransitionFilter: 3
m_TransitionRate: 0.5
m_TransitionReverse: 0
m_TransitionTex: {fileID: 2800000, guid: b438fd66429e341d690c1ad9fba13fae, type: 3}
m_TransitionTexScale: {x: 1, y: 1}
m_TransitionTexOffset: {x: 0, y: 0}
m_TransitionTexSpeed: {x: 0, y: 0}
m_TransitionRotation: 0
m_TransitionKeepAspectRatio: 1
m_TransitionWidth: 0.2
m_TransitionSoftness: 0.5
m_TransitionRange:
m_Min: 0
m_Max: 1
m_TransitionColorFilter: 6
m_TransitionColor: {r: 0, g: 0.5, b: 1, a: 1}
m_TransitionColorGlow: 0
m_TransitionPatternReverse: 0
m_TransitionAutoPlaySpeed: 0
m_TargetMode: 0
m_TargetColor: {r: 1, g: 1, b: 1, a: 1}
m_TargetRange: 1
m_TargetSoftness: 0.5
m_BlendType: 1
m_SrcBlendMode: 1
m_DstBlendMode: 10
m_ShadowMode: 0
m_ShadowDistance: {x: 1, y: -1}
m_ShadowIteration: 1
m_ShadowFade: 0.9
m_ShadowMirrorScale: 0.5
m_ShadowBlurIntensity: 1
m_ShadowColorFilter: 4
m_ShadowColor: {r: 1, g: 1, b: 1, a: 1}
m_ShadowColorGlow: 0
m_GradationMode: 0
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
m_GradationGradient:
serializedVersion: 2
key0: {r: 1, g: 1, b: 1, a: 1}
key1: {r: 1, g: 1, b: 1, a: 1}
key2: {r: 0, g: 0, b: 0, a: 0}
key3: {r: 0, g: 0, b: 0, a: 0}
key4: {r: 0, g: 0, b: 0, a: 0}
key5: {r: 0, g: 0, b: 0, a: 0}
key6: {r: 0, g: 0, b: 0, a: 0}
key7: {r: 0, g: 0, b: 0, a: 0}
ctime0: 0
ctime1: 65535
ctime2: 0
ctime3: 0
ctime4: 0
ctime5: 0
ctime6: 0
ctime7: 0
atime0: 0
atime1: 65535
atime2: 0
atime3: 0
atime4: 0
atime5: 0
atime6: 0
atime7: 0
m_Mode: 0
m_ColorSpace: -1
m_NumColorKeys: 2
m_NumAlphaKeys: 2
m_GradationOffset: 0
m_GradationScale: 1
m_GradationRotation: 0
m_AllowToModifyMeshShape: 1
m_EdgeMode: 0
m_EdgeWidth: 0.5
m_EdgeColorFilter: 4
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
m_EdgeShinyRate: 0.5
m_EdgeShinyWidth: 0.5
m_EdgeShinyAutoPlaySpeed: 1
m_PatternArea: 1
m_CustomRoot: {fileID: 0}
--- !u!114 &1624967589
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -1231,10 +1136,30 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_Horizontal: 1
m_Vertical: 1
--- !u!1660057539 &9223372036854775807
SceneRoots:
--- !u!114 &1624967592
MonoBehaviour:
m_ObjectHideFlags: 0
m_Roots:
- {fileID: 1419797002}
- {fileID: 216727159}
- {fileID: 853562897}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1624967586}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f19b7e2285c104f6ca47d583f3e5444f, type: 3}
m_Name:
m_EditorClassIdentifier:
m_EffectFactor: 0.5
m_Width: 0.125
m_Rotation: 135
m_Softness: 1
m_Brightness: 0.5
m_Gloss: 1
m_EffectArea: 0
m_Player:
play: 0
initialPlayDelay: 0
duration: 1
loop: 0
loopDelay: 0
updateMode: 0
m_TransitionTexture: {fileID: 2800000, guid: 297e4244884ca46788412fdf92bbdb8b, type: 3}
+1
View File
@@ -0,0 +1 @@
./Packages/src/CHANGELOG.md
+24
View File
@@ -1,3 +1,27 @@
# [5.7.0](https://github.com/mob-sakai/UIEffect/compare/5.6.4...5.7.0) (2025-04-11)
### Bug Fixes
* colors appeared darker when alpha was low ([21172f3](https://github.com/mob-sakai/UIEffect/commit/21172f37c21792906ac9e33827c771d388397653))
* shrink shader variants for color filters ([7f60a56](https://github.com/mob-sakai/UIEffect/commit/7f60a56a9af6b4ecee223b466f1b2499af0194f4))
### Features
* `UIEffectReplica.flip` has been deprecated ([6af34e2](https://github.com/mob-sakai/UIEffect/commit/6af34e2994378fd33025b41fe08898b552aa08ab))
* add `GradationIntensity` and `GradationColorFilter` properties ([a6781b9](https://github.com/mob-sakai/UIEffect/commit/a6781b92899c38f49eccfebf4173028955a5aced))
* calculate the normalized position on the shader side ([01bbeed](https://github.com/mob-sakai/UIEffect/commit/01bbeedde7cf2d757d6d295475f0ad9acd24dce3)), closes [#323](https://github.com/mob-sakai/UIEffect/issues/323) [#324](https://github.com/mob-sakai/UIEffect/issues/324)
* ShaderGraph support ([2dd2e26](https://github.com/mob-sakai/UIEffect/commit/2dd2e261666b611be3a1fd5ac112db34fd99038e)), closes [#326](https://github.com/mob-sakai/UIEffect/issues/326)
## [5.6.4](https://github.com/mob-sakai/UIEffect/compare/5.6.3...5.6.4) (2025-04-10)
### Bug Fixes
* avoid potential allocations ([26da24d](https://github.com/mob-sakai/UIEffect/commit/26da24dbc4022dcd71e7a58e5f02a6922ba2ddff))
* optional shaders do not support all shader combinations ([6014ab5](https://github.com/mob-sakai/UIEffect/commit/6014ab54d010872f8fee63fc961ac5ab2edd08e1))
## [5.6.3](https://github.com/mob-sakai/UIEffect/compare/5.6.2...5.6.3) (2025-04-06)
+8 -2
View File
@@ -83,6 +83,8 @@ namespace Coffee.UIEffects.Editors
private SerializedProperty _shadowColorGlow;
private SerializedProperty _gradationMode;
private SerializedProperty _gradationIntensity;
private SerializedProperty _gradationColorFilter;
private SerializedProperty _gradationColor1;
private SerializedProperty _gradationColor2;
private SerializedProperty _gradationColor3;
@@ -187,6 +189,8 @@ namespace Coffee.UIEffects.Editors
_patternArea = serializedObject.FindProperty("m_PatternArea");
_gradationMode = serializedObject.FindProperty("m_GradationMode");
_gradationIntensity = serializedObject.FindProperty("m_GradationIntensity");
_gradationColorFilter = serializedObject.FindProperty("m_GradationColorFilter");
_gradationColor1 = serializedObject.FindProperty("m_GradationColor1");
_gradationColor2 = serializedObject.FindProperty("m_GradationColor2");
_gradationColor3 = serializedObject.FindProperty("m_GradationColor3");
@@ -220,8 +224,6 @@ namespace Coffee.UIEffects.Editors
public void DrawProperties()
{
serializedObject.Update();
// Tone filter
if (DrawHeaderPopup(_toneFilter))
{
@@ -377,6 +379,7 @@ namespace Coffee.UIEffects.Editors
if (DrawHeaderPopup(_gradationMode))
{
EditorGUI.indentLevel++;
EditorGUILayout.PropertyField(_gradationColorFilter);
switch ((GradationMode)_gradationMode.intValue)
{
case GradationMode.HorizontalGradient:
@@ -400,6 +403,7 @@ namespace Coffee.UIEffects.Editors
break;
}
EditorGUILayout.PropertyField(_gradationIntensity);
EditorGUILayout.PropertyField(_gradationOffset);
EditorGUILayout.PropertyField(_gradationScale);
@@ -409,6 +413,8 @@ namespace Coffee.UIEffects.Editors
EditorGUILayout.PropertyField(_gradationRotation);
}
EditorGUILayout.PropertyField(_transitionKeepAspectRatio,
EditorGUIUtility.TrTempContent("Keep Aspect Ratio"));
EditorGUI.indentLevel--;
}
@@ -14,7 +14,6 @@ namespace Coffee.UIEffects.Editors
private SerializedProperty _useTargetTransform;
private SerializedProperty _samplingScale;
private SerializedProperty _allowToModifyMeshShape;
private SerializedProperty _flip;
private SerializedProperty _customRoot;
private Editor _uiEffectEditor;
@@ -24,7 +23,6 @@ namespace Coffee.UIEffects.Editors
_useTargetTransform = serializedObject.FindProperty("m_UseTargetTransform");
_samplingScale = serializedObject.FindProperty("m_SamplingScale");
_allowToModifyMeshShape = serializedObject.FindProperty("m_AllowToModifyMeshShape");
_flip = serializedObject.FindProperty("m_Flip");
_customRoot = serializedObject.FindProperty("m_CustomRoot");
}
@@ -64,7 +62,6 @@ namespace Coffee.UIEffects.Editors
EditorGUILayout.PropertyField(_samplingScale);
EditorGUILayout.PropertyField(_allowToModifyMeshShape);
EditorGUILayout.PropertyField(_flip);
if (_target.objectReferenceValue)
{
+110 -80
View File
@@ -1,11 +1,12 @@
# <img alt="logo" height="26" src="https://github.com/user-attachments/assets/dc72baf5-eadf-463e-abc9-464477fd0b9e"/> UIEffect v5 <!-- omit in toc -->
# <img alt="logo" height="26" src="https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-logo.png"/> UIEffect v5 <!-- omit in toc -->
[![](https://img.shields.io/npm/v/com.coffee.ui-effect?label=openupm&registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.coffee.ui-effect/)
[![](https://img.shields.io/github/v/release/mob-sakai/UIEffect?include_prereleases)](https://github.com/mob-sakai/UIEffect/releases)
[![](https://img.shields.io/github/release-date/mob-sakai/UIEffect.svg)](https://github.com/mob-sakai/UIEffect/releases)
![](https://img.shields.io/badge/Unity-2020.3+-57b9d3.svg?style=flat&logo=unity)
![](https://img.shields.io/badge/Unity-6000.0+-57b9d3.svg?style=flat&logo=unity)
![](https://img.shields.io/badge/Unity-6000.0+-57b9d3.svg?style=flat&logo=unity)
![](https://img.shields.io/badge/TextMeshPro_Support-57b9d3.svg?style=flat)
![](https://img.shields.io/badge/ShaderGraph_Support-57b9d3.svg?style=flat)
![](https://img.shields.io/badge/UPR%2FHDPR_Support-57b9d3.svg?style=flat)
![](https://img.shields.io/badge/VR_Support-57b9d3.svg?style=flat)
[![](https://img.shields.io/github/license/mob-sakai/UIEffect.svg)](https://github.com/mob-sakai/UIEffect/blob/main/LICENSE.md)
@@ -23,7 +24,7 @@
UIEffect is an open-source package that allows you to intuitively apply rich Unity UI effects directly from the Inspector or via code.
Combine various filters, such as grayscale, blur, and dissolve, to decorate your UI with a unique visual style!
![](https://github.com/user-attachments/assets/bce4ddb2-766f-4bed-bad2-fda91bb8133c)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-demo-title.png)
- [📌 Key Features](#-key-features)
- [🎮 Demo](#-demo)
@@ -37,13 +38,28 @@ Combine various filters, such as grayscale, blur, and dissolve, to decorate your
- [🚀 Usage](#-usage)
- [Getting Started](#getting-started)
- [Component: UIEffect](#component-uieffect)
- [Tone Filter](#tone-filter)
- [Color Filter](#color-filter)
- [Sampling Filter](#sampling-filter)
- [Transition Filter](#transition-filter)
- [Target Mode](#target-mode)
- [Blend Type](#blend-type)
- [Shadow Mode](#shadow-mode)
- [Gradation Mode](#gradation-mode)
- [Edge Mode](#edge-mode)
- [Detail Filter](#detail-filter)
- [Others](#others)
- [Component: UIEffectTweener](#component-uieffecttweener)
- [Component: UIEffectReplica](#component-uieffectreplica)
- [Usage with TextMeshPro](#usage-with-textmeshpro)
- [Usage with SoftMaskForUGUI](#usage-with-softmaskforugui)
- [Usage with ShaderGraph](#usage-with-shadergraph)
- [Runtime/Editor Preset for UIEffect](#runtimeeditor-preset-for-uieffect)
- [Usage with Code](#usage-with-code)
- [Project Settings](#project-settings)
- [Settings](#settings)
- [Editor](#editor)
- [Shader](#shader)
- [:warning: Limitations](#warning-limitations)
- [🤝 Contributing](#-contributing)
- [Issues](#issues)
@@ -57,7 +73,7 @@ Combine various filters, such as grayscale, blur, and dissolve, to decorate your
## 📌 Key Features
![](https://github.com/user-attachments/assets/e5112713-166d-451f-8090-501e6ea156ca)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-keyfeatures.png)
- **UIEffect is out-of-the-box!**: Easily apply effects by adjusting parameters directly in the inspector.
- **Rich effect combinations**: Decorate your UI with a variety of effects, such as grayscale, blur, and dissolve, by combining multiple filters and parameters.
@@ -70,15 +86,17 @@ Combine various filters, such as grayscale, blur, and dissolve, to decorate your
- **AnimationClip support**: Allows control of effect animations using `AnimationClips`.
- **v4 compatible components (optional)**: For easy upgrading with minimal changes, compatible v4 components are available optionally.
- **SoftMaskForUGUI support (optional)**: Compatible with SoftMaskForUGUI for creating soft masks for UI elements. See for more details [here](#usage-with-softmaskforugui).
- **ShaderGraph support (optional)**: Add `Canvas (UIEffect)` sub target (material) for UIEffect shaders. See for more details [here](#usage-with-shadergraph).
<br><br>
## 🎮 Demo
![](https://github.com/user-attachments/assets/ed38d668-4963-46c5-a1a1-cff33ab278ed)
![](https://github.com/user-attachments/assets/9cf575ad-88e2-4bcc-9a44-9931a4d5c589)
![](https://github.com/user-attachments/assets/1ed410bf-b782-433b-9429-721278c5ba1e)
![](https://github.com/user-attachments/assets/f9271346-fc4e-4c05-a1a8-88cf36110c05)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-demo-available.png)
<img src="https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-demo-pattern.gif" width="582"/>
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-demo-showcase.png)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-demo-tmp.png)
[WebGL Demo](https://mob-sakai.github.io/UIEffect/)
@@ -98,16 +116,16 @@ _This package requires **Unity 2020.3 or later**._
```
- To update the package, use Package Manager UI (`Window > Package Manager`) or run the following command with `@{version}`:
```
openupm add com.coffee.ui-effect@5.6.0
openupm add com.coffee.ui-effect@5.7.0
```
### Install via UPM (with Package Manager UI)
- Click `Window > Package Manager` to open Package Manager UI.
- Click `+ > Add package from git URL...` and input the repository URL: `https://github.com/mob-sakai/UIEffect.git?path=Packages/src`
![](https://github.com/user-attachments/assets/f88f47ad-c606-44bd-9e86-ee3f72eac548)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/upm-add-from-url.png)
- To update the package, change suffix `#{version}` to the target version.
- e.g. `https://github.com/mob-sakai/UIEffect.git?path=Packages/src#5.6.0`
- e.g. `https://github.com/mob-sakai/UIEffect.git?path=Packages/src#5.7.0`
### Install via UPM (Manually)
@@ -122,14 +140,14 @@ _This package requires **Unity 2020.3 or later**._
```
- To update the package, change suffix `#{version}` to the target version.
- e.g. `"com.coffee.ui-effect": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src#5.6.0",`
- e.g. `"com.coffee.ui-effect": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src#5.7.0",`
### Install as Embedded Package
1. Download the `Source code (zip)` file from [Releases](https://github.com/mob-sakai/UIEffect/releases) and
extract it.
2. Move the `<extracted_dir>/Packages/src` directory into your project's `Packages` directory.
![](https://github.com/user-attachments/assets/187cbcbe-5922-4ed5-acec-cf19aa17d208)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/upm-add-as-embedded.png)
- You can rename the `src` directory if needed.
- If you intend to fix bugs or add features, installing it as an embedded package is recommended.
- To update the package, re-download it and replace the existing contents.
@@ -140,6 +158,7 @@ Additional resources can be imported to extend functionality.
- [🔄 Upgrading from v4 to v5](#-upgrading-from-v4-to-v5)
- [Usage with TextMeshPro](#usage-with-textmeshpro)
- [Usage with ShaderGraph](#usage-with-shadergraph)
<br><br>
@@ -159,14 +178,13 @@ If upgrading from UIEffect v4 to v5, note the following breaking changes:
```
2. Import the `v4 Compatible Components` sample from the Package Manager window.
![](https://github.com/user-attachments/assets/a1b246d3-3a0b-4a70-a9d2-3e75429fa757)
3. All v4 components are obsolete.
- v4 `UIEffect` component is now `UIEffectV4` component. Change the reference in the code.
- The `effectArea` property in some components are not supported in v5.
- `UIShadow`, `UIGradient` components are not supported in v5.
- v4 components can be converted to v5 `UIEffect` component by selecting `Convert To UIEffect` from the context menu.
![](https://github.com/user-attachments/assets/4911f06d-4749-4aa8-a72e-deb0fa06bc5d)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-v4-convert.png)
<br><br>
@@ -177,10 +195,10 @@ If upgrading from UIEffect v4 to v5, note the following breaking changes:
1. [Install the package](#-installation).
2. Add a `UIEffect` component to a UI element (Image, RawImage, Text, TextMeshProUGUI, etc...) from the `Add Component` in the inspector or `Component > UI > UIEffect` menu.
![](https://github.com/user-attachments/assets/9e9de844-b265-489e-b8bd-51760996cfd2)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-add-component.png)
3. Adjust the effect filters and parameters in the inspector.
![](https://github.com/user-attachments/assets/38c2df5a-d7f7-4062-a595-8d3e887855cf)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/1744308178360.gif)
4. Enjoy!
@@ -190,7 +208,7 @@ If upgrading from UIEffect v4 to v5, note the following breaking changes:
The `UIEffect` component applies visual effects to UI elements, allowing various effects to be achieved by combining multiple filters.
![](https://github.com/user-attachments/assets/f32f4735-5d49-4f12-a79d-1b05e819868e)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-inspector-preset.png)
> [!TIP]
> From the top menu, you can load and save the editor presets or clear settings.
@@ -200,20 +218,20 @@ The `UIEffect` component applies visual effects to UI elements, allowing various
#### Tone Filter
![](https://github.com/user-attachments/assets/152f7bd2-f3d6-4dcc-8c34-58f94b1a1f47)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-inspector-tone.png)
- **Tone Filter**: `None`, `Grayscale`, `Sepia`, `Nega`, `Retro`, `Posterize`
![](https://github.com/user-attachments/assets/e80d9047-f9c9-45b4-90d9-03cd33e2a0ec)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-sample-tone.png)
- **Tone Intensity**: 0.0 (no effect) - 1.0 (full effect).
<br>
#### Color Filter
![](https://github.com/user-attachments/assets/b2bde449-f45d-4174-917f-bab8ea8bdf12)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-inspector-color.png)
- **Color Filter**: `None`, `Multiply`, `Additive`, `Subtractive`, `Replace`, `Multiply Luminance`, `Multiply Additive`, `Hsv Modifier`, `Contrast`
![](https://github.com/user-attachments/assets/4685581d-ec0a-4ce3-9627-919fb7ffdca6)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-sample-color.png)
- **Color Intensity**: 0.0 (no effect) - 1.0 (full effect).
- **Color Glow**: Set the color to glow.
@@ -221,10 +239,10 @@ The `UIEffect` component applies visual effects to UI elements, allowing various
#### Sampling Filter
![](https://github.com/user-attachments/assets/fb4fa1d2-cf29-43de-9321-96f6355f45e9)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-inspector-sampling.png)
- **Sampling Filter**: `None`, `Blur Fast`, `Blur Medium`, `Blur Detail`, `Pixelation`, `Rgb Shift`, `Edge Luminescence`, `Edge Alpha`
![](https://github.com/user-attachments/assets/d2a07673-8fd5-489d-94d4-49907122623f)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-sample-sampling.png)
- **Sampling Intensity**: 0.0 (no effect) - 1.0 (full effect).
- **Sampling Width**: The width of the sampling effect.
@@ -232,19 +250,20 @@ The `UIEffect` component applies visual effects to UI elements, allowing various
#### Transition Filter
![](https://github.com/user-attachments/assets/9e75421a-c7cc-4be9-b38e-3a5914c02ef8)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-inspector-transition.png)
- **Transition Filter**: `None`, `Fade`, `Cutoff`, `Dissolve`, `Shiny`, `Mask`, `Melt`, `Burn`, `Pattern`
![](https://github.com/user-attachments/assets/26942df8-47fa-4961-8949-c3290bd4f442)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-sample-transition.png)
- **Transition Rate**: 0.0 (no effect) - 1.0 (full effect).
- **Transition Tex**: The texture used for the transition filter.
- **Scale**, **Offset**, **Speed**, **Rotation**, **Keep Aspect Ratio**, **Reverse**: Additional properties for the texture.
- NOTE: `Rotation` and `Keep Aspect Ratio` are shared with `Detail Filter`.
- ⚠️ NOTE: `Rotation` is shared with `Transition Filter` and `Detail Filter`.
- ⚠️ NOTE: `Keep Aspect Ratio` is shared with `Transition Filter` and `Gradation Mode` and `Detail Filter`.
- **Transition Width**: The width where the transition color is applied.
- **Transition Pattern Range**: The range of the pattern.
- **Transition Pattern Reverse**: Reverse the pattern.
- **Transition Softness**: The softness of the boundary for the transition color.
- **Transition Color Filter**: Specifies the transition color.
- **Transition Color Filter**: `None`, `Multiply`, `Additive`, `Subtractive`, `Replace`, `Multiply Luminance`, `Multiply Additive`, `Hsv Modifier`, `Contrast`
- **Transition Color**: The color of the transition.
- **Transition Color Glow**: Set the transition color to glow.
- **Transition Auto Play Speed**: The speed of the transition animation (using shader side `_Time`). You can use this property to loop the `TransitionRate` without tweener or animation.
@@ -253,16 +272,16 @@ The `UIEffect` component applies visual effects to UI elements, allowing various
> **Transition Tex** applies transitions using its alpha channel.
> If you use `Scale`, `Offset`, or `Speed`, set `Wrap Mode = Repeat` in the texture import settings.
> For details, refer to the textures included in the built-in presets.
> ![](https://github.com/user-attachments/assets/e70ec77d-5417-4ee9-b055-a7f870b06e23)
> ![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/17443051097852.png)
<br>
#### Target Mode
![](https://github.com/user-attachments/assets/19cf9641-42c8-423e-84f7-e6b24243c2f3)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-inspector-target.png)
- **Target Mode**: `None`, `Hue`, `Luminance`
![](https://github.com/user-attachments/assets/7493ed9c-f1f5-4532-8266-067a3a316f5d)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-sample-target.png)
- Restricts the effect application area based on hue or luminance.
- **Target Range**: The range of target hue or luminance.
- **Target Softness**: The softness of the target boundary.
@@ -271,63 +290,61 @@ The `UIEffect` component applies visual effects to UI elements, allowing various
#### Blend Type
![](https://github.com/user-attachments/assets/5ffcf33e-4c54-450f-a8e1-db0cf3353dda)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-inspector-blend.png)
- **Blend Type**: `Alpha Blend`, `Multiply`, `Additive`, `Soft Additive`, `Multiply Additive`, `Custom`
![](https://github.com/user-attachments/assets/406e3aa7-0afa-48e5-aac2-73c0f3483c5c)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-sample-blend.png)
- `Custom` blend type can be set using the `SrcBlend` and `DstBlend` properties.
<br>
#### Shadow Mode
![](https://github.com/user-attachments/assets/f6b78a66-5944-465a-b716-be19cb1aa140)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-inspector-shadow.png)
- **Shadow Mode**: `None`, `Shadow`, `Shadow3`, `Outline`, `Outline8`, `Mirror`
![](https://github.com/user-attachments/assets/fc8d0fb1-63ce-4a6b-b278-353a7a210369)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-sample-shadow.png)
- **Shadow Distance**: Distance of the shadow or outline.
- **Shadow Iteration**: Number of times the shadow or outline is applied.
- **Shadow Color Filter**: Specifies the shadow color.
- **Shadow Color Filter**: `None`, `Multiply`, `Additive`, `Subtractive`, `Replace`, `Multiply Luminance`, `Multiply Additive`, `Hsv Modifier`, `Contrast`
- **Shadow Color**: The color of the shadow.
- **Shadow Color Glow**: Set the shadow color to glow.
- **Shadow Fade**: Alpha value of the shadow or outline.
- **Shadow Blur Intensity**: Intensity of the shadow or outline blur.
- **Mirror Reflection**: Distance of the mirrored image.
- **Mirror Offset**: Offset for the mirrored image.
- **Mirror Scale**: Scale of the mirrored image.
- **Shadow Blur Intensity** (`SamplingFilter = Blur***` required): Intensity of the shadow or outline blur.
- **Mirror Reflection** (`Mirror` only): Distance of the mirrored image.
- **Mirror Offset** (`Mirror` only): Offset for the mirrored image.
- **Mirror Scale** (`Mirror` only): Scale of the mirrored image.
<br>
#### Gradation Mode
![](https://github.com/user-attachments/assets/1ce4a90e-90e2-4674-8c2b-9cfda33acb84)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/1744305109784.png)
- **Gradation Mode**: `None`, `Horizontal`, `HorizontalGradient`, `Vertical`, `VerticalGradient`, `RadialFast`, `RadialDetail`, `Diagonal`, `DiagonalToRightBottom`, `DiagonalToLeftBottom`, `Angle`, `AngleGradient`
![](https://github.com/user-attachments/assets/fd2791db-5740-4030-aec0-4bae90fc2b30)
- **Gradation Mode**: `None`, `Horizontal`, `HorizontalGradient`, `Vertical`, `VerticalGradient`, `Radial`, `Diagonal`, `DiagonalToRightBottom`, `DiagonalToLeftBottom`, `Angle`, `AngleGradient`
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-sample-gradation.png)
- **Gradation Color Filter**: `None`, `Multiply`, `Additive`, `Subtractive`, `Replace`, `Multiply Luminance`, `Multiply Additive`
- **Gradation Gradient**: The gradient of the gradation.
- `Blend` and `Fixed` modes are available.
- **Gradation Color 1**: The first color of the gradation.
- **Gradation Color 2**: The second color of the gradation.
- **Gradation Intensity**: 0.0 (no effect) - 1.0 (full effect).
- **Gradation Offset**: The offset of the gradation range.
- **Gradation Scale**: The scale of the gradation range.
- **Gradation Rotation**: The rotation of the gradation range (`Angle` or `AngleGradient`).
> [!TIP]
> `Horizontal Gradient` and `Vertical Gradient` divide the mesh horizontally or vertically and apply a gradient.
> This is very fast but only supports Full Rect.
> `Angle Gradient` divides the mesh at the specified angle and applies a gradient.
> It can be applied to meshes other than Full Rect because it applies the gradient according to the original mesh shape.
> `Gradation Gradient` has two modes, `Blend` and `Fixed`.
- **Gradation Rotation** (`Angle` or `AngleGradient` only): The rotation of the gradation range.
- **Keep Aspect Ratio**:
- ⚠️ NOTE: `Keep Aspect Ratio` is shared with `Transition Filter` and `Gradation Mode` and `Detail Filter`.
<br>
#### Edge Mode
![](https://github.com/user-attachments/assets/361a650d-18a4-4fc7-966d-4c87b765be54)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-inspector-edge.png)
- **Edge Mode**: `None`, `Plain`, `Shiny`
![](https://github.com/user-attachments/assets/ec7b0e25-f89a-4b3d-8e97-eca88d26b5e2)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-sample-edge.png)
- **Edge Width**: The width of the edge.
- **Edge Color Filter**: Specifies the edge color.
- **Edge Color Filter**: `None`, `Multiply`, `Additive`, `Subtractive`, `Replace`, `Multiply Luminance`, `Multiply Additive`, `Hsv Modifier`, `Contrast`
- **Edge Color**: The color of the edge.
- **Edge Color Glow**: Set the shadow color to glow.
- **Edge Shiny Width**: The width of the edge shiny.
@@ -337,22 +354,23 @@ The `UIEffect` component applies visual effects to UI elements, allowing various
#### Detail Filter
![](https://github.com/user-attachments/assets/295d7d2d-be6e-4104-9ea3-e5208902a3d2)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-inspector-detail.png)
- **Detail Filter**: `None`, `Masking`, `Multiply`, `Additive`, `Replace`, `MuliplyAdditive`
![](https://github.com/user-attachments/assets/7011459b-a090-4044-be1e-acfe8981ea01)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-sample-detail.png)
- **Detail Intensity**: 0.0 (no effect) - 1.0 (full effect).
- **Detail Threshold** (`Masking` only): The minimum and maximum alpha values used for masking. The larger the gap
between these values, the stronger the softness effect.
- **Detail Tex**: The texture used for the transition filter.
- **Scale**, **Offset**, **Speed**, **Rotation**, **Keep Aspect Ratio**: Additional properties for the texture.
- NOTE: `Rotation` and `Keep Aspect Ratio` are shared with `Transition Filter`.
- ⚠️ NOTE: `Rotation` is shared with `Transition Filter` and `Detail Filter`.
- ⚠️ NOTE: `Keep Aspect Ratio` is shared with `Transition Filter` and `Gradation Mode` and `Detail Filter`.
<br>
#### Others
![](https://github.com/user-attachments/assets/d0394c3b-34a0-4998-987a-192f9a848cdc)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-inspector-others.png)
- **Sampling Scale**: The referencing scale during sampling.
- Larger values are suitable for high-resolution textures.
@@ -364,18 +382,19 @@ The `UIEffect` component applies visual effects to UI elements, allowing various
- `Vertical`
- `Effect`: Flip with the effect.
- `Shadow`: Flip with the shadow.
![](https://github.com/user-attachments/assets/c3b3d475-75d3-4c8d-a329-db4f124fec45)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-sample-flip.png)
> [!TIP]
> `Transition Filter`, `Gradation Filter`, and `Detail Filter` usually refer to their own `RectTransform` when applying effects.
> For example, if the mesh shape exceeds the `RectTransform` boundaries, the effect may not be applied correctly.
> By specifying `Custom Root`, you can refer to the specified transform.
> ![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-sample-custom-root.gif)
<br><br>
### Component: UIEffectTweener
![](https://github.com/user-attachments/assets/64ff1e78-d06e-461f-80a5-3b3e9f615496)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/1744304918490.png)
The `UIEffectTweener` component animates the effect, enabling easy control over effect animations without the need for an `AnimationClip`.
@@ -406,7 +425,7 @@ You can preview the animation using the seek bar and play button.
### Component: UIEffectReplica
![](https://github.com/user-attachments/assets/458ab704-90b1-473d-8bda-80c325e1654e)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/1744308511445.png)
The `UIEffectReplica` component applies visual effects to UI elements by replicating the settings of another `UIEffect` component. This allows the same effect to be applied across multiple UI elements simultaneously.
@@ -414,16 +433,10 @@ The `UIEffectReplica` component applies visual effects to UI elements by replica
> [!TIP]
> You can specify a preset as well as an instance as the target for `UIEffectReplica`.
- **Use Target Transform**: Use the target's transform for some effects.
![](https://github.com/user-attachments/assets/127e30fb-15c7-4002-ab65-e8f29e640330)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-sample-custom-root.gif)
- **Custom Root**: Use the custom transform for some effects.
- **Sampling Scale**: Override the sampling scale.
- **Allow To Modify Mesh Shape**: If enabled, the mesh shape can be modified.
- **Flip**:
- `Nothing`
- `Horizontal`
- `Vertical`
- `Effect`: Flip the effect.
- `Shadow`: Flip the shadow.
- **Allow To Modify Mesh Shape**: If enabled, the mesh shape can be modified.
<br><br>
@@ -433,21 +446,20 @@ To use UIEffect with TextMeshPro, you need to import additional resources.
When a shader included in the samples is requested, an import dialog will automatically appear.
Click the `Import` button.
![](https://github.com/user-attachments/assets/78b262fc-1581-49f2-8c93-06d591b525c6)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/1744304977486.png)
Alternatively, you can manually import the resources by following these steps:
1. First, you must import [TMP Essential Resources](https://docs.unity3d.com/Packages/com.unity.textmeshpro@3.0/manual/index.html#installation) before using.
![](https://github.com/user-attachments/assets/70653ccf-0b5e-4352-ac62-76bdd49c5f92)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/1744305000411.png)
2. Open the `Package Manager` window and select the `UI Effect` package in the package list and click the `TextMeshPro Support > Import` button.
⚠️ If you are using `Unity 2023.2/6000.0+` or `TextMeshPro 3.2/4.0+`, click the `TextMeshPro Support (Unity 6) > Import` button instead.
![](https://github.com/user-attachments/assets/a1b246d3-3a0b-4a70-a9d2-3e75429fa757)
3. The assets will be imported under `Assets/Samples/UI Effect/{version}`.
4. Add the `UIEffect` component to a TextMeshProUGUI element and adjust the effect settings. The `<font>` and `<sprite>` tags are also supported.
![](https://github.com/user-attachments/assets/bfd28f36-2e32-4383-8628-276b02579fd4)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/1744305022250.png)
> [!TIP]
> `TextMeshPro Support` may change with updates to the UIEffect package.
@@ -462,19 +474,38 @@ Alternatively, you can manually import the resources by following these steps:
### Usage with SoftMaskForUGUI
![](https://github.com/user-attachments/assets/7701e765-896a-49a8-b1ed-22adb0ecce12)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/1744305036318.png)
[SoftMaskForUGUI](https://github.com/mob-sakai/SoftMaskForUGUI) is a package that allows you to create soft masks for UI elements.
`SoftMaskForUGUI (v3.3.0+)` supports `UIEffect (v5.6.0+)`.
`SoftMaskForUGUI (v3.3.0+)` supports `UIEffect (v5.7.0+)`.
When a shader included in the samples is requested, an import dialog will automatically appear.
Click the `Import` button.
<br><br>
### Usage with ShaderGraph
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/1744307236288.png)
To use UIEffect with ShaderGraph, you need to import additional resources.
1. Open the `Package Manager` window and select the `UI Effect` package in the package list and click the `ShaderGraph Support (Unity6, BuiltIn) > Import` button.
⚠️ If you are using Universal Render Pipeline (URP), click the `ShaderGraph Support (Unity6, URP) > Import` button.
2. The assets will be imported under `Assets/Samples/UI Effect/{version}`.
3. Change the sub target (Material) of the existing ShaderGraph file to `Canvas (UIEffect)`.
Alternatively, create a new ShaderGraph from `Assets/Create/Shader Graph/BuiltIn/Canvas Shader Graph (UIEffect)`.
> [!TIP]
> Use `(UIEffect)` in the shader name or register as an optional shader in [ProjectSettings](#project-settings).
<br><br>
### Runtime/Editor Preset for UIEffect
![](https://github.com/user-attachments/assets/f32f4735-5d49-4f12-a79d-1b05e819868e)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-inspector-preset.png)
You can create and use presets for `UIEffect` components.
@@ -497,7 +528,7 @@ You can control the effect settings and animations via code.
```csharp
var effect = graphic.AddComponent<UIEffect>();
// Apply a preset
// Apply a runtime preset
effect.LoadPreset("Dissolve");
// Set the effect parameters
@@ -517,7 +548,7 @@ UIEffectProjectSettings.shaderVariantCollection.WarmUp();
### Project Settings
![](https://github.com/user-attachments/assets/c50ed6fc-9577-4c85-9b38-89ed8571a8b0)
![](https://github.com/mob-sakai/mob-sakai/releases/download/docs/1744305055425.png)
You can adjust the project-wide settings for UIEffect. (`Edit > Project Settings > UI > UIEffect`)
@@ -595,7 +626,6 @@ Your support allows me to dedicate more time to development. 😊
## License
* MIT
* © UTJ/UCL
## Author
@@ -606,4 +636,4 @@ Your support allows me to dedicate more time to development. 😊
* GitHub page : https://github.com/mob-sakai/UIEffect
* Releases : https://github.com/mob-sakai/UIEffect/releases
* Issue tracker : https://github.com/mob-sakai/UIEffect/issues
* Change log : https://github.com/mob-sakai/UIEffect/blob/main/Packages/src/CHANGELOG.md
* Change log : https://github.com/mob-sakai/UIEffect/blob/main/Packages/src/CHANGELOG.md
+11
View File
@@ -26,6 +26,17 @@ namespace Coffee.UIEffects
Contrast = 8
}
public enum GradationColorFilter
{
None = ColorFilter.None,
Multiply = ColorFilter.Multiply,
Additive = ColorFilter.Additive,
Subtractive = ColorFilter.Subtractive,
Replace = ColorFilter.Replace,
MultiplyLuminance = ColorFilter.MultiplyLuminance,
MultiplyAdditive = ColorFilter.MultiplyAdditive
}
public enum SamplingFilter
{
None = 0,
@@ -315,7 +315,7 @@ namespace Coffee.UIEffectInternal
var rKey = new Rect(r.x, r.y + 2, r.width, h);
if (GUI.Button(rKey, key.stringValue, EditorStyles.popup))
{
ShowShaderDropdown(key, optionName, false);
ShowShaderDropdown(key);
}
var rArrow = new Rect(r.x, r.y + h + 4, 20, h);
@@ -324,7 +324,7 @@ namespace Coffee.UIEffectInternal
var rValue = new Rect(r.x + 20, r.y + h + 4, r.width - 20, h);
if (GUI.Button(rValue, value.stringValue, EditorStyles.popup))
{
ShowShaderDropdown(value, optionName, true);
ShowShaderDropdown(value);
}
};
@@ -444,12 +444,11 @@ namespace Coffee.UIEffectInternal
return expand;
}
private static void ShowShaderDropdown(SerializedProperty property, string option, bool required)
private static void ShowShaderDropdown(SerializedProperty property)
{
var menu = new GenericMenu();
var current = property.stringValue;
var allShaderNames = ShaderUtil.GetAllShaderInfo()
.Where(s => !required || s.name.Contains(option))
.Select(s => s.name);
foreach (var shaderName in allShaderNames)
+120 -40
View File
@@ -162,6 +162,13 @@ namespace Coffee.UIEffects
[SerializeField]
protected GradationMode m_GradationMode = GradationMode.None;
[Range(0, 1)]
[SerializeField]
protected float m_GradationIntensity = 1;
[SerializeField]
protected GradationColorFilter m_GradationColorFilter = GradationColorFilter.Multiply;
[SerializeField]
protected Color m_GradationColor1 = Color.white;
@@ -548,7 +555,6 @@ namespace Coffee.UIEffects
{
if (Mathf.Approximately(m_TransitionRotation, value)) return;
context.transitionRotation = m_TransitionRotation = value;
SetVerticesDirty();
}
}
@@ -559,7 +565,6 @@ namespace Coffee.UIEffects
{
if (m_TransitionKeepAspectRatio == value) return;
context.transitionKeepAspectRatio = m_TransitionKeepAspectRatio = value;
SetVerticesDirty();
}
}
@@ -1156,7 +1161,33 @@ namespace Coffee.UIEffects
{
if (m_GradationMode == value) return;
context.gradationMode = m_GradationMode = value;
SetVerticesDirty();
SetMaterialDirty();
}
}
/// <summary>
/// 0.0 (no effect) - 1.0 (full effect).
/// </summary>
public float gradationIntensity
{
get => m_GradationIntensity;
set
{
value = Mathf.Clamp(value, 0, 1);
if (Mathf.Approximately(m_GradationIntensity, value)) return;
context.gradationIntensity = m_GradationIntensity = value;
SetMaterialDirty();
}
}
public GradationColorFilter gradationColorFilter
{
get => m_GradationColorFilter;
set
{
if (m_GradationColorFilter == value) return;
context.gradationColorFilter = m_GradationColorFilter = value;
SetMaterialDirty();
}
}
@@ -1167,7 +1198,7 @@ namespace Coffee.UIEffects
{
if (m_GradationColor1 == value) return;
context.gradationColor1 = m_GradationColor1 = value;
SetVerticesDirty();
SetMaterialDirty();
}
}
@@ -1178,7 +1209,7 @@ namespace Coffee.UIEffects
{
if (m_GradationColor2 == value) return;
context.gradationColor2 = m_GradationColor2 = value;
SetVerticesDirty();
SetMaterialDirty();
}
}
@@ -1189,7 +1220,7 @@ namespace Coffee.UIEffects
{
if (m_GradationColor3 == value) return;
context.gradationColor3 = m_GradationColor3 = value;
SetVerticesDirty();
SetMaterialDirty();
}
}
@@ -1200,7 +1231,7 @@ namespace Coffee.UIEffects
{
if (m_GradationColor4 == value) return;
context.gradationColor4 = m_GradationColor4 = value;
SetVerticesDirty();
SetMaterialDirty();
}
}
@@ -1211,7 +1242,7 @@ namespace Coffee.UIEffects
{
if (Mathf.Approximately(m_GradationOffset, value)) return;
context.gradationOffset = m_GradationOffset = value;
SetVerticesDirty();
SetMaterialDirty();
}
}
@@ -1222,7 +1253,7 @@ namespace Coffee.UIEffects
{
if (Mathf.Approximately(m_GradationScale, value)) return;
context.gradationScale = m_GradationScale = value;
SetVerticesDirty();
SetMaterialDirty();
}
}
@@ -1234,7 +1265,6 @@ namespace Coffee.UIEffects
value = Mathf.Repeat(value, 360);
if (Mathf.Approximately(m_GradationRotation, value)) return;
context.gradationRotation = m_GradationRotation = value;
SetVerticesDirty();
}
}
@@ -1334,7 +1364,6 @@ namespace Coffee.UIEffects
{
if (m_CustomRoot == value) return;
m_CustomRoot = value;
SetVerticesDirty();
}
}
@@ -1353,11 +1382,58 @@ namespace Coffee.UIEffects
? m_CustomRoot
: transform as RectTransform;
private Texture2D _gradationRampTex;
private bool _isGradientDirty = true;
private static readonly Color32[] s_Colors = new Color32[256];
private static readonly InternalObjectPool<Texture2D> s_TexturePool = new InternalObjectPool<Texture2D>(
() =>
{
var w = 256;
var texture = new Texture2D(w, 1, TextureFormat.RGBA32, false, false)
{
name = "GradationRamp",
hideFlags = HideFlags.DontSave,
wrapMode = TextureWrapMode.Repeat,
anisoLevel = 0
};
return texture;
},
texture => texture,
texture => { });
private Texture2D gradationRampTex
{
get
{
if (!_gradationRampTex) _gradationRampTex = s_TexturePool.Rent();
if (!_isGradientDirty) return _gradationRampTex;
_isGradientDirty = false;
var w = _gradationRampTex.width;
for (var i = 0; i < w; i++)
{
s_Colors[i] = m_GradationGradient.Evaluate((float)i / (w - 1));
}
_gradationRampTex.filterMode = m_GradationGradient.mode == GradientMode.Blend
? FilterMode.Bilinear
: FilterMode.Point;
_gradationRampTex.SetPixels32(s_Colors);
_gradationRampTex.Apply();
return _gradationRampTex;
}
}
public List<UIEffectReplica> replicas => _replicas ??= InternalListPool<UIEffectReplica>.Rent();
private List<UIEffectReplica> _replicas;
protected override void OnEnable()
{
_isGradientDirty = true;
(m_SrcBlendMode, m_DstBlendMode) = (m_BlendType, m_SrcBlendMode, m_DstBlendMode).Convert();
base.OnEnable();
SetMaterialDirty();
@@ -1372,6 +1448,7 @@ namespace Coffee.UIEffects
protected override void OnDestroy()
{
InternalListPool<UIEffectReplica>.Return(ref _replicas);
s_TexturePool.Return(ref _gradationRampTex);
}
#if UNITY_EDITOR
@@ -1380,6 +1457,7 @@ namespace Coffee.UIEffects
(m_SrcBlendMode, m_DstBlendMode) = (m_BlendType, m_SrcBlendMode, m_DstBlendMode).Convert();
context?.SetGradationDirty();
base.OnValidate();
_isGradientDirty = true;
}
internal override void SetEnablePreviewIfSelected(GameObject[] selection)
@@ -1397,33 +1475,32 @@ namespace Coffee.UIEffects
}
#endif
protected override void OnBeforeCanvasRebuild()
{
base.OnBeforeCanvasRebuild();
if (CheckTransformChangedWith(customRoot))
{
SetVerticesDirty();
}
}
public override void SetVerticesDirty()
{
base.SetVerticesDirty();
replicas.ForEach(c =>
for (var i = 0; i < replicas.Count; i++)
{
if (!c) return;
c.SetVerticesDirty();
});
if (!replicas[i]) continue;
replicas[i].SetVerticesDirty();
}
}
public override void SetMaterialDirty()
{
base.SetMaterialDirty();
replicas.ForEach(c =>
for (var i = 0; i < replicas.Count; i++)
{
if (!c) return;
c.SetMaterialDirty();
});
if (!replicas[i]) continue;
replicas[i].SetMaterialDirty();
}
}
/// <summary>
/// Set gradation gradient's keys.
/// </summary>
public void SetGradientKeys(Gradient gradient)
{
SetGradientKeys(gradient.colorKeys, gradient.alphaKeys, gradient.mode);
}
/// <summary>
@@ -1432,11 +1509,12 @@ namespace Coffee.UIEffects
public void SetGradientKeys(GradientColorKey[] colorKeys, GradientAlphaKey[] alphaKeys,
GradientMode mode = GradientMode.Blend)
{
_isGradientDirty = true;
m_GradationGradient ??= new Gradient();
m_GradationGradient.SetKeys(colorKeys, alphaKeys);
m_GradationGradient.mode = mode;
context?.SetGradationDirty();
SetVerticesDirty();
SetMaterialDirty();
}
internal override void UpdateContext(UIEffectContext c)
@@ -1501,11 +1579,13 @@ namespace Coffee.UIEffects
c.patternArea = m_PatternArea;
c.gradationMode = m_GradationMode;
c.gradationIntensity = m_GradationIntensity;
c.gradationColorFilter = m_GradationColorFilter;
c.gradationColor1 = m_GradationColor1;
c.gradationColor2 = m_GradationColor2;
c.gradationColor3 = m_GradationColor3;
c.gradationColor4 = m_GradationColor4;
c.gradationGradient = m_GradationGradient;
c.gradationTex = gradationRampTex;
c.gradationOffset = m_GradationOffset;
c.gradationScale = m_GradationScale;
c.gradationRotation = m_GradationRotation;
@@ -1522,11 +1602,12 @@ namespace Coffee.UIEffects
public override void ApplyContextToMaterial(Material material)
{
base.ApplyContextToMaterial(material);
replicas.ForEach(c =>
for (var i = 0; i < replicas.Count; i++)
{
if (!c) return;
c.ApplyContextToMaterial(material);
});
if (!replicas[i]) continue;
replicas[i].ApplyContextToMaterial(material);
}
}
public override void SetRate(float rate, UIEffectTweener.CullingMask mask)
@@ -1701,13 +1782,13 @@ namespace Coffee.UIEffects
if (!append || preset.m_GradationMode != GradationMode.None)
{
m_GradationMode = preset.m_GradationMode;
m_GradationIntensity = preset.m_GradationIntensity;
m_GradationColorFilter = preset.m_GradationColorFilter;
m_GradationColor1 = preset.m_GradationColor1;
m_GradationColor2 = preset.m_GradationColor2;
m_GradationColor3 = preset.m_GradationColor3;
m_GradationColor4 = preset.m_GradationColor4;
m_GradationGradient = new Gradient();
m_GradationGradient.SetKeys(preset.m_GradationGradient.colorKeys, preset.m_GradationGradient.alphaKeys);
m_GradationGradient.mode = preset.m_GradationGradient.mode;
SetGradientKeys(preset.m_GradationGradient);
m_GradationOffset = preset.m_GradationOffset;
m_GradationScale = preset.m_GradationScale;
m_GradationRotation = preset.m_GradationRotation;
@@ -1793,13 +1874,12 @@ namespace Coffee.UIEffects
m_PatternArea = c.patternArea;
m_GradationMode = c.gradationMode;
m_GradationIntensity = c.gradationIntensity;
m_GradationColorFilter = c.gradationColorFilter;
m_GradationColor1 = c.gradationColor1;
m_GradationColor2 = c.gradationColor2;
m_GradationColor3 = c.gradationColor3;
m_GradationColor4 = c.gradationColor4;
m_GradationGradient = new Gradient();
m_GradationGradient.SetKeys(c.gradationGradient.colorKeys, c.gradationGradient.alphaKeys);
m_GradationGradient.mode = c.gradationGradient.mode;
m_GradationOffset = c.gradationOffset;
m_GradationScale = c.gradationScale;
m_GradationRotation = c.gradationRotation;
+30 -9
View File
@@ -23,6 +23,7 @@ namespace Coffee.UIEffects
private Material _material;
private UIEffectContext _context;
private Action _onBeforeCanvasRebuild;
private Action _onAfterCanvasRebuild;
private bool _canModifyMesh;
private Matrix4x4 _prevTransformHash;
@@ -46,6 +47,19 @@ namespace Coffee.UIEffects
}
}
protected Material GetCurrentMaterial()
{
if (!isActiveAndEnabled) return null;
var g = graphic;
if (!g) return null;
var canvasRenderer = g.canvasRenderer;
if (!canvasRenderer || canvasRenderer.materialCount == 0) return null;
return canvasRenderer.GetMaterial();
}
public virtual RectTransform transitionRoot => transform as RectTransform;
public virtual Flip flip
@@ -57,7 +71,9 @@ namespace Coffee.UIEffects
protected override void OnEnable()
{
_onBeforeCanvasRebuild ??= OnBeforeCanvasRebuild;
_onAfterCanvasRebuild ??= OnAfterCanvasRebuild;
UIExtraCallbacks.onBeforeCanvasRebuild += _onBeforeCanvasRebuild;
UIExtraCallbacks.onAfterCanvasRebuild += _onAfterCanvasRebuild;
UpdateContext(context);
SetMaterialDirty();
SetVerticesDirty();
@@ -70,6 +86,11 @@ namespace Coffee.UIEffects
UIExtraCallbacks.onBeforeCanvasRebuild -= _onBeforeCanvasRebuild;
}
if (_onAfterCanvasRebuild != null)
{
UIExtraCallbacks.onAfterCanvasRebuild -= _onAfterCanvasRebuild;
}
MaterialRepository.Release(ref _material);
SetMaterialDirty();
SetVerticesDirty();
@@ -90,6 +111,13 @@ namespace Coffee.UIEffects
}
}
protected virtual void OnAfterCanvasRebuild()
{
if (!_material || !graphic || context == null) return;
context.UpdateViewMatrix(GetCurrentMaterial(), transitionRoot, graphic.canvas.rootCanvas, flip);
}
public void ModifyMesh(Mesh mesh)
{
}
@@ -127,7 +155,8 @@ namespace Coffee.UIEffects
Profiler.BeginSample("(UIE)[UIEffect] GetModifiedMaterial");
var samplingScaleId = (uint)(Mathf.InverseLerp(0.01f, 100, actualSamplingScale) * uint.MaxValue);
var hash = new Hash128((uint)baseMaterial.GetInstanceID(), effectId, samplingScaleId, 0);
var rootId = (uint)(transitionRoot ? transitionRoot.GetInstanceID() : 0);
var hash = new Hash128((uint)baseMaterial.GetInstanceID(), effectId, samplingScaleId, rootId);
if (!MaterialRepository.Valid(hash, _material))
{
Profiler.BeginSample("(UIE)[UIEffect] GetModifiedMaterial > Get or create material");
@@ -198,14 +227,6 @@ namespace Coffee.UIEffects
}
}
protected bool CheckTransformChangedWith(Transform root)
{
var sensitivity = UIEffectProjectSettings.transformSensitivity;
return root
&& root != transform
&& transform.HasChanged(root, ref _prevTransformHash, sensitivity);
}
internal void ReleaseMaterial()
{
MaterialRepository.Release(ref _material);
+168 -263
View File
@@ -16,6 +16,7 @@ namespace Coffee.UIEffects
private static readonly int s_DstBlend = Shader.PropertyToID("_DstBlend");
private static readonly int s_ToneIntensity = Shader.PropertyToID("_ToneIntensity");
private static readonly int s_ToneParams = Shader.PropertyToID("_ToneParams");
private static readonly int s_ColorFilter = Shader.PropertyToID("_ColorFilter");
private static readonly int s_ColorValue = Shader.PropertyToID("_ColorValue");
private static readonly int s_ColorIntensity = Shader.PropertyToID("_ColorIntensity");
private static readonly int s_ColorGlow = Shader.PropertyToID("_ColorGlow");
@@ -38,10 +39,12 @@ namespace Coffee.UIEffects
private static readonly int s_TargetColor = Shader.PropertyToID("_TargetColor");
private static readonly int s_TargetRange = Shader.PropertyToID("_TargetRange");
private static readonly int s_TargetSoftness = Shader.PropertyToID("_TargetSoftness");
private static readonly int s_ShadowColorFilter = Shader.PropertyToID("_ShadowColorFilter");
private static readonly int s_ShadowColor = Shader.PropertyToID("_ShadowColor");
private static readonly int s_ShadowBlurIntensity = Shader.PropertyToID("_ShadowBlurIntensity");
private static readonly int s_ShadowColorGlow = Shader.PropertyToID("_ShadowColorGlow");
private static readonly int s_EdgeWidth = Shader.PropertyToID("_EdgeWidth");
private static readonly int s_EdgeColorFilter = Shader.PropertyToID("_EdgeColorFilter");
private static readonly int s_EdgeColor = Shader.PropertyToID("_EdgeColor");
private static readonly int s_EdgeColorGlow = Shader.PropertyToID("_EdgeColorGlow");
private static readonly int s_EdgeShinyAutoPlaySpeed = Shader.PropertyToID("_EdgeShinyAutoPlaySpeed");
@@ -53,6 +56,17 @@ namespace Coffee.UIEffects
private static readonly int s_DetailTex = Shader.PropertyToID("_DetailTex");
private static readonly int s_DetailTex_ST = Shader.PropertyToID("_DetailTex_ST");
private static readonly int s_DetailTex_Speed = Shader.PropertyToID("_DetailTex_Speed");
private static readonly int s_GradationIntensity = Shader.PropertyToID("_GradationIntensity");
private static readonly int s_GradationColorFilter = Shader.PropertyToID("_GradationColorFilter");
private static readonly int s_GradationColor1 = Shader.PropertyToID("_GradationColor1");
private static readonly int s_GradationColor2 = Shader.PropertyToID("_GradationColor2");
private static readonly int s_GradationColor3 = Shader.PropertyToID("_GradationColor3");
private static readonly int s_GradationColor4 = Shader.PropertyToID("_GradationColor4");
private static readonly int s_GradationTex = Shader.PropertyToID("_GradationTex");
private static readonly int s_GradationTex_ST = Shader.PropertyToID("_GradationTex_ST");
private static readonly int s_RootViewMatrix = Shader.PropertyToID("_RootViewMatrix");
private static readonly int s_GradViewMatrix = Shader.PropertyToID("_GradViewMatrix");
private static readonly int s_CanvasToWorldMatrix = Shader.PropertyToID("_CanvasToWorldMatrix");
private static readonly string[] s_ToneKeywords =
{
@@ -67,14 +81,7 @@ namespace Coffee.UIEffects
private static readonly string[] s_ColorKeywords =
{
"",
"COLOR_MULTIPLY",
"COLOR_ADDITIVE",
"COLOR_SUBTRACTIVE",
"COLOR_REPLACE",
"COLOR_MULTIPLY_LUMINANCE",
"COLOR_MULTIPLY_ADDITIVE",
"COLOR_HSV_MODIFIER",
"COLOR_CONTRAST"
"COLOR_FILTER"
};
private static readonly string[] s_SamplingKeywords =
@@ -102,19 +109,6 @@ namespace Coffee.UIEffects
"TRANSITION_PATTERN"
};
private static readonly string[] s_TransitionColorKeywords =
{
"",
"TRANSITION_COLOR_MULTIPLY",
"TRANSITION_COLOR_ADDITIVE",
"TRANSITION_COLOR_SUBTRACTIVE",
"TRANSITION_COLOR_REPLACE",
"TRANSITION_COLOR_MULTIPLY_LUMINANCE",
"TRANSITION_COLOR_MULTIPLY_ADDITIVE",
"TRANSITION_COLOR_HSV_MODIFIER",
"TRANSITION_COLOR_CONTRAST"
};
private static readonly string[] s_TargetKeywords =
{
"",
@@ -122,19 +116,6 @@ namespace Coffee.UIEffects
"TARGET_LUMINANCE"
};
private static readonly string[] s_ShadowColorKeywords =
{
"",
"SHADOW_COLOR_MULTIPLY",
"SHADOW_COLOR_ADDITIVE",
"SHADOW_COLOR_SUBTRACTIVE",
"SHADOW_COLOR_REPLACE",
"SHADOW_COLOR_MULTIPLY_LUMINANCE",
"SHADOW_COLOR_MULTIPLY_ADDITIVE",
"SHADOW_COLOR_HSV_MODIFIER",
"SHADOW_COLOR_CONTRAST"
};
private static readonly string[] s_EdgeKeywords =
{
"",
@@ -142,19 +123,6 @@ namespace Coffee.UIEffects
"EDGE_SHINY"
};
private static readonly string[] s_EdgeColorKeywords =
{
"",
"EDGE_COLOR_MULTIPLY",
"EDGE_COLOR_ADDITIVE",
"EDGE_COLOR_SUBTRACTIVE",
"EDGE_COLOR_REPLACE",
"EDGE_COLOR_MULTIPLY_LUMINANCE",
"EDGE_COLOR_MULTIPLY_ADDITIVE",
"EDGE_COLOR_HSV_MODIFIER",
"EDGE_COLOR_CONTRAST"
};
private static readonly string[] s_DetailKeywords =
{
"",
@@ -165,6 +133,15 @@ namespace Coffee.UIEffects
"DETAIL_MULTIPLY_ADDITIVE"
};
private static readonly string[] s_GradationKeywords =
{
"",
"GRADATION_GRADIENT",
"GRADATION_RADIAL",
"GRADATION_COLOR2",
"GRADATION_COLOR4"
};
private static readonly Vector2[][] s_ShadowVectors = new[]
{
Array.Empty<Vector2>(), // None
@@ -178,7 +155,7 @@ namespace Coffee.UIEffects
} // Outline8
};
public static Func<UIVertex, Rect, float, float, UIVertex> onModifyVertex;
public static Func<UIVertex, Rect, UIVertex> onModifyVertex;
public ToneFilter toneFilter = ToneFilter.None;
public float toneIntensity = 1;
public Vector4 toneParams = new Vector4(0, 0, 0, 0);
@@ -239,11 +216,13 @@ namespace Coffee.UIEffects
public PatternArea patternArea;
public GradationMode gradationMode;
public float gradationIntensity;
public GradationColorFilter gradationColorFilter;
public Color gradationColor1;
public Color gradationColor2;
public Color gradationColor3;
public Color gradationColor4;
public Gradient gradationGradient;
public Texture2D gradationTex;
public float gradationOffset;
public float gradationScale;
public float gradationRotation;
@@ -265,10 +244,10 @@ namespace Coffee.UIEffects
|| dstBlendMode != BlendMode.OneMinusSrcAlpha
|| shadowMode != ShadowMode.None
|| edgeMode != EdgeMode.None
|| detailFilter != DetailFilter.None;
|| detailFilter != DetailFilter.None
|| gradationMode != GradationMode.None;
public bool willModifyVertex => willModifyMaterial
|| gradationMode != GradationMode.None;
public bool willModifyVertex => willModifyMaterial;
public void Reset()
{
@@ -276,7 +255,7 @@ namespace Coffee.UIEffects
CopyFrom(s_DefaultContext);
}
public void CopyFrom(UIEffectContext preset)
private void CopyFrom(UIEffectContext preset)
{
toneFilter = preset.toneFilter;
toneIntensity = preset.toneIntensity;
@@ -338,13 +317,15 @@ namespace Coffee.UIEffects
patternArea = preset.patternArea;
gradationMode = preset.gradationMode;
gradationIntensity = preset.gradationIntensity;
gradationColorFilter = preset.gradationColorFilter;
gradationColor1 = preset.gradationColor1;
gradationColor2 = preset.gradationColor2;
gradationColor3 = preset.gradationColor3;
gradationColor4 = preset.gradationColor4;
gradationGradient = preset.gradationGradient;
gradationOffset = preset.gradationOffset;
gradationTex = preset.gradationTex;
gradationScale = preset.gradationScale;
gradationOffset = preset.gradationOffset;
gradationRotation = preset.gradationRotation;
detailFilter = preset.detailFilter;
@@ -373,6 +354,7 @@ namespace Coffee.UIEffects
material.SetFloat(s_ToneIntensity, Mathf.Clamp01(toneIntensity));
material.SetVector(s_ToneParams, toneParams);
material.SetInt(s_ColorFilter, (int)colorFilter);
material.SetColor(s_ColorValue, color);
material.SetFloat(s_ColorIntensity, Mathf.Clamp01(colorIntensity));
material.SetInt(s_ColorGlow, colorGlow ? 1 : 0);
@@ -413,10 +395,12 @@ namespace Coffee.UIEffects
break;
}
material.SetInt(s_ShadowColorFilter, (int)shadowColorFilter);
material.SetColor(s_ShadowColor, shadowColor);
material.SetInt(s_ShadowColorGlow, shadowColorGlow ? 1 : 0);
material.SetFloat(s_EdgeWidth, Mathf.Clamp01(edgeWidth));
material.SetInt(s_EdgeColorFilter, (int)edgeColorFilter);
material.SetColor(s_EdgeColor, edgeColor);
material.SetInt(s_EdgeColorGlow, edgeColorGlow ? 1 : 0);
material.SetFloat(s_EdgeShinyRate, Mathf.Clamp01(edgeShinyRate));
@@ -424,6 +408,16 @@ namespace Coffee.UIEffects
material.SetFloat(s_EdgeShinyAutoPlaySpeed, edgeShinyAutoPlaySpeed);
material.SetInt(s_PatternArea, edgeMode != EdgeMode.None ? (int)patternArea : 0);
material.SetTexture(s_GradationTex, gradationMode != 0 ? gradationTex : null);
material.SetVector(s_GradationTex_ST, GetGradationScaleAndOffset());
material.SetFloat(s_GradationIntensity, gradationIntensity);
material.SetInt(s_GradationColorFilter, (int)gradationColorFilter);
material.SetColor(s_GradationColor1, gradationColor1);
material.SetColor(s_GradationColor2, gradationColor2);
material.SetColor(s_GradationColor3, gradationColor3);
material.SetColor(s_GradationColor4, gradationColor4);
material.SetFloat(s_DetailIntensity, Mathf.Clamp01(detailIntensity));
material.SetVector(s_DetailThreshold, new Vector2(detailThreshold.min, detailThreshold.max));
material.SetTexture(s_DetailTex, detailFilter != 0 ? detailTex : null);
@@ -433,47 +427,39 @@ namespace Coffee.UIEffects
material.SetVector(s_DetailTex_Speed, detailTexSpeed);
SetKeyword(material, s_ToneKeywords, (int)toneFilter);
SetKeyword(material, s_ColorKeywords, (int)colorFilter);
SetKeyword(material, s_ColorKeywords, colorFilter != 0 || shadowMode != 0 ? 1 : 0);
SetKeyword(material, s_SamplingKeywords, (int)samplingFilter);
SetKeyword(material, s_TransitionKeywords, (int)transitionFilter);
switch (transitionFilter)
{
case TransitionFilter.None:
case TransitionFilter.Fade:
case TransitionFilter.Cutoff:
SetKeyword(material, s_TransitionColorKeywords, (int)ColorFilter.None);
break;
default:
SetKeyword(material, s_TransitionColorKeywords, (int)transitionColorFilter);
break;
}
switch (shadowMode)
{
case ShadowMode.None:
SetKeyword(material, s_ShadowColorKeywords, (int)ColorFilter.None);
break;
default:
SetKeyword(material, s_ShadowColorKeywords, (int)shadowColorFilter);
break;
}
SetKeyword(material, s_EdgeKeywords, (int)edgeMode);
SetKeyword(material, s_DetailKeywords, (int)detailFilter);
SetKeyword(material, s_TargetKeywords, (int)targetMode);
switch (edgeMode)
switch (gradationMode)
{
case EdgeMode.None:
SetKeyword(material, s_EdgeColorKeywords, (int)ColorFilter.None);
case GradationMode.None:
SetKeyword(material, s_GradationKeywords, 0);
break;
default:
SetKeyword(material, s_EdgeColorKeywords, (int)edgeColorFilter);
case GradationMode.HorizontalGradient:
case GradationMode.VerticalGradient:
case GradationMode.AngleGradient:
SetKeyword(material, s_GradationKeywords, 1);
break;
case GradationMode.RadialFast:
case GradationMode.RadialDetail:
SetKeyword(material, s_GradationKeywords, 2);
break;
case GradationMode.Horizontal:
case GradationMode.Vertical:
case GradationMode.DiagonalToRightBottom:
case GradationMode.DiagonalToLeftBottom:
case GradationMode.Angle:
SetKeyword(material, s_GradationKeywords, 3);
break;
case GradationMode.Diagonal:
SetKeyword(material, s_GradationKeywords, 4);
break;
}
SetKeyword(material, s_DetailKeywords, (int)detailFilter);
SetKeyword(material, s_TargetKeywords, (int)targetMode);
Profiler.EndSample();
}
@@ -486,6 +472,92 @@ namespace Coffee.UIEffects
material.SetFloat(s_EdgeShinyAutoPlaySpeed, enable ? edgeShinyAutoPlaySpeed : 0);
}
public void UpdateViewMatrix(Material material, RectTransform transitionRoot, Canvas canvas, Flip flip)
{
if (!material) return;
var size = transitionRoot.rect.size;
var scale = new Vector3(1f / size.x, 1f / size.y, 1f);
if (transitionKeepAspectRatio && !Mathf.Approximately(scale.x, scale.y))
{
scale.x = scale.y = Mathf.Min(scale.x, scale.y);
}
if (0 != (flip & Flip.Effect))
{
scale.x = 0 != (flip & Flip.Horizontal) ? -scale.x : scale.x;
scale.y = 0 != (flip & Flip.Vertical) ? -scale.y : scale.y;
}
var pivot = new Vector2(0.5f, 0.5f);
var offset = (transitionRoot.pivot - pivot) * size;
var w2LMat = Matrix4x4.Translate(offset) * transitionRoot.worldToLocalMatrix;
var rootRotation = Quaternion.Euler(0, 0, transitionRotation);
var rootScale = 1f / GetMultiplier(transitionRotation);
material.SetMatrix(s_RootViewMatrix, Matrix4x4.TRS(pivot, rootRotation, scale * rootScale) * w2LMat);
var gradRotation = Quaternion.Euler(0, 0, GetGradationRotation());
var gradScale = 1f / GetMultiplier(GetGradationRotation());
material.SetMatrix(s_GradViewMatrix, Matrix4x4.TRS(pivot, gradRotation, scale * gradScale) * w2LMat);
if (canvas.renderMode == RenderMode.ScreenSpaceOverlay || !canvas.worldCamera)
{
material.SetMatrix(s_CanvasToWorldMatrix, canvas.transform.localToWorldMatrix);
}
else
{
material.SetMatrix(s_CanvasToWorldMatrix, Matrix4x4.identity);
}
}
private Vector4 GetGradationScaleAndOffset()
{
var gScale = 1 / gradationScale;
switch (gradationMode)
{
case GradationMode.HorizontalGradient:
case GradationMode.VerticalGradient:
case GradationMode.AngleGradient:
return new Vector4(gScale, 1, -0.5f * (gScale + 1) - gradationOffset, 0);
case GradationMode.RadialFast:
case GradationMode.RadialDetail:
{
return new Vector4(gScale, 1, gradationOffset, 0);
}
default:
return new Vector4(gScale, 1, gradationOffset * (gScale + 1) / 2 - gScale * 0.5f + 0.5f, 0);
}
}
private float GetGradationRotation()
{
switch (gradationMode)
{
case GradationMode.DiagonalToLeftBottom:
return 135;
case GradationMode.DiagonalToRightBottom:
return 45;
case GradationMode.Vertical:
return 90;
case GradationMode.VerticalGradient:
return -90;
case GradationMode.Angle:
case GradationMode.AngleGradient:
return gradationRotation;
default:
return 0;
}
}
private static float GetMultiplier(float deg)
{
var rad = Mathf.Deg2Rad * deg;
var sin = Mathf.Sin(rad);
var cos = Mathf.Cos(rad);
return Mathf.Max(Mathf.Abs(cos - sin), Mathf.Abs(cos + sin));
}
private static void SetKeyword(Material material, string[] keywords, int index)
{
for (var i = 0; i < keywords.Length; i++)
@@ -520,50 +592,6 @@ namespace Coffee.UIEffects
// Get the rectangle to calculate the normalized position.
vh.GetUIVertexStream(verts);
var bundleSize = isText ? 6 : count;
var rectMatrix = Matrix4x4.identity;
var rot = Matrix4x4.Rotate(Quaternion.Euler(0, 0, transitionRotation));
var v1 = rot.MultiplyPoint3x4(new Vector3(1, 1, 0));
var multiplier = Mathf.Max(Mathf.Abs(v1.x), Mathf.Abs(v1.y));
Rect rect;
if (transitionRoot)
{
rect = transitionRoot.rect;
if (transitionRoot != graphic.transform)
{
rectMatrix = transitionRoot.worldToLocalMatrix
* graphic.transform.localToWorldMatrix;
}
rot *= Matrix4x4.Scale(new Vector3(1 / multiplier, 1 / multiplier, 1))
* rectMatrix;
}
else
{
rect = graphic.rectTransform.rect;
rot *= Matrix4x4.Scale(new Vector3(multiplier, multiplier, 1));
}
var normalizeTex = transitionTex
? transitionTex
: detailTex
? detailTex
: null;
if (transitionKeepAspectRatio && normalizeTex)
{
var center = rect.center;
var aspectRatio = (float)normalizeTex.width / normalizeTex.height;
if (rect.width < rect.height)
{
rect.width = rect.height * aspectRatio;
}
else
{
rect.height = rect.width / aspectRatio;
}
rect.center = center;
}
// Modify vertices for each bundled-quad.
for (var i = 0; i < count; i += bundleSize)
@@ -574,14 +602,19 @@ namespace Coffee.UIEffects
for (var j = 0; j < bundleSize; j++)
{
var vt = verts[i + j];
ModifyVertex(ref vt, vt.position, vt.uv0, uvMask, rect, rot);
if (onModifyVertex != null)
{
vt = onModifyVertex(vt, uvMask);
}
else
{
vt.uv1 = new Vector4(uvMask.xMin, uvMask.yMin, uvMask.xMax, uvMask.yMax);
}
verts[i + j] = vt;
}
}
// Apply gradation.
ApplyGradation(verts, transitionRoot.rect, rectMatrix, canModifyShape);
// Apply flip (with effect).
ApplyFlipWithEffect(verts, flip);
@@ -592,115 +625,6 @@ namespace Coffee.UIEffects
vh.AddUIVertexTriangleStream(verts);
}
private void ApplyGradation(List<UIVertex> verts, Rect rect, Matrix4x4 m, bool canModifyShape)
{
if (gradationMode == GradationMode.None) return;
var a = gradationColor1;
var b = gradationColor2;
var offset = gradationOffset;
var scale = gradationScale;
var grad = gradationGradient;
var rot = gradationRotation;
switch (gradationMode)
{
case GradationMode.Horizontal:
GradientUtil.DoHorizontalGradient(verts, a, b, offset, scale, rect, m);
break;
case GradationMode.Vertical:
GradientUtil.DoVerticalGradient(verts, a, b, offset, scale, rect, m);
break;
case GradationMode.Diagonal:
GradientUtil.DoDiagonal(verts, a, b, gradationColor3, gradationColor4, offset, scale, rect, m);
break;
case GradationMode.DiagonalToRightBottom:
GradientUtil.DoDiagonalGradientToRightBottom(verts, a, b, offset, scale, rect, m);
break;
case GradationMode.DiagonalToLeftBottom:
GradientUtil.DoDiagonalGradientToLeftBottom(verts, a, b, offset, scale, rect, m);
break;
case GradationMode.RadialFast:
GradientUtil.DoRadialGradient(verts, a, b, offset, scale, rect, m, 4);
break;
case GradationMode.RadialDetail:
GradientUtil.DoRadialGradient(verts, a, b, offset, scale, rect, m, 12);
break;
case GradationMode.Angle:
rect = GradientUtil.RotateRectAsNormalized(rect, rot);
m = Matrix4x4.Rotate(Quaternion.Euler(0, 0, rot)) * m;
GradientUtil.DoHorizontalGradient(verts, a, b, offset, scale, rect, m);
break;
case GradationMode.HorizontalGradient:
{
if (_keyTimes == null)
{
_keyTimes = InternalListPool<float>.Rent();
GradientUtil.GetKeyTimes(grad, _keyTimes);
}
if (canModifyShape)
{
var splitTimes = InternalListPool<float>.Rent();
GradientUtil.SplitKeyTimes(_keyTimes, splitTimes, offset, scale);
GradientUtil.DoHorizontalGradient(verts, grad, splitTimes, offset, scale, rect, m);
InternalListPool<float>.Return(ref splitTimes);
}
else
{
GradientUtil.DoHorizontalGradient(verts, grad, offset, scale, rect, m);
}
break;
}
case GradationMode.VerticalGradient:
{
if (_keyTimes == null)
{
_keyTimes = InternalListPool<float>.Rent();
GradientUtil.GetKeyTimes(grad, _keyTimes);
}
if (canModifyShape)
{
var splitTimes = InternalListPool<float>.Rent();
GradientUtil.SplitKeyTimes(_keyTimes, splitTimes, offset, scale);
GradientUtil.DoVerticalGradient(verts, grad, splitTimes, offset, scale, rect, m);
InternalListPool<float>.Return(ref splitTimes);
}
else
{
GradientUtil.DoVerticalGradient(verts, grad, offset, scale, rect, m);
}
break;
}
case GradationMode.AngleGradient:
{
if (_keyTimes == null)
{
_keyTimes = InternalListPool<float>.Rent();
GradientUtil.GetKeyTimes(grad, _keyTimes);
}
rect = GradientUtil.RotateRectAsNormalized(rect, rot);
m = Matrix4x4.Rotate(Quaternion.Euler(0, 0, rot)) * m;
if (canModifyShape)
{
var splitTimes = InternalListPool<float>.Rent();
GradientUtil.SplitKeyTimes(_keyTimes, splitTimes, offset, scale);
GradientUtil.DoAngleGradient(verts, grad, splitTimes, offset, scale, rect, m);
InternalListPool<float>.Return(ref splitTimes);
}
else
{
GradientUtil.DoHorizontalGradient(verts, grad, offset, scale, rect, m);
}
break;
}
}
}
private void ApplyShadow(List<UIVertex> verts, RectTransform transitionRoot, Flip flip)
{
var distance = shadowDistance;
@@ -783,24 +707,5 @@ namespace Coffee.UIEffects
return expandSize;
}
private static void ModifyVertex(ref UIVertex vt, Vector2 pos, Vector2 uv, Rect uvMask,
Rect rect, Matrix4x4 m)
{
pos = m.MultiplyPoint3x4(pos);
var normalizedX = Mathf.InverseLerp(rect.xMin, rect.xMax, pos.x);
var normalizedY = Mathf.InverseLerp(rect.yMin, rect.yMax, pos.y);
if (onModifyVertex != null)
{
vt = onModifyVertex(vt, uvMask, normalizedX, normalizedY);
}
else
{
vt.uv0.z = normalizedX;
vt.uv0.w = normalizedY;
vt.uv1 = new Vector4(uvMask.xMin, uvMask.yMin, uvMask.xMax, uvMask.yMax);
}
}
}
}
@@ -5,6 +5,7 @@ using System.Text.RegularExpressions;
using Coffee.UIEffectInternal;
using UnityEditor;
using UnityEngine;
using UnityEngine.Rendering;
namespace Coffee.UIEffects
{
@@ -82,10 +83,10 @@ namespace Coffee.UIEffects
{
#if UNITY_2023_2_OR_NEWER
const string tmpSupport = "TextMeshPro Support (Unity 6)";
const string version = "v5.6.0 (Unity 6)";
const string version = "v5.7.0 (Unity 6)";
#else
const string tmpSupport = "TextMeshPro Support";
const string version = "v5.6.0";
const string version = "v5.7.0";
#endif
ShaderSampleImporter.RegisterShaderSamples(new[]
{
@@ -97,7 +98,11 @@ namespace Coffee.UIEffects
("Hidden/TextMeshPro/Bitmap (UIEffect)", tmpSupport, version),
("Hidden/TextMeshPro/Mobile/Bitmap (UIEffect)", tmpSupport, version),
("Hidden/TextMeshPro/Distance Field (UIEffect)", tmpSupport, version),
("Hidden/TextMeshPro/Mobile/Distance Field (UIEffect)", tmpSupport, version)
("Hidden/TextMeshPro/Mobile/Distance Field (UIEffect)", tmpSupport, version),
// ShaderGraph Support
("Shader Graphs/UISample (UIEffect)", "ShaderGraph Support (Unity 6 BuiltIn)", "v5.7.0"),
("Shader Graphs/UISampleURP (UIEffect)", "ShaderGraph Support (Unity 6 URP)", "v5.7.0")
});
ShaderSampleImporter.RegisterShaderAliases(new[]
{
@@ -153,6 +158,30 @@ namespace Coffee.UIEffects
c.SetEnablePreviewIfSelected(selection);
}
};
if (!Misc.isBatchOrBuilding)
{
// Enable the 'UIEFFECT_EDITOR' keyword only when drawing in the scene view camera.
RenderPipelineManager.beginCameraRendering += (_, c) => EnableEditorMode(true, c);
RenderPipelineManager.endCameraRendering += (_, c) => EnableEditorMode(false, c);
Camera.onPreRender += c => EnableEditorMode(true, c);
Camera.onPostRender += c => EnableEditorMode(false, c);
void EnableEditorMode(bool begin, Camera cam)
{
if (cam.cameraType == CameraType.SceneView)
{
if (begin)
{
Shader.EnableKeyword("UIEFFECT_EDITOR");
}
else
{
Shader.DisableKeyword("UIEFFECT_EDITOR");
}
}
}
}
}
private static IEnumerable<UIEffectBase> FindAll()
+1 -23
View File
@@ -19,9 +19,6 @@ namespace Coffee.UIEffects
[SerializeField]
protected RectTransform m_CustomRoot = null;
[SerializeField]
protected Flip m_Flip = 0;
private UIEffect _currentTarget;
public UIEffect target
@@ -82,16 +79,7 @@ namespace Coffee.UIEffects
}
}
public override Flip flip
{
get => m_Flip;
set
{
if (m_Flip == value) return;
m_Flip = value;
SetVerticesDirty();
}
}
public override Flip flip => target ? target.flip : 0;
public override float actualSamplingScale => Mathf.Clamp(m_SamplingScale, 0.01f, 100);
@@ -172,16 +160,6 @@ namespace Coffee.UIEffects
}
}
protected override void OnBeforeCanvasRebuild()
{
base.OnBeforeCanvasRebuild();
if (useTargetTransform && isTargetInScene && CheckTransformChangedWith(target.transform))
{
SetVerticesDirty();
}
}
internal override void UpdateContext(UIEffectContext c)
{
if (target && !isTargetInScene)
@@ -1,394 +0,0 @@
using System.Collections.Generic;
using UnityEngine;
namespace Coffee.UIEffects
{
internal static class GradientUtil
{
public static void DoHorizontalGradient(List<UIVertex> verts, Color a, Color b, float offset, float scale,
Rect rect, Matrix4x4 m)
{
for (var i = 0; i < verts.Count; i++)
{
var vt = verts[i];
var x = Mathf.InverseLerp(rect.xMin, rect.xMax, m.MultiplyPoint3x4(vt.position).x);
var t = Mathf.Clamp01(offset + (x - 0.5f) * scale + 0.5f);
vt.color *= Color.Lerp(a, b, t);
verts[i] = vt;
}
}
public static void DoHorizontalGradient(List<UIVertex> verts, Gradient gradient, List<float> splitTimes,
float offset, float scale, Rect rect, Matrix4x4 m)
{
var count = verts.Count;
for (var i = 0; i < verts.Count; i += 6)
{
UIVertexUtil.GetQuad(verts, i, out var lb, out var lt, out var rt, out var rb);
if (i + 5 < count)
{
UIVertexUtil.SplitHorizontalFast(verts, splitTimes, lb, lt, ref rb, ref rt, rect, m);
}
lb.color *= Evaluate(gradient, rect, m.MultiplyPoint3x4(lb.position).x + 0.0005f, offset, scale);
lt.color *= Evaluate(gradient, rect, m.MultiplyPoint3x4(lt.position).x + 0.0005f, offset, scale);
rt.color *= Evaluate(gradient, rect, m.MultiplyPoint3x4(rt.position).x - 0.0005f, offset, scale);
rb.color *= Evaluate(gradient, rect, m.MultiplyPoint3x4(rb.position).x - 0.0005f, offset, scale);
UIVertexUtil.SetQuad(verts, i, lb, lt, rt, rb);
}
return;
static Color Evaluate(Gradient gradient, Rect rect, float t, float offset, float scale)
{
t = Mathf.InverseLerp(rect.xMin, rect.xMax, t); // 0-1
t = Mathf.Repeat((t - offset * scale - (1 - scale) / 2) / scale, 1); // Revert
return gradient.Evaluate(t);
}
}
public static void DoHorizontalGradientFixed(List<UIVertex> verts, Gradient gradient, float offset, float scale,
Rect rect, Matrix4x4 m)
{
var count = verts.Count;
for (var i = 0; i < count; i += 3)
{
var vt0 = verts[i + 0];
var vt1 = verts[i + 1];
var vt2 = verts[i + 2];
var center = m.MultiplyPoint3x4((vt0.position + vt1.position + vt2.position) / 3).x;
vt0.color *= Evaluate(gradient, rect, center, offset, scale);
vt1.color *= Evaluate(gradient, rect, center, offset, scale);
vt2.color *= Evaluate(gradient, rect, center, offset, scale);
verts[i + 0] = vt0;
verts[i + 1] = vt1;
verts[i + 2] = vt2;
}
return;
static Color Evaluate(Gradient gradient, Rect rect, float t, float offset, float scale)
{
t = Mathf.InverseLerp(rect.xMin, rect.xMax, t); // 0-1
t = Mathf.Repeat((t - offset * scale - (1 - scale) / 2) / scale, 1); // Revert
return gradient.Evaluate(t);
}
}
public static void DoHorizontalGradient(List<UIVertex> verts, Gradient gradient, float offset, float scale,
Rect rect, Matrix4x4 m)
{
var count = verts.Count;
for (var i = 0; i < count; i++)
{
var vt = verts[i];
vt.color *= Evaluate(gradient, rect, m.MultiplyPoint3x4(vt.position).x, offset, scale);
verts[i] = vt;
}
return;
static Color Evaluate(Gradient gradient, Rect rect, float t, float offset, float scale)
{
t = Mathf.InverseLerp(rect.xMin, rect.xMax, t); // 0-1
t = Mathf.Repeat((t - offset * scale - (1 - scale) / 2) / scale, 1); // Revert
return gradient.Evaluate(t);
}
}
public static void DoVerticalGradient(List<UIVertex> verts, Color a, Color b, float offset, float scale,
Rect rect, Matrix4x4 m)
{
for (var i = 0; i < verts.Count; i++)
{
var vt = verts[i];
var y = Mathf.InverseLerp(rect.yMin, rect.yMax, m.MultiplyPoint3x4(vt.position).y);
var t = Mathf.Clamp01(offset + (0.5f - y) * scale + 0.5f);
vt.color *= Color.Lerp(a, b, t);
verts[i] = vt;
}
}
public static void DoVerticalGradient(List<UIVertex> verts, Gradient gradient, List<float> splitTimes,
float offset, float scale, Rect rect, Matrix4x4 m)
{
var count = verts.Count;
for (var i = 0; i < verts.Count; i += 6)
{
UIVertexUtil.GetQuad(verts, i, out var lb, out var lt, out var rt, out var rb);
if (i + 5 < count)
{
UIVertexUtil.SplitVerticalFast(verts, splitTimes, lb, ref lt, rb, ref rt, rect, m);
}
lb.color *= Evaluate(gradient, rect, m.MultiplyPoint3x4(lb.position).y + 0.0005f, offset, scale);
lt.color *= Evaluate(gradient, rect, m.MultiplyPoint3x4(lt.position).y - 0.0005f, offset, scale);
rt.color *= Evaluate(gradient, rect, m.MultiplyPoint3x4(rt.position).y - 0.0005f, offset, scale);
rb.color *= Evaluate(gradient, rect, m.MultiplyPoint3x4(rb.position).y + 0.0005f, offset, scale);
UIVertexUtil.SetQuad(verts, i, lb, lt, rt, rb);
}
return;
static Color Evaluate(Gradient gradient, Rect rect, float t, float offset, float scale)
{
t = Mathf.InverseLerp(rect.yMin, rect.yMax, t); // 0-1
t = Mathf.Repeat((t - offset * scale - (1 - scale) / 2) / scale, 1); // Revert
return gradient.Evaluate(t);
}
}
public static void DoVerticalGradient(List<UIVertex> verts, Gradient gradient, float offset, float scale,
Rect rect, Matrix4x4 m)
{
var count = verts.Count;
for (var i = 0; i < count; i++)
{
var vt = verts[i];
vt.color *= Evaluate(gradient, rect, m.MultiplyPoint3x4(vt.position).y, offset, scale);
verts[i] = vt;
}
return;
static Color Evaluate(Gradient gradient, Rect rect, float t, float offset, float scale)
{
t = Mathf.InverseLerp(rect.yMin, rect.yMax, t); // 0-1
t = Mathf.Repeat((t - offset * scale - (1 - scale) / 2) / scale, 1); // Revert
return gradient.Evaluate(t);
}
}
public static void DoDiagonal(List<UIVertex> verts, Color a, Color b, Color c, Color d, float offset,
float scale, Rect rect, Matrix4x4 m)
{
for (var i = 0; i < verts.Count; i++)
{
var vt = verts[i];
var x = Mathf.InverseLerp(rect.xMin, rect.xMax, m.MultiplyPoint3x4(vt.position).x);
var y = Mathf.InverseLerp(rect.yMin, rect.yMax, m.MultiplyPoint3x4(vt.position).y);
var tx = Mathf.Clamp01(offset + (x - 0.5f) * scale + 0.5f);
var ty = Mathf.Clamp01(offset + (0.5f - y) * scale + 0.5f);
vt.color *= Color.Lerp(Color.Lerp(a, b, tx), Color.Lerp(c, d, tx), ty);
verts[i] = vt;
}
}
public static void DoDiagonalGradientToRightBottom(List<UIVertex> verts, Color a, Color b, float offset,
float scale, Rect rect, Matrix4x4 m)
{
for (var i = 0; i < verts.Count; i++)
{
var vt = verts[i];
var x = Mathf.InverseLerp(rect.xMin, rect.xMax, m.MultiplyPoint3x4(vt.position).x);
var y = Mathf.InverseLerp(rect.yMin, rect.yMax, m.MultiplyPoint3x4(vt.position).y);
var t = Mathf.Clamp01(0.5f * scale + 0.5f + offset - (1 - x + y) * scale / 2);
vt.color *= Color.Lerp(a, b, t);
verts[i] = vt;
}
}
public static void DoDiagonalGradientToLeftBottom(List<UIVertex> verts, Color a, Color b, float offset,
float scale, Rect rect, Matrix4x4 m)
{
for (var i = 0; i < verts.Count; i++)
{
var vt = verts[i];
var x = Mathf.InverseLerp(rect.xMin, rect.xMax, m.MultiplyPoint3x4(vt.position).x);
var y = Mathf.InverseLerp(rect.yMin, rect.yMax, m.MultiplyPoint3x4(vt.position).y);
var t = Mathf.Clamp01(0.5f * scale + 0.5f + offset - (x + y) * scale / 2);
vt.color *= Color.Lerp(a, b, t);
verts[i] = vt;
}
}
public static void DoRadialGradient(List<UIVertex> verts, Color a, Color b, float offset, float scale,
Rect rect, Matrix4x4 m, int divide)
{
var count = verts.Count;
for (var i = 0; i < count; i += 6)
{
UIVertexUtil.GetQuad(verts, i, out var lb, out var lt, out var rt, out var rb);
for (var j = 1; j < divide; j++)
{
var min = Mathf.InverseLerp(rect.xMin, rect.xMax, m.MultiplyPoint3x4(lb.position).x);
var max = Mathf.InverseLerp(rect.xMin, rect.xMax, m.MultiplyPoint3x4(rt.position).x);
var time = 1f - (float)j / divide;
if (time <= min || max <= time) continue;
UIVertexUtil.SplitHorizontal(verts, lb, lt, ref rb, ref rt, Mathf.InverseLerp(min, max, time));
}
UIVertexUtil.SetQuad(verts, i, lb, lt, rt, rb);
}
count = verts.Count;
for (var i = 0; i < verts.Count; i += 6)
{
UIVertexUtil.GetQuad(verts, i, out var lb, out var lt, out var rt, out var rb);
if (i + 5 < count)
{
for (var j = 1; j < divide; j++)
{
var min = Mathf.InverseLerp(rect.yMin, rect.yMax, m.MultiplyPoint3x4(lb.position).y);
var max = Mathf.InverseLerp(rect.yMin, rect.yMax, m.MultiplyPoint3x4(rt.position).y);
var time = 1f - (float)j / divide;
if (time <= min || max <= time) continue;
UIVertexUtil.SplitVertical(verts, lb, ref lt, rb, ref rt, Mathf.InverseLerp(min, max, time));
}
}
lb.color *= DoGradient(lb, a, b, rect, m, offset, scale);
lt.color *= DoGradient(lt, a, b, rect, m, offset, scale);
rt.color *= DoGradient(rt, a, b, rect, m, offset, scale);
rb.color *= DoGradient(rb, a, b, rect, m, offset, scale);
UIVertexUtil.SetQuad(verts, i, lb, lt, rt, rb);
}
return;
static Color DoGradient(UIVertex vt, Color a, Color b, Rect rect, Matrix4x4 m, float offset, float scale)
{
var x = Mathf.InverseLerp(rect.xMin, rect.xMax, m.MultiplyPoint3x4(vt.position).x) - 0.5f;
var y = Mathf.InverseLerp(rect.yMin, rect.yMax, m.MultiplyPoint3x4(vt.position).y) - 0.5f;
var t = Mathf.Clamp01(offset + Mathf.Sqrt(x * x + y * y) * 2 * scale);
return Color.Lerp(a, b, t);
}
}
public static void DoAngleGradient(List<UIVertex> verts, Gradient gradient, List<float> splitTimes,
float offset, float scale, Rect rect, Matrix4x4 m)
{
UIVertexUtil.SplitAngle(verts, splitTimes, rect, m);
if (gradient.mode == GradientMode.Fixed)
{
DoHorizontalGradientFixed(verts, gradient, offset, scale, rect, m);
}
else
{
DoHorizontalGradient(verts, gradient, offset, scale, rect, m);
}
}
public static void GetKeyTimes(Gradient gradient, List<float> results)
{
results.Clear();
var colors = gradient.colorKeys;
for (var i = 0; i < colors.Length; i++)
{
AddKeyTime(results, colors[i].time);
}
var alphas = gradient.alphaKeys;
for (var i = 0; i < alphas.Length; i++)
{
AddKeyTime(results, alphas[i].time);
}
AddKeyTime(results, 0);
AddKeyTime(results, 1);
results.Sort((a, b) => b.CompareTo(a));
return;
static void AddKeyTime(List<float> results, float time)
{
if (!Contains(results, time))
{
results.Add(time);
}
}
static bool Contains(List<float> list, float v)
{
for (var i = 0; i < list.Count; i++)
{
if (Mathf.Abs(list[i] - v) < 0.001f) return true;
}
return false;
}
}
public static void SplitKeyTimes(List<float> keyTimes, List<float> results, float offset, float scale)
{
results.Clear();
for (var i = 0; i < keyTimes.Count; i++)
{
AddSplitTime(results, keyTimes[i], offset, scale);
}
results.Sort((a, b) => b.CompareTo(a));
return;
static void AddSplitTime(List<float> results, float time, float offset, float scale)
{
time = time * scale + offset * scale + (1 - scale) / 2;
while (0 < time)
{
time -= scale;
}
while (time <= 1f)
{
if (0 <= time && !Contains(results, time))
{
results.Add(time);
}
time += scale;
}
}
static bool Contains(List<float> list, float v)
{
for (var i = 0; i < list.Count; i++)
{
if (Mathf.Abs(list[i] - v) < 0.001f) return true;
}
return false;
}
}
public static Rect RotateRectAsNormalized(Rect rect, float rot)
{
var rad = -rot * Mathf.Deg2Rad;
var cos = Mathf.Cos(rad);
var sin = Mathf.Sin(rad);
var dir = new Vector2(cos, sin);
var center = rect.center;
if (Mathf.Abs(dir.x) < 0.0001f)
{
rect.width = rect.height;
}
else if (Mathf.Abs(dir.y) < 0.0001f)
{
rect.height = rect.width;
}
else
{
var d0 = GetPointToLineDistance(new Vector2(rect.xMin, rect.yMax), center, dir, out var p0);
var d1 = GetPointToLineDistance(new Vector2(rect.xMin, rect.yMin), center, dir, out var p1);
var closest = d0 < d1 ? p0 : p1;
rect.width = rect.height = Vector2.Distance(center, closest) * 2;
}
rect.center = new Vector2(Vector2.Dot(center, dir), 0);
return rect;
}
private static float GetPointToLineDistance(Vector2 point, Vector2 origin, Vector2 dir, out Vector2 closest)
{
var dirNormalized = dir.normalized;
var time = Vector2.Dot(point - origin, dirNormalized);
closest = origin + time * dirNormalized;
return Vector2.Distance(point, closest);
}
}
}
@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 23cc1f211cd264050a641c01c4a6d77a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -83,16 +83,13 @@ namespace Coffee.UIEffects
private static readonly Func<UIVertex, UIVertex> s_OnMarkAsShadow =
vt =>
{
vt.uv0.z -= 8;
vt.uv0.w -= 8;
vt.uv1.x -= 2;
return vt;
};
private static readonly Func<UIVertex, Rect, float, float, UIVertex> s_OnModifyVertex =
(vt, uvMask, normalizedX, normalizedY) =>
private static readonly Func<UIVertex, Rect, UIVertex> s_OnModifyVertex =
(vt, uvMask) =>
{
vt.uv0.z = normalizedX;
vt.uv0.w = normalizedY;
vt.uv1 = new Vector4(uvMask.xMin, uvMask.yMin, uvMask.xMax, uvMask.yMax);
return vt;
};
+3 -6
View File
@@ -94,16 +94,13 @@ namespace Coffee.UIEffects
private static readonly Func<UIVertex, UIVertex> s_OnMarkAsShadow =
vt =>
{
vt.uv1.z -= 8;
vt.uv1.w -= 8;
vt.uv2.x -= 2;
return vt;
};
private static readonly Func<UIVertex, Rect, float, float, UIVertex> s_OnModifyVertex =
(vt, uvMask, normalizedX, normalizedY) =>
private static readonly Func<UIVertex, Rect, UIVertex> s_OnModifyVertex =
(vt, uvMask) =>
{
vt.uv1.z = normalizedX;
vt.uv1.w = normalizedY;
vt.uv2 = new Vector4(uvMask.xMin, uvMask.yMin, uvMask.xMax, uvMask.yMax);
return vt;
};
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using Coffee.UIEffectInternal;
using UnityEngine;
using UnityEngine.UI;
@@ -160,175 +159,5 @@ namespace Coffee.UIEffects
if (max.y < value.y) max.y = value.y; // Top
}
}
public static void GetQuad(List<UIVertex> verts, int i, out UIVertex lb, out UIVertex lt, out UIVertex rt,
out UIVertex rb)
{
lb = verts[i];
lt = verts[i + 1];
rt = verts[i + 2];
rb = verts[i + 4];
}
public static void SetQuad(List<UIVertex> verts, int i, UIVertex lb, UIVertex lt, UIVertex rt, UIVertex rb)
{
verts[i] = verts[i + 5] = lb;
verts[i + 1] = lt;
verts[i + 2] = verts[i + 3] = rt;
verts[i + 4] = rb;
}
public static void SplitHorizontalFast(List<UIVertex> verts, List<float> times, UIVertex lb, UIVertex lt,
ref UIVertex rb, ref UIVertex rt, Rect rect, Matrix4x4 m)
{
if (times == null || times.Count == 0) return;
var min = Mathf.InverseLerp(rect.xMin, rect.xMax, m.MultiplyPoint3x4(lb.position).x);
for (var i = 0; i < times.Count; i++)
{
var time = times[i];
if (time <= 0 || 1 <= time) continue;
var max = Mathf.InverseLerp(rect.xMin, rect.xMax, m.MultiplyPoint3x4(rt.position).x);
if (time <= min || max <= time) continue;
SplitHorizontal(verts, lb, lt, ref rb, ref rt, Mathf.InverseLerp(min, max, time));
}
}
public static void SplitHorizontal(List<UIVertex> verts, UIVertex lb, UIVertex lt, ref UIVertex rb,
ref UIVertex rt, float time)
{
var mb = VertexLerp(lb, rb, time);
var mt = VertexLerp(lt, rt, time);
verts.Add(mb);
verts.Add(mt);
verts.Add(rt);
verts.Add(rt);
verts.Add(rb);
verts.Add(mb);
rt = mt;
rb = mb;
}
public static void SplitVerticalFast(List<UIVertex> verts, List<float> times, UIVertex lb, ref UIVertex lt,
UIVertex rb, ref UIVertex rt, Rect rect, Matrix4x4 m)
{
if (times == null || times.Count == 0) return;
var min = Mathf.InverseLerp(rect.yMin, rect.yMax, m.MultiplyPoint3x4(lb.position).y);
for (var i = 0; i < times.Count; i++)
{
var time = times[i];
var max = Mathf.InverseLerp(rect.yMin, rect.yMax, m.MultiplyPoint3x4(rt.position).y);
if (time <= min || max <= time) continue;
SplitVertical(verts, lb, ref lt, rb, ref rt, Mathf.InverseLerp(min, max, time));
}
}
public static void SplitVertical(List<UIVertex> verts, UIVertex lb, ref UIVertex lt, UIVertex rb,
ref UIVertex rt, float time)
{
var lm = VertexLerp(lb, lt, time);
var rm = VertexLerp(rb, rt, time);
verts.Add(lm);
verts.Add(lt);
verts.Add(rt);
verts.Add(rt);
verts.Add(rm);
verts.Add(lm);
lt = lm;
rt = rm;
}
public static void SplitAngle(List<UIVertex> verts, List<float> times, Rect rect, Matrix4x4 m)
{
if (times == null || times.Count == 0) return;
for (var i = 0; i < times.Count; i++)
{
var x = Mathf.Lerp(rect.xMin, rect.xMax, times[i]);
Split(verts, new Vector2(x, 0), new Vector2(0, 1), m);
}
return;
static void Split(List<UIVertex> verts, Vector2 p, Vector2 dir, Matrix4x4 m)
{
// Each triangle
var intersections = InternalListPool<UIVertex>.Rent();
var count = verts.Count;
for (var i = 0; i < count; i += 3)
{
intersections.Clear();
var n = -1;
// Each edge
for (var j = 0; j < 3; j++)
{
var start = verts[i + j];
var end = verts[i + (j + 1) % 3];
if (DoesIntersect(start, end, p, dir, m, out var intersection))
{
intersections.Add(intersection);
}
else
{
n = j;
}
}
if (intersections.Count == 2)
{
var vt0 = verts[i + (n + 2) % 3];
var vt1 = verts[i + (n + 0) % 3];
var vt2 = verts[i + (n + 1) % 3];
var it0 = intersections[0];
var it1 = intersections[1];
var it2 = intersections[(n + 1) % 2];
verts[i + 0] = vt0;
verts[i + 1] = it0;
verts[i + 2] = it1;
verts.Add(it2);
verts.Add(vt1);
verts.Add(vt2);
verts.Add(vt2);
verts.Add(it0);
verts.Add(it1);
}
}
InternalListPool<UIVertex>.Return(ref intersections);
}
static bool DoesIntersect(UIVertex start, UIVertex end, Vector2 p, Vector2 dir, Matrix4x4 m,
out UIVertex intersection)
{
intersection = default;
var startPosition = (Vector2)m.MultiplyPoint3x4(start.position);
var endPosition = (Vector2)m.MultiplyPoint3x4(end.position);
var segDir = endPosition - startPosition;
var cross = Vector3.Cross(segDir, dir);
// Parallel.
if (cross.magnitude < Mathf.Epsilon)
{
return false; // 線と線分が平行
}
var diff = p - startPosition;
var determinant = Vector3.Dot(cross, cross);
var t = Vector3.Dot(Vector3.Cross(diff, dir), cross) / determinant;
if (0 <= t && t <= 1)
{
intersection = VertexLerp(start, end, t);
return true;
}
return false;
}
}
}
}
@@ -0,0 +1,167 @@
using System;
using System.Linq;
using System.Reflection;
using UnityEditor.ShaderGraph;
using UnityEngine;
using BlendMode = UnityEngine.Rendering.BlendMode;
namespace UnityEditor.Rendering.BuiltIn.ShaderGraph
{
internal class BuiltInUIEffectSubTarget : BuiltInCanvasSubTarget
{
// UIEffectForShaderGraph.hlsl
internal static string s_UIEffectHlsl => AssetDatabase.GUIDToAssetPath("5109b2ad9b8be459592190a5678464e3");
public BuiltInUIEffectSubTarget() { displayName = "Canvas (UIEffect)"; }
[MenuItem("Assets/Create/Shader Graph/BuiltIn/Canvas Shader Graph (UIEffect)", priority = 1000)]
private static void CreateUnlitGraph()
{
var target = (BuiltInTarget)Activator.CreateInstance(typeof(BuiltInTarget));
target.TrySetActiveSubTarget(typeof(BuiltInUIEffectSubTarget));
target.CreateGraphAsset();
}
protected override IncludeCollection postgraphIncludes => base.postgraphIncludes
.Add(s_UIEffectHlsl, IncludeLocation.Postgraph); // Include UIEffectForShaderGraph.hlsl on postgraph
/// <summary>
/// Modify pass descriptor for UIEffect.
/// </summary>
public static PassDescriptor ModifyUIPassDescriptor(PassDescriptor descriptor)
{
descriptor.keywords
.AddKeywordForUIEffect("TONE", "s_ToneKeywords") // add tone keywords
.AddKeywordForUIEffect("COLOR_FILTER") // add color filter keywords
.AddKeywordForUIEffect("SAMPLING", "s_SamplingKeywords") // add sampling keywords
.AddKeywordForUIEffect("TRANSITION", "s_TransitionKeywords") // add transition keywords
.AddKeywordForUIEffect("EDGE", "s_EdgeKeywords") // add edge keywords
.AddKeywordForUIEffect("DETAIL", "s_DetailKeywords") // add detail keywords
.AddKeywordForUIEffect("TARGET", "s_TargetKeywords") // add target keywords
.AddKeywordForUIEffect("GRADATION", "s_GradationKeywords") // add gradation keywords
.AddKeywordForUIEffect("UIEFFECT_EDITOR", KeywordScope.Global) // add UIEffect editor keywords
.AddKeywordForUIEffect("SOFTMASK_EDITOR", KeywordScope.Global) // add softmask editor keywords
.AddKeywordForUIEffect("SOFTMASKABLE"); // add softmaskable keywords
descriptor.requiredFields
.Add(StructFields.Varyings.texCoord2); // add texCoord2 for UIEffect (uvMask)
descriptor.renderStates = descriptor.renderStates
.RemoveIf(x => x.descriptor.type == RenderStateType.Blend) // remove default blend state
.Add(RenderState.Blend("Blend [_SrcBlend] [_DstBlend]")); // add custom blend state
descriptor.pragmas = descriptor.pragmas
.RemoveIf(x =>
x.value.Contains(" vertex ") || x.value.Contains(" fragment ")) // remove default vertex/fragment
.Add(Pragma.Vertex("vert_override")) // add custom vertex function
.Add(Pragma.Fragment("frag_override")); // add custom fragment function
return descriptor;
}
/// <summary>
/// Modify shader properties for UIEffect.
/// </summary>
public static void ModifyShaderProperties(PropertyCollector collector)
{
collector.AddFloatProperty("_SrcBlend", (int)BlendMode.One);
collector.AddFloatProperty("_DstBlend", (int)BlendMode.OneMinusSrcAlpha);
}
public override PassDescriptor GenerateUIPassDescriptor(bool isSRP)
{
return ModifyUIPassDescriptor(base.GenerateUIPassDescriptor(isSRP));
}
public override void CollectShaderProperties(PropertyCollector collector, GenerationMode generationMode)
{
base.CollectShaderProperties(collector, generationMode);
ModifyShaderProperties(collector);
}
}
internal static class ShaderGraphExtensions
{
public static RenderStateCollection RemoveIf(this RenderStateCollection self,
Predicate<RenderStateCollection.Item> predicate)
{
var result = new RenderStateCollection();
foreach (var item in self.Where(x => !predicate(x)))
{
result.Add(item.descriptor, item.fieldConditions);
}
return result;
}
public static PragmaCollection RemoveIf(this PragmaCollection self,
Predicate<PragmaCollection.Item> predicate)
{
var result = new PragmaCollection();
foreach (var item in self.Where(x => !predicate(x)))
{
result.Add(item.descriptor, item.fieldConditions);
}
return result;
}
/// <summary>
/// Creates a boolean type keyword descriptor.
/// </summary>
public static KeywordCollection AddKeywordForUIEffect(this KeywordCollection self,
string name, KeywordScope scope = KeywordScope.Local)
{
return self.Add(new KeywordDescriptor()
{
displayName = name,
referenceName = name,
type = KeywordType.Boolean,
definition = KeywordDefinition.ShaderFeature,
stages = KeywordShaderStage.Fragment,
scope = scope
});
}
/// <summary>
/// Creates an enum type keyword descriptor based on the fields of the UIEffectContext class.
/// </summary>
public static KeywordCollection AddKeywordForUIEffect(this KeywordCollection self,
string name, string fieldName, KeywordScope scope = KeywordScope.Local)
{
var prefix = name + "_";
var keywords = Type.GetType("Coffee.UIEffects.UIEffectContext, Coffee.UIEffect")
.GetField(fieldName, BindingFlags.Static | BindingFlags.NonPublic)
.GetValue(null) as string[];
return self.Add(new KeywordDescriptor()
{
displayName = name,
referenceName = name,
type = KeywordType.Enum,
definition = KeywordDefinition.ShaderFeature,
stages = KeywordShaderStage.Fragment,
scope = scope,
entries = keywords
.Select(x => x.Replace(prefix, ""))
.Select(x => new KeywordEntry(x, x))
.ToArray()
});
}
public static void CreateGraphAsset(this Target self)
{
var name = $"New Shader Graph (UIEffect).{ShaderGraphImporter.Extension}";
var graphItem = ScriptableObject.CreateInstance<NewGraphAction>();
graphItem.targets = new[] { self };
graphItem.blocks = new[]
{
BlockFields.SurfaceDescription.BaseColor,
BlockFields.SurfaceDescription.Emission,
BlockFields.SurfaceDescription.Alpha,
BlockFields.SurfaceDescription.AlphaClipThreshold
};
ProjectWindowUtil.StartNameEditingIfProjectWindowExists(0, graphItem, name, null, null);
}
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 16d72000cb574468dbfa703ce763ab81
@@ -0,0 +1,71 @@
// ==== UIEFFECT START ====
SurfaceDescriptionInputs _fragInput;
half4 uieffect_frag(float2 uv)
{
float2 prevUv = _fragInput.uv0.xy;
_fragInput.uv0.xy = uv;
SurfaceDescription surfaceDescription = SurfaceDescriptionFunction(_fragInput);
_fragInput.uv0.xy = prevUv;
half alpha = surfaceDescription.Alpha;
return half4(surfaceDescription.BaseColor * alpha + surfaceDescription.Emission, alpha);
}
#include "Packages/com.coffee.ui-effect/Shaders/UIEffect.cginc"
// ==== UIEFFECT END ====
PackedVaryings vert_override(Attributes input)
{
Varyings output = BuildVaryings(input);
output.texCoord2 = input.uv1;
PackedVaryings packedOutput = PackVaryings(output);
return packedOutput;
}
half4 frag_override(PackedVaryings packedInput) : SV_TARGET
{
Varyings unpacked = UnpackVaryings(packedInput);
UNITY_SETUP_INSTANCE_ID(unpacked);
UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(unpacked);
SurfaceDescriptionInputs surfaceDescriptionInputs = BuildSurfaceDescriptionInputs(unpacked);
SurfaceDescription surfaceDescription = SurfaceDescriptionFunction(surfaceDescriptionInputs);
_fragInput = surfaceDescriptionInputs;
const half4 origin = uieffect_frag(_fragInput.uv0.xy);
half4 color = uieffect(origin, _fragInput.uv0.xy, unpacked.texCoord2, float4(unpacked.positionWS, 1));
//Round up the alpha color coming from the interpolator (to 1.0/256.0 steps)
//The incoming alpha could have numerical instability, which makes it very sensible to
//HDR color transparency blend, when it blends with the world's texture.
const half alphaPrecision = half(0xff);
const half invAlphaPrecision = half(1.0/alphaPrecision);
unpacked.color.a = round(unpacked.color.a * alphaPrecision)*invAlphaPrecision;
#if !defined(HAVE_VFX_MODIFICATION) && !defined(_DISABLE_COLOR_TINT)
color.rgb *= unpacked.color.rgb;
color *= unpacked.color.a;
#endif
#ifdef UNITY_UI_CLIP_RECT
//mask = Uv2
half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(unpacked.texCoord1.xy)) * unpacked.texCoord1.zw);
color *= m.x * m.y;
#endif
// ==== SOFTMASKABLE START ====
#if SOFTMASKABLE
color *= SoftMask(unpacked.positionCS, unpacked.positionWS, color.a);
#endif
// ==== SOFTMASKABLE END ====
#if defined(_ALPHATEST_ON) || defined(_BUILTIN_ALPHATEST_ON)
clip(color.a - surfaceDescription.Alpha);
#endif
#if UNITY_UI_ALPHACLIP
clip(color.a - 0.001);
#endif
return color;
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 5109b2ad9b8be459592190a5678464e3
ShaderIncludeImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

@@ -0,0 +1,169 @@
fileFormatVersion: 2
guid: e4d5ba59106dc45b38c6ccdbff19e895
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
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
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 0
aniso: 1
mipBias: 0
wrapU: 2
wrapV: 2
wrapW: 2
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
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: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 256
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: iOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: c31b8bd7d68a64b23b8c505bd7871154
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,557 @@
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "59df17a6c3174a02826ef2b2f0b22bba",
"m_Properties": [
{
"m_Id": "0edd83ed2c624ec1806581cf049b4102"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "8c8215c5d9714514b592e36aad9c148a"
}
],
"m_Nodes": [
{
"m_Id": "f3b826553df24fdb9d14e4f1ef5504c8"
},
{
"m_Id": "d326ef5f90af4c7996e7e0c915e57983"
},
{
"m_Id": "7952abbfa5764abbae262f142a3a064b"
},
{
"m_Id": "867db961355a4c1ea898b69d9e6549b0"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "7952abbfa5764abbae262f142a3a064b"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "f3b826553df24fdb9d14e4f1ef5504c8"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "7952abbfa5764abbae262f142a3a064b"
},
"m_SlotId": 7
},
"m_InputSlot": {
"m_Node": {
"m_Id": "d326ef5f90af4c7996e7e0c915e57983"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "867db961355a4c1ea898b69d9e6549b0"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "7952abbfa5764abbae262f142a3a064b"
},
"m_SlotId": 1
}
}
],
"m_VertexContext": {
"m_Position": {
"x": -0.000025510787963867188,
"y": 82.99999237060547
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": 0.0,
"y": 200.0
},
"m_Blocks": [
{
"m_Id": "f3b826553df24fdb9d14e4f1ef5504c8"
},
{
"m_Id": "d326ef5f90af4c7996e7e0c915e57983"
}
]
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "Shader Graphs",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": ""
},
"m_SubDatas": [],
"m_ActiveTargets": [
{
"m_Id": "1a195cdf4382437789224a92fedff5b1"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty",
"m_ObjectId": "0edd83ed2c624ec1806581cf049b4102",
"m_Guid": {
"m_GuidSerialized": "732edd04-59f7-47df-9432-7fe06165e57a"
},
"m_Name": "_MainTex",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "_MainTex",
"m_DefaultReferenceName": "_MainTex",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"m_SerializedTexture": "",
"m_Guid": ""
},
"isMainTexture": false,
"useTilingAndOffset": false,
"m_Modifiable": true,
"m_DefaultType": 0
}
{
"m_SGVersion": 2,
"m_Type": "UnityEditor.Rendering.BuiltIn.ShaderGraph.BuiltInTarget",
"m_ObjectId": "1a195cdf4382437789224a92fedff5b1",
"m_Datas": [
{
"m_Id": "eeebd3b9f4ac47059504bc3a1119b400"
}
],
"m_ActiveSubTarget": {
"m_Id": "7ead57ce3c34462b9abc55f1c840545b"
},
"m_AllowMaterialOverride": false,
"m_SurfaceType": 0,
"m_ZWriteControl": 0,
"m_ZTestMode": 4,
"m_AlphaMode": 0,
"m_RenderFace": 2,
"m_AlphaClip": true,
"m_CustomEditorGUI": ""
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot",
"m_ObjectId": "5b370c6775e1485c8289267723a78b11",
"m_Id": 0,
"m_DisplayName": "_MainTex",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_BareResource": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "68a8b951fcb8489891abfbfcc34a120e",
"m_Id": 4,
"m_DisplayName": "R",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "R",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot",
"m_ObjectId": "7639b4a17a334399a9f421cd50b7cfdb",
"m_Id": 2,
"m_DisplayName": "UV",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "UV",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": [],
"m_Channel": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "78db00f49dfe4fa2b4369e32ebf28ec5",
"m_Id": 0,
"m_DisplayName": "RGBA",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "RGBA",
"m_StageCapability": 2,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode",
"m_ObjectId": "7952abbfa5764abbae262f142a3a064b",
"m_Group": {
"m_Id": ""
},
"m_Name": "Sample Texture 2D",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -274.0000305175781,
"y": 160.99998474121095,
"width": 183.00001525878907,
"height": 250.99998474121095
}
},
"m_Slots": [
{
"m_Id": "78db00f49dfe4fa2b4369e32ebf28ec5"
},
{
"m_Id": "68a8b951fcb8489891abfbfcc34a120e"
},
{
"m_Id": "a35c97e796354191a56cab4ebc1b0c97"
},
{
"m_Id": "9015c4f761784b57a17877f114771c6d"
},
{
"m_Id": "efc06576e366411a9dbb3c5e5c3e6dc1"
},
{
"m_Id": "d54d1ad0bcdf4b60a51da4f977c899e2"
},
{
"m_Id": "7639b4a17a334399a9f421cd50b7cfdb"
},
{
"m_Id": "e9a96a370b654f49bdaede33b9c5364c"
}
],
"synonyms": [
"tex2d"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_TextureType": 0,
"m_NormalMapSpace": 0,
"m_EnableGlobalMipBias": true,
"m_MipSamplingMode": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.Rendering.BuiltIn.ShaderGraph.BuiltInUIEffectSubTarget",
"m_ObjectId": "7ead57ce3c34462b9abc55f1c840545b"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "867db961355a4c1ea898b69d9e6549b0",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -418.0,
"y": 183.0,
"width": 132.0,
"height": 33.99998474121094
}
},
"m_Slots": [
{
"m_Id": "5b370c6775e1485c8289267723a78b11"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "0edd83ed2c624ec1806581cf049b4102"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "8c8215c5d9714514b592e36aad9c148a",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "0edd83ed2c624ec1806581cf049b4102"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "9015c4f761784b57a17877f114771c6d",
"m_Id": 6,
"m_DisplayName": "B",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "92eee3a578d042e1b3d5449bc1deba68",
"m_Id": 0,
"m_DisplayName": "Alpha",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Alpha",
"m_StageCapability": 2,
"m_Value": 1.0,
"m_DefaultValue": 1.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "a35c97e796354191a56cab4ebc1b0c97",
"m_Id": 5,
"m_DisplayName": "G",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "G",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot",
"m_ObjectId": "bba29a5fc85343b2964b3e4b5a62d0bf",
"m_Id": 0,
"m_DisplayName": "Base Color",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "BaseColor",
"m_StageCapability": 2,
"m_Value": {
"x": 0.5,
"y": 0.5,
"z": 0.5
},
"m_DefaultValue": {
"x": 0.5,
"y": 0.5,
"z": 0.5
},
"m_Labels": [],
"m_ColorMode": 0,
"m_DefaultColor": {
"r": 0.5,
"g": 0.5,
"b": 0.5,
"a": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "d326ef5f90af4c7996e7e0c915e57983",
"m_Group": {
"m_Id": ""
},
"m_Name": "SurfaceDescription.Alpha",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 12.99997329711914,
"y": 270.0,
"width": 200.00001525878907,
"height": 41.0
}
},
"m_Slots": [
{
"m_Id": "92eee3a578d042e1b3d5449bc1deba68"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "SurfaceDescription.Alpha"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot",
"m_ObjectId": "d54d1ad0bcdf4b60a51da4f977c899e2",
"m_Id": 1,
"m_DisplayName": "Texture",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Texture",
"m_StageCapability": 3,
"m_BareResource": false,
"m_Texture": {
"m_SerializedTexture": "",
"m_Guid": ""
},
"m_DefaultType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot",
"m_ObjectId": "e9a96a370b654f49bdaede33b9c5364c",
"m_Id": 3,
"m_DisplayName": "Sampler",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Sampler",
"m_StageCapability": 3,
"m_BareResource": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.Rendering.Canvas.ShaderGraph.CanvasData",
"m_ObjectId": "eeebd3b9f4ac47059504bc3a1119b400",
"m_Version": 0,
"m_AlphaClip": false,
"m_DisableTint": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "efc06576e366411a9dbb3c5e5c3e6dc1",
"m_Id": 7,
"m_DisplayName": "A",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "f3b826553df24fdb9d14e4f1ef5504c8",
"m_Group": {
"m_Id": ""
},
"m_Name": "SurfaceDescription.BaseColor",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 0.0,
"y": 0.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "bba29a5fc85343b2964b3e4b5a62d0bf"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "SurfaceDescription.BaseColor"
}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: e5b632cdcfc38478ebc1424ae9371f99
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData: v5.7.0
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}
@@ -0,0 +1,3 @@
{
"reference": "GUID:be0903cd8e1546f498710afdc59db5eb"
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 0f789ebf4d79649a99ce55c22b322e8b
AssemblyDefinitionReferenceImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

@@ -0,0 +1,169 @@
fileFormatVersion: 2
guid: 2f1058d436da64dd790d7c6db345a6b8
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
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
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 0
aniso: 1
mipBias: 0
wrapU: 2
wrapV: 2
wrapW: 2
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
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: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 256
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: iOS
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 9d5fb70c6201e408ebe2e8941a0e5944
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,729 @@
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "59df17a6c3174a02826ef2b2f0b22bba",
"m_Properties": [
{
"m_Id": "0edd83ed2c624ec1806581cf049b4102"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "8c8215c5d9714514b592e36aad9c148a"
}
],
"m_Nodes": [
{
"m_Id": "f3b826553df24fdb9d14e4f1ef5504c8"
},
{
"m_Id": "c2a8615bb6ed48bfa85d0d3671740b5e"
},
{
"m_Id": "d326ef5f90af4c7996e7e0c915e57983"
},
{
"m_Id": "18361f77ae274f2598be88dcaae100de"
},
{
"m_Id": "7952abbfa5764abbae262f142a3a064b"
},
{
"m_Id": "867db961355a4c1ea898b69d9e6549b0"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "7952abbfa5764abbae262f142a3a064b"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "f3b826553df24fdb9d14e4f1ef5504c8"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "7952abbfa5764abbae262f142a3a064b"
},
"m_SlotId": 7
},
"m_InputSlot": {
"m_Node": {
"m_Id": "d326ef5f90af4c7996e7e0c915e57983"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "867db961355a4c1ea898b69d9e6549b0"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "7952abbfa5764abbae262f142a3a064b"
},
"m_SlotId": 1
}
}
],
"m_VertexContext": {
"m_Position": {
"x": -0.000025510787963867188,
"y": 82.99999237060547
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": 0.0,
"y": 200.0
},
"m_Blocks": [
{
"m_Id": "f3b826553df24fdb9d14e4f1ef5504c8"
},
{
"m_Id": "d326ef5f90af4c7996e7e0c915e57983"
},
{
"m_Id": "c2a8615bb6ed48bfa85d0d3671740b5e"
},
{
"m_Id": "18361f77ae274f2598be88dcaae100de"
}
]
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "Shader Graphs",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": ""
},
"m_SubDatas": [],
"m_ActiveTargets": [
{
"m_Id": "1a195cdf4382437789224a92fedff5b1"
},
{
"m_Id": "22af5ae5df2343a48eab120f592090a0"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty",
"m_ObjectId": "0edd83ed2c624ec1806581cf049b4102",
"m_Guid": {
"m_GuidSerialized": "732edd04-59f7-47df-9432-7fe06165e57a"
},
"m_Name": "_MainTex",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "_MainTex",
"m_DefaultReferenceName": "_MainTex",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"m_SerializedTexture": "",
"m_Guid": ""
},
"isMainTexture": false,
"useTilingAndOffset": false,
"m_Modifiable": true,
"m_DefaultType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "18361f77ae274f2598be88dcaae100de",
"m_Group": {
"m_Id": ""
},
"m_Name": "SurfaceDescription.AlphaClipThreshold",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 0.0,
"y": 0.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "4ae12b62cdd7491ea48ecd15c123692d"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "SurfaceDescription.AlphaClipThreshold"
}
{
"m_SGVersion": 2,
"m_Type": "UnityEditor.Rendering.BuiltIn.ShaderGraph.BuiltInTarget",
"m_ObjectId": "1a195cdf4382437789224a92fedff5b1",
"m_Datas": [
{
"m_Id": "f39f3f444a8a4c7593cfa9d3958d6adb"
}
],
"m_ActiveSubTarget": {
"m_Id": "80f8f8e7c44e42c8b6eca7510eeee828"
},
"m_AllowMaterialOverride": false,
"m_SurfaceType": 0,
"m_ZWriteControl": 0,
"m_ZTestMode": 4,
"m_AlphaMode": 0,
"m_RenderFace": 2,
"m_AlphaClip": true,
"m_CustomEditorGUI": ""
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget",
"m_ObjectId": "22af5ae5df2343a48eab120f592090a0",
"m_Datas": [
{
"m_Id": "e8d949ab75d949a48b225e87bac14000"
}
],
"m_ActiveSubTarget": {
"m_Id": "ccc35450f1194a7794f124787f7223de"
},
"m_AllowMaterialOverride": false,
"m_SurfaceType": 0,
"m_ZTestMode": 4,
"m_ZWriteControl": 0,
"m_AlphaMode": 0,
"m_RenderFace": 2,
"m_AlphaClip": false,
"m_CastShadows": true,
"m_ReceiveShadows": true,
"m_DisableTint": false,
"m_AdditionalMotionVectorMode": 0,
"m_AlembicMotionVectors": false,
"m_SupportsLODCrossFade": false,
"m_CustomEditorGUI": "",
"m_SupportVFX": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "4ae12b62cdd7491ea48ecd15c123692d",
"m_Id": 0,
"m_DisplayName": "Alpha Clip Threshold",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "AlphaClipThreshold",
"m_StageCapability": 2,
"m_Value": 0.009999999776482582,
"m_DefaultValue": 0.5,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot",
"m_ObjectId": "5b370c6775e1485c8289267723a78b11",
"m_Id": 0,
"m_DisplayName": "_MainTex",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_BareResource": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "68a8b951fcb8489891abfbfcc34a120e",
"m_Id": 4,
"m_DisplayName": "R",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "R",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot",
"m_ObjectId": "7639b4a17a334399a9f421cd50b7cfdb",
"m_Id": 2,
"m_DisplayName": "UV",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "UV",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": [],
"m_Channel": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "78db00f49dfe4fa2b4369e32ebf28ec5",
"m_Id": 0,
"m_DisplayName": "RGBA",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "RGBA",
"m_StageCapability": 2,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode",
"m_ObjectId": "7952abbfa5764abbae262f142a3a064b",
"m_Group": {
"m_Id": ""
},
"m_Name": "Sample Texture 2D",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -274.0000305175781,
"y": 160.99998474121095,
"width": 183.00001525878907,
"height": 250.99998474121095
}
},
"m_Slots": [
{
"m_Id": "78db00f49dfe4fa2b4369e32ebf28ec5"
},
{
"m_Id": "68a8b951fcb8489891abfbfcc34a120e"
},
{
"m_Id": "a35c97e796354191a56cab4ebc1b0c97"
},
{
"m_Id": "9015c4f761784b57a17877f114771c6d"
},
{
"m_Id": "efc06576e366411a9dbb3c5e5c3e6dc1"
},
{
"m_Id": "d54d1ad0bcdf4b60a51da4f977c899e2"
},
{
"m_Id": "7639b4a17a334399a9f421cd50b7cfdb"
},
{
"m_Id": "e9a96a370b654f49bdaede33b9c5364c"
}
],
"synonyms": [
"tex2d"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_TextureType": 0,
"m_NormalMapSpace": 0,
"m_EnableGlobalMipBias": true,
"m_MipSamplingMode": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.Rendering.BuiltIn.ShaderGraph.BuiltInUIEffectSubTarget",
"m_ObjectId": "80f8f8e7c44e42c8b6eca7510eeee828"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "867db961355a4c1ea898b69d9e6549b0",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -418.0,
"y": 183.0,
"width": 132.0,
"height": 33.99998474121094
}
},
"m_Slots": [
{
"m_Id": "5b370c6775e1485c8289267723a78b11"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "0edd83ed2c624ec1806581cf049b4102"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "8c8215c5d9714514b592e36aad9c148a",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "0edd83ed2c624ec1806581cf049b4102"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "9015c4f761784b57a17877f114771c6d",
"m_Id": 6,
"m_DisplayName": "B",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "92eee3a578d042e1b3d5449bc1deba68",
"m_Id": 0,
"m_DisplayName": "Alpha",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Alpha",
"m_StageCapability": 2,
"m_Value": 1.0,
"m_DefaultValue": 1.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "a35c97e796354191a56cab4ebc1b0c97",
"m_Id": 5,
"m_DisplayName": "G",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "G",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot",
"m_ObjectId": "bba29a5fc85343b2964b3e4b5a62d0bf",
"m_Id": 0,
"m_DisplayName": "Base Color",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "BaseColor",
"m_StageCapability": 2,
"m_Value": {
"x": 0.5,
"y": 0.5,
"z": 0.5
},
"m_DefaultValue": {
"x": 0.5,
"y": 0.5,
"z": 0.5
},
"m_Labels": [],
"m_ColorMode": 0,
"m_DefaultColor": {
"r": 0.5,
"g": 0.5,
"b": 0.5,
"a": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "c2a8615bb6ed48bfa85d0d3671740b5e",
"m_Group": {
"m_Id": ""
},
"m_Name": "SurfaceDescription.Emission",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 0.0,
"y": 0.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "f9b4659b58e548b795c4f84d6c2d0e37"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "SurfaceDescription.Emission"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalUIEffectSubTarget",
"m_ObjectId": "ccc35450f1194a7794f124787f7223de"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "d326ef5f90af4c7996e7e0c915e57983",
"m_Group": {
"m_Id": ""
},
"m_Name": "SurfaceDescription.Alpha",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 12.99997329711914,
"y": 270.0,
"width": 200.00001525878907,
"height": 41.0
}
},
"m_Slots": [
{
"m_Id": "92eee3a578d042e1b3d5449bc1deba68"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "SurfaceDescription.Alpha"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot",
"m_ObjectId": "d54d1ad0bcdf4b60a51da4f977c899e2",
"m_Id": 1,
"m_DisplayName": "Texture",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Texture",
"m_StageCapability": 3,
"m_BareResource": false,
"m_Texture": {
"m_SerializedTexture": "",
"m_Guid": ""
},
"m_DefaultType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.Rendering.Canvas.ShaderGraph.CanvasData",
"m_ObjectId": "e8d949ab75d949a48b225e87bac14000",
"m_Version": 0,
"m_AlphaClip": true,
"m_DisableTint": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot",
"m_ObjectId": "e9a96a370b654f49bdaede33b9c5364c",
"m_Id": 3,
"m_DisplayName": "Sampler",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Sampler",
"m_StageCapability": 3,
"m_BareResource": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "efc06576e366411a9dbb3c5e5c3e6dc1",
"m_Id": 7,
"m_DisplayName": "A",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.Rendering.Canvas.ShaderGraph.CanvasData",
"m_ObjectId": "f39f3f444a8a4c7593cfa9d3958d6adb",
"m_Version": 0,
"m_AlphaClip": false,
"m_DisableTint": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "f3b826553df24fdb9d14e4f1ef5504c8",
"m_Group": {
"m_Id": ""
},
"m_Name": "SurfaceDescription.BaseColor",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 0.0,
"y": 0.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "bba29a5fc85343b2964b3e4b5a62d0bf"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "SurfaceDescription.BaseColor"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot",
"m_ObjectId": "f9b4659b58e548b795c4f84d6c2d0e37",
"m_Id": 0,
"m_DisplayName": "Emission",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Emission",
"m_StageCapability": 2,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": [],
"m_ColorMode": 1,
"m_DefaultColor": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 1.0
}
}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: c4b99d7494b704b7c885015e0153163b
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData: v5.7.0
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}
@@ -0,0 +1,3 @@
{
"reference": "GUID:c579267770062bf448e75eb160330b7f"
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 2b7a7eb5bb5ed49dcaf7965481fa019d
AssemblyDefinitionReferenceImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,34 @@
using System;
using UnityEditor.Rendering.BuiltIn.ShaderGraph;
using UnityEditor.ShaderGraph;
namespace UnityEditor.Rendering.Universal.ShaderGraph
{
internal class UniversalUIEffectSubTarget : UniversalCanvasSubTarget
{
[MenuItem("Assets/Create/Shader Graph/URP/Canvas Shader Graph (UIEffect)", priority = 1000)]
private static void CreateUnlitGraph()
{
var target = (UniversalTarget)Activator.CreateInstance(typeof(UniversalTarget));
target.TrySetActiveSubTarget(typeof(BuiltInUIEffectSubTarget));
target.TrySetActiveSubTarget(typeof(UniversalUIEffectSubTarget));
target.CreateGraphAsset();
}
public UniversalUIEffectSubTarget() { displayName = "Canvas (UIEffect)"; }
protected override IncludeCollection postgraphIncludes => base.postgraphIncludes
.Add(BuiltInUIEffectSubTarget.s_UIEffectHlsl, IncludeLocation.Postgraph);
public override PassDescriptor GenerateUIPassDescriptor(bool isSRP)
{
return BuiltInUIEffectSubTarget.ModifyUIPassDescriptor(base.GenerateUIPassDescriptor(isSRP));
}
public override void CollectShaderProperties(PropertyCollector collector, GenerationMode generationMode)
{
base.CollectShaderProperties(collector, generationMode);
BuiltInUIEffectSubTarget.ModifyShaderProperties(collector);
}
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: e428a82723f244e77b64d08fd256159d
@@ -59,19 +59,18 @@ SubShader {
// ==== UIEFFECT START ====
#pragma shader_feature_local_fragment _ TONE_GRAYSCALE TONE_SEPIA TONE_NEGATIVE TONE_RETRO TONE_POSTERIZE
#pragma shader_feature_local_fragment _ COLOR_MULTIPLY COLOR_ADDITIVE COLOR_SUBTRACTIVE COLOR_REPLACE COLOR_MULTIPLY_LUMINANCE COLOR_MULTIPLY_ADDITIVE COLOR_HSV_MODIFIER COLOR_CONTRAST
#pragma shader_feature_local_fragment _ COLOR_FILTER
#pragma shader_feature_local_fragment _ SAMPLING_BLUR_FAST SAMPLING_BLUR_MEDIUM SAMPLING_BLUR_DETAIL SAMPLING_PIXELATION SAMPLING_RGB_SHIFT SAMPLING_EDGE_LUMINANCE SAMPLING_EDGE_ALPHA
#pragma shader_feature_local_fragment _ TRANSITION_FADE TRANSITION_CUTOFF TRANSITION_DISSOLVE TRANSITION_SHINY TRANSITION_MASK TRANSITION_MELT TRANSITION_BURN TRANSITION_PATTERN
#pragma shader_feature_local_fragment _ TRANSITION_COLOR_MULTIPLY TRANSITION_COLOR_ADDITIVE TRANSITION_COLOR_SUBTRACTIVE TRANSITION_COLOR_REPLACE TRANSITION_COLOR_MULTIPLY_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_COLOR_HSV_MODIFIER TRANSITION_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ SHADOW_COLOR_MULTIPLY SHADOW_COLOR_ADDITIVE SHADOW_COLOR_SUBTRACTIVE SHADOW_COLOR_REPLACE SHADOW_COLOR_MULTIPLY_LUMINANCE SHADOW_COLOR_MULTIPLY_ADDITIVE SHADOW_COLOR_HSV_MODIFIER SHADOW_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ EDGE_PLAIN EDGE_SHINY
#pragma shader_feature_local_fragment _ EDGE_COLOR_MULTIPLY EDGE_COLOR_ADDITIVE EDGE_COLOR_SUBTRACTIVE EDGE_COLOR_REPLACE EDGE_COLOR_MULTIPLY_LUMINANCE EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_COLOR_HSV_MODIFIER EDGE_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ DETAIL_MASKING DETAIL_MULTIPLY DETAIL_ADDITIVE DETAIL_REPLACE DETAIL_MULTIPLY_ADDITIVE
#pragma shader_feature_local_fragment _ TARGET_HUE TARGET_LUMINANCE
#pragma shader_feature_local_fragment _ GRADATION_GRADIENT GRADATION_RADIAL GRADATION_COLOR2 GRADATION_COLOR4
#pragma shader_feature_fragment _ UIEFFECT_EDITOR
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#pragma shader_feature _ SOFTMASK_EDITOR
#pragma shader_feature_fragment _ SOFTMASK_EDITOR
#pragma shader_feature_local_fragment _ SOFTMASKABLE
#if SOFTMASKABLE
#include "Packages/com.coffee.softmask-for-ugui/Shaders/SoftMask.cginc"
@@ -87,7 +86,7 @@ SubShader {
fixed4 color : COLOR;
float2 texcoord0 : TEXCOORD0;
// ==== UIEFFECT START ====
float4 texcoord1 : TEXCOORD1;
float2 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
// ==== UIEFFECT END ====
};
@@ -100,13 +99,8 @@ SubShader {
float4 mask : TEXCOORD2;
// ==== UIEFFECT START ====
float4 uvMask : TEXCOORD3;
float2 uvLocal : TEXCOORD4;
float4 worldPosition : TEXCOORD4;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
float4 worldPosition : TEXCOORD5;
#endif
// ==== SOFTMASKABLE END ====
};
sampler2D _MainTex;
@@ -149,14 +143,9 @@ SubShader {
OUT.mask = float4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * maskSoftness + pixelSize.xy));
// ==== UIEFFECT START ====
OUT.uvLocal = v.texcoord1.zw;
OUT.uvMask = v.texcoord2;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
OUT.worldPosition = v.vertex;
#endif
// ==== SOFTMASKABLE END ====
// ==== UIEFFECT END ====
return OUT;
}
@@ -167,7 +156,7 @@ SubShader {
{
v2f IN = _fragInput;
float2 uvMove = uv - IN.texcoord0;
fixed4 color = fixed4(IN.color.rgb, IN.color.a * tex2D(_MainTex, IN.texcoord0 + uvMove).a);
fixed4 color = fixed4(IN.color.rgb, tex2D(_MainTex, IN.texcoord0 + uvMove).a);
color.rgb *= color.a;
return color;
}
@@ -178,7 +167,8 @@ SubShader {
fixed4 frag (v2f IN) : COLOR
{
_fragInput = IN;
half4 color = uieffect(_fragInput.texcoord0, _fragInput.uvMask, _fragInput.uvLocal);
half4 color = uieffect(IN.texcoord0, IN.uvMask, IN.worldPosition);
color *= IN.color.a;
// Alternative implementation to UnityGet2DClipping with support for softness.
#if UNITY_UI_CLIP_RECT
@@ -4,6 +4,6 @@ ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData: v5.6.0 (Unity 6)
userData: v5.7.0 (Unity 6)
assetBundleName:
assetBundleVariant:
@@ -58,19 +58,18 @@ SubShader{
// ==== UIEFFECT START ====
#pragma shader_feature_local_fragment _ TONE_GRAYSCALE TONE_SEPIA TONE_NEGATIVE TONE_RETRO TONE_POSTERIZE
#pragma shader_feature_local_fragment _ COLOR_MULTIPLY COLOR_ADDITIVE COLOR_SUBTRACTIVE COLOR_REPLACE COLOR_MULTIPLY_LUMINANCE COLOR_MULTIPLY_ADDITIVE COLOR_HSV_MODIFIER COLOR_CONTRAST
#pragma shader_feature_local_fragment _ COLOR_FILTER
#pragma shader_feature_local_fragment _ SAMPLING_BLUR_FAST SAMPLING_BLUR_MEDIUM SAMPLING_BLUR_DETAIL SAMPLING_PIXELATION SAMPLING_RGB_SHIFT SAMPLING_EDGE_LUMINANCE SAMPLING_EDGE_ALPHA
#pragma shader_feature_local_fragment _ TRANSITION_FADE TRANSITION_CUTOFF TRANSITION_DISSOLVE TRANSITION_SHINY TRANSITION_MASK TRANSITION_MELT TRANSITION_BURN TRANSITION_PATTERN
#pragma shader_feature_local_fragment _ TRANSITION_COLOR_MULTIPLY TRANSITION_COLOR_ADDITIVE TRANSITION_COLOR_SUBTRACTIVE TRANSITION_COLOR_REPLACE TRANSITION_COLOR_MULTIPLY_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_COLOR_HSV_MODIFIER TRANSITION_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ SHADOW_COLOR_MULTIPLY SHADOW_COLOR_ADDITIVE SHADOW_COLOR_SUBTRACTIVE SHADOW_COLOR_REPLACE SHADOW_COLOR_MULTIPLY_LUMINANCE SHADOW_COLOR_MULTIPLY_ADDITIVE SHADOW_COLOR_HSV_MODIFIER SHADOW_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ EDGE_PLAIN EDGE_SHINY
#pragma shader_feature_local_fragment _ EDGE_COLOR_MULTIPLY EDGE_COLOR_ADDITIVE EDGE_COLOR_SUBTRACTIVE EDGE_COLOR_REPLACE EDGE_COLOR_MULTIPLY_LUMINANCE EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_COLOR_HSV_MODIFIER EDGE_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ DETAIL_MASKING DETAIL_MULTIPLY DETAIL_ADDITIVE DETAIL_REPLACE DETAIL_MULTIPLY_ADDITIVE
#pragma shader_feature_local_fragment _ TARGET_HUE TARGET_LUMINANCE
#pragma shader_feature_local_fragment _ GRADATION_GRADIENT GRADATION_RADIAL GRADATION_COLOR2 GRADATION_COLOR4
#pragma shader_feature_fragment _ UIEFFECT_EDITOR
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#pragma shader_feature _ SOFTMASK_EDITOR
#pragma shader_feature_fragment _ SOFTMASK_EDITOR
#pragma shader_feature_local_fragment _ SOFTMASKABLE
#if SOFTMASKABLE
#include "Packages/com.coffee.softmask-for-ugui/Shaders/SoftMask.cginc"
@@ -86,7 +85,7 @@ SubShader{
fixed4 color : COLOR;
float4 texcoord0 : TEXCOORD0;
// ==== UIEFFECT START ====
float4 texcoord1 : TEXCOORD1;
float2 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
// ==== UIEFFECT END ====
};
@@ -100,13 +99,8 @@ SubShader{
float4 mask : TEXCOORD2;
// ==== UIEFFECT START ====
float4 uvMask : TEXCOORD3;
float2 uvLocal : TEXCOORD4;
float4 worldPosition : TEXCOORD4;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
float4 worldPosition : TEXCOORD5;
#endif
// ==== SOFTMASKABLE END ====
};
uniform sampler2D _MainTex;
@@ -154,14 +148,9 @@ SubShader{
OUT.mask = float4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * maskSoftness + pixelSize.xy));
// ==== UIEFFECT START ====
OUT.uvLocal = v.texcoord1.zw;
OUT.uvMask = v.texcoord2;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
OUT.worldPosition = v.vertex;
#endif
// ==== SOFTMASKABLE END ====
// ==== UIEFFECT END ====
return OUT;
}
@@ -173,7 +162,7 @@ SubShader{
v2f IN = _fragInput;
float2 uvMove = uv - IN.texcoord0;
fixed4 color = tex2D(_MainTex, IN.texcoord0 + uvMove);
color = fixed4 (tex2D(_FaceTex, IN.texcoord1).rgb * IN.color.rgb, IN.color.a * color.a);
color = fixed4 (tex2D(_FaceTex, IN.texcoord1).rgb * IN.color.rgb, color.a);
color.rgb *= color.a;
return color;
}
@@ -184,7 +173,8 @@ SubShader{
fixed4 frag (v2f IN) : SV_Target
{
_fragInput = IN;
half4 color = uieffect(_fragInput.texcoord0, _fragInput.uvMask, _fragInput.uvLocal);
half4 color = uieffect(IN.texcoord0, IN.uvMask, IN.worldPosition);
color *= IN.color.a;
// Alternative implementation to UnityGet2DClipping with support for softness.
#if UNITY_UI_CLIP_RECT
@@ -4,6 +4,6 @@ ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData: v5.6.0 (Unity 6)
userData: v5.7.0 (Unity 6)
assetBundleName:
assetBundleVariant:
@@ -128,19 +128,18 @@ SubShader {
// ==== UIEFFECT START ====
#pragma shader_feature_local_fragment _ TONE_GRAYSCALE TONE_SEPIA TONE_NEGATIVE TONE_RETRO TONE_POSTERIZE
#pragma shader_feature_local_fragment _ COLOR_MULTIPLY COLOR_ADDITIVE COLOR_SUBTRACTIVE COLOR_REPLACE COLOR_MULTIPLY_LUMINANCE COLOR_MULTIPLY_ADDITIVE COLOR_HSV_MODIFIER COLOR_CONTRAST
#pragma shader_feature_local_fragment _ COLOR_FILTER
#pragma shader_feature_local_fragment _ SAMPLING_BLUR_FAST SAMPLING_BLUR_MEDIUM SAMPLING_BLUR_DETAIL SAMPLING_PIXELATION SAMPLING_RGB_SHIFT SAMPLING_EDGE_LUMINANCE SAMPLING_EDGE_ALPHA
#pragma shader_feature_local_fragment _ TRANSITION_FADE TRANSITION_CUTOFF TRANSITION_DISSOLVE TRANSITION_SHINY TRANSITION_MASK TRANSITION_MELT TRANSITION_BURN TRANSITION_PATTERN
#pragma shader_feature_local_fragment _ TRANSITION_COLOR_MULTIPLY TRANSITION_COLOR_ADDITIVE TRANSITION_COLOR_SUBTRACTIVE TRANSITION_COLOR_REPLACE TRANSITION_COLOR_MULTIPLY_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_COLOR_HSV_MODIFIER TRANSITION_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ SHADOW_COLOR_MULTIPLY SHADOW_COLOR_ADDITIVE SHADOW_COLOR_SUBTRACTIVE SHADOW_COLOR_REPLACE SHADOW_COLOR_MULTIPLY_LUMINANCE SHADOW_COLOR_MULTIPLY_ADDITIVE SHADOW_COLOR_HSV_MODIFIER SHADOW_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ EDGE_PLAIN EDGE_SHINY
#pragma shader_feature_local_fragment _ EDGE_COLOR_MULTIPLY EDGE_COLOR_ADDITIVE EDGE_COLOR_SUBTRACTIVE EDGE_COLOR_REPLACE EDGE_COLOR_MULTIPLY_LUMINANCE EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_COLOR_HSV_MODIFIER EDGE_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ DETAIL_MASKING DETAIL_MULTIPLY DETAIL_ADDITIVE DETAIL_REPLACE DETAIL_MULTIPLY_ADDITIVE
#pragma shader_feature_local_fragment _ TARGET_HUE TARGET_LUMINANCE
#pragma shader_feature_local_fragment _ GRADATION_GRADIENT GRADATION_RADIAL GRADATION_COLOR2 GRADATION_COLOR4
#pragma shader_feature_fragment _ UIEFFECT_EDITOR
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#pragma shader_feature _ SOFTMASK_EDITOR
#pragma shader_feature_fragment _ SOFTMASK_EDITOR
#pragma shader_feature_local_fragment _ SOFTMASKABLE
#if SOFTMASKABLE
#include "Packages/com.coffee.softmask-for-ugui/Shaders/SoftMask.cginc"
@@ -160,7 +159,7 @@ SubShader {
fixed4 color : COLOR;
float4 texcoord0 : TEXCOORD0;
// ==== UIEFFECT START ====
float4 texcoord1 : TEXCOORD1;
float2 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
// ==== UIEFFECT END ====
};
@@ -183,13 +182,8 @@ SubShader {
float4 textures : TEXCOORD5;
// ==== UIEFFECT START ====
float4 uvMask : TEXCOORD6;
float2 uvLocal : TEXCOORD7;
float4 worldPosition : TEXCOORD7;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
float4 worldPosition : TEXCOORD8;
#endif
// ==== SOFTMASKABLE END ====
};
// Used by Unity internally to handle Texture Tiling and Offset.
@@ -276,14 +270,9 @@ SubShader {
output.textures = float4(faceUV, outlineUV);
// ==== UIEFFECT START ====
output.uvLocal = input.texcoord1.zw;
output.uvMask = input.texcoord2;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
output.worldPosition = input.position;
#endif
// ==== SOFTMASKABLE END ====
// ==== UIEFFECT END ====
return output;
}
@@ -352,7 +341,7 @@ SubShader {
faceColor.rgb += glowColor.rgb * glowColor.a;
#endif
return faceColor * input.color.a;
return faceColor;
}
#define UIEFFECT_TEXTMESHPRO 1
@@ -363,7 +352,8 @@ SubShader {
{
UNITY_SETUP_INSTANCE_ID(input);
_fragInput = input;
half4 faceColor = uieffect(_fragInput.atlas, _fragInput.uvMask, _fragInput.uvLocal);
half4 faceColor = uieffect(input.atlas, input.uvMask, input.worldPosition);
faceColor *= input.color.a;
#if UNITY_UI_CLIP_RECT
half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(input.mask.xy)) * input.mask.zw);
@@ -4,6 +4,6 @@ ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData: v5.6.0 (Unity 6)
userData: v5.7.0 (Unity 6)
assetBundleName:
assetBundleVariant:
@@ -129,19 +129,18 @@ SubShader {
// ==== UIEFFECT START ====
#pragma shader_feature_local_fragment _ TONE_GRAYSCALE TONE_SEPIA TONE_NEGATIVE TONE_RETRO TONE_POSTERIZE
#pragma shader_feature_local_fragment _ COLOR_MULTIPLY COLOR_ADDITIVE COLOR_SUBTRACTIVE COLOR_REPLACE COLOR_MULTIPLY_LUMINANCE COLOR_MULTIPLY_ADDITIVE COLOR_HSV_MODIFIER COLOR_CONTRAST
#pragma shader_feature_local_fragment _ COLOR_FILTER
#pragma shader_feature_local_fragment _ SAMPLING_BLUR_FAST SAMPLING_BLUR_MEDIUM SAMPLING_BLUR_DETAIL SAMPLING_PIXELATION SAMPLING_RGB_SHIFT SAMPLING_EDGE_LUMINANCE SAMPLING_EDGE_ALPHA
#pragma shader_feature_local_fragment _ TRANSITION_FADE TRANSITION_CUTOFF TRANSITION_DISSOLVE TRANSITION_SHINY TRANSITION_MASK TRANSITION_MELT TRANSITION_BURN TRANSITION_PATTERN
#pragma shader_feature_local_fragment _ TRANSITION_COLOR_MULTIPLY TRANSITION_COLOR_ADDITIVE TRANSITION_COLOR_SUBTRACTIVE TRANSITION_COLOR_REPLACE TRANSITION_COLOR_MULTIPLY_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_COLOR_HSV_MODIFIER TRANSITION_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ SHADOW_COLOR_MULTIPLY SHADOW_COLOR_ADDITIVE SHADOW_COLOR_SUBTRACTIVE SHADOW_COLOR_REPLACE SHADOW_COLOR_MULTIPLY_LUMINANCE SHADOW_COLOR_MULTIPLY_ADDITIVE SHADOW_COLOR_HSV_MODIFIER SHADOW_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ EDGE_PLAIN EDGE_SHINY
#pragma shader_feature_local_fragment _ EDGE_COLOR_MULTIPLY EDGE_COLOR_ADDITIVE EDGE_COLOR_SUBTRACTIVE EDGE_COLOR_REPLACE EDGE_COLOR_MULTIPLY_LUMINANCE EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_COLOR_HSV_MODIFIER EDGE_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ DETAIL_MASKING DETAIL_MULTIPLY DETAIL_ADDITIVE DETAIL_REPLACE DETAIL_MULTIPLY_ADDITIVE
#pragma shader_feature_local_fragment _ TARGET_HUE TARGET_LUMINANCE
#pragma shader_feature_local_fragment _ GRADATION_GRADIENT GRADATION_RADIAL GRADATION_COLOR2 GRADATION_COLOR4
#pragma shader_feature_fragment _ UIEFFECT_EDITOR
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#pragma shader_feature _ SOFTMASK_EDITOR
#pragma shader_feature_fragment _ SOFTMASK_EDITOR
#pragma shader_feature_local_fragment _ SOFTMASKABLE
#if SOFTMASKABLE
#include "Packages/com.coffee.softmask-for-ugui/Shaders/SoftMask.cginc"
@@ -161,7 +160,7 @@ SubShader {
float4 color : COLOR;
float4 texcoord0 : TEXCOORD0;
// ==== UIEFFECT START ====
float4 texcoord1 : TEXCOORD1;
float2 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
// ==== UIEFFECT END ====
};
@@ -185,13 +184,8 @@ SubShader {
float4 textures : TEXCOORD5;
// ==== UIEFFECT START ====
float4 uvMask : TEXCOORD6;
float2 uvLocal : TEXCOORD7;
float4 worldPosition : TEXCOORD7;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
float4 worldPosition : TEXCOORD8;
#endif
// ==== SOFTMASKABLE END ====
};
// Used by Unity internally to handle Texture Tiling and Offset.
@@ -265,14 +259,9 @@ SubShader {
output.textures = float4(faceUV, outlineUV);
// ==== UIEFFECT START ====
output.uvLocal = input.texcoord1.zw;
output.uvMask = input.texcoord2;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
output.worldPosition = input.position;
#endif
// ==== SOFTMASKABLE END ====
// ==== UIEFFECT END ====
return output;
}
@@ -346,7 +335,7 @@ SubShader {
faceColor.rgb += glowColor.rgb * glowColor.a;
#endif
return faceColor * input.color.a;
return faceColor;
}
@@ -358,7 +347,8 @@ SubShader {
{
UNITY_SETUP_INSTANCE_ID(input);
_fragInput = input;
half4 faceColor = uieffect(_fragInput.atlas, _fragInput.uvMask, _fragInput.uvLocal);
half4 faceColor = uieffect(input.atlas, input.uvMask, input.worldPosition);
faceColor *= input.color.a;
// Alternative implementation to UnityGet2DClipping with support for softness.
#if UNITY_UI_CLIP_RECT
@@ -4,6 +4,6 @@ ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData: v5.6.0 (Unity 6)
userData: v5.7.0 (Unity 6)
assetBundleName:
assetBundleVariant:
@@ -90,19 +90,18 @@ SubShader {
// ==== UIEFFECT START ====
#pragma shader_feature_local_fragment _ TONE_GRAYSCALE TONE_SEPIA TONE_NEGATIVE TONE_RETRO TONE_POSTERIZE
#pragma shader_feature_local_fragment _ COLOR_MULTIPLY COLOR_ADDITIVE COLOR_SUBTRACTIVE COLOR_REPLACE COLOR_MULTIPLY_LUMINANCE COLOR_MULTIPLY_ADDITIVE COLOR_HSV_MODIFIER COLOR_CONTRAST
#pragma shader_feature_local_fragment _ COLOR_FILTER
#pragma shader_feature_local_fragment _ SAMPLING_BLUR_FAST SAMPLING_BLUR_MEDIUM SAMPLING_BLUR_DETAIL SAMPLING_PIXELATION SAMPLING_RGB_SHIFT SAMPLING_EDGE_LUMINANCE SAMPLING_EDGE_ALPHA
#pragma shader_feature_local_fragment _ TRANSITION_FADE TRANSITION_CUTOFF TRANSITION_DISSOLVE TRANSITION_SHINY TRANSITION_MASK TRANSITION_MELT TRANSITION_BURN TRANSITION_PATTERN
#pragma shader_feature_local_fragment _ TRANSITION_COLOR_MULTIPLY TRANSITION_COLOR_ADDITIVE TRANSITION_COLOR_SUBTRACTIVE TRANSITION_COLOR_REPLACE TRANSITION_COLOR_MULTIPLY_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_COLOR_HSV_MODIFIER TRANSITION_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ SHADOW_COLOR_MULTIPLY SHADOW_COLOR_ADDITIVE SHADOW_COLOR_SUBTRACTIVE SHADOW_COLOR_REPLACE SHADOW_COLOR_MULTIPLY_LUMINANCE SHADOW_COLOR_MULTIPLY_ADDITIVE SHADOW_COLOR_HSV_MODIFIER SHADOW_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ EDGE_PLAIN EDGE_SHINY
#pragma shader_feature_local_fragment _ EDGE_COLOR_MULTIPLY EDGE_COLOR_ADDITIVE EDGE_COLOR_SUBTRACTIVE EDGE_COLOR_REPLACE EDGE_COLOR_MULTIPLY_LUMINANCE EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_COLOR_HSV_MODIFIER EDGE_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ DETAIL_MASKING DETAIL_MULTIPLY DETAIL_ADDITIVE DETAIL_REPLACE DETAIL_MULTIPLY_ADDITIVE
#pragma shader_feature_local_fragment _ TARGET_HUE TARGET_LUMINANCE
#pragma shader_feature_local_fragment _ GRADATION_GRADIENT GRADATION_RADIAL GRADATION_COLOR2 GRADATION_COLOR4
#pragma shader_feature_fragment _ UIEFFECT_EDITOR
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#pragma shader_feature _ SOFTMASK_EDITOR
#pragma shader_feature_fragment _ SOFTMASK_EDITOR
#pragma shader_feature_local_fragment _ SOFTMASKABLE
#if SOFTMASKABLE
#include "Packages/com.coffee.softmask-for-ugui/Shaders/SoftMask.cginc"
@@ -121,7 +120,7 @@ SubShader {
fixed4 color : COLOR;
float4 texcoord0 : TEXCOORD0;
// ==== UIEFFECT START ====
float4 texcoord1 : TEXCOORD1;
float2 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
// ==== UIEFFECT END ====
};
@@ -143,13 +142,9 @@ SubShader {
#endif
// ==== UIEFFECT START ====
float4 uvMask : TEXCOORD5;
float2 uvLocal : TEXCOORD6;
float4 worldPosition : TEXCOORD6;
fixed alpha : TEXCOORD7;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
float4 worldPosition : TEXCOORD7;
#endif
// ==== SOFTMASKABLE END ====
};
float _UIMaskSoftnessX;
@@ -192,17 +187,17 @@ SubShader {
{
input.color.rgb = UIGammaToLinear(input.color.rgb);
}
float opacity = input.color.a;
float opacity = 1;
#if (UNDERLAY_ON | UNDERLAY_INNER)
opacity = 1.0;
#endif
fixed4 faceColor = fixed4(input.color.rgb, opacity) * _FaceColor;
// faceColor.rgb *= faceColor.a;
faceColor.rgb *= faceColor.a;
fixed4 outlineColor = _OutlineColor;
outlineColor.a *= opacity;
// outlineColor.rgb *= outlineColor.a;
outlineColor.rgb *= outlineColor.a;
outlineColor = lerp(faceColor, outlineColor, sqrt(min(1.0, (outline * 2))));
#if (UNDERLAY_ON | UNDERLAY_INNER)
@@ -227,19 +222,15 @@ SubShader {
const half2 maskSoftness = half2(max(_UIMaskSoftnessX, _MaskSoftnessX), max(_UIMaskSoftnessY, _MaskSoftnessY));
output.mask = half4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * maskSoftness + pixelSize.xy));
#if (UNDERLAY_ON || UNDERLAY_INNER)
output.texcoord1 = float4(input.texcoord0 + layerOffset, input.color.a, 0);
output.texcoord1 = float4(input.texcoord0 + layerOffset, 1, 0);
output.underlayParam = half2(layerScale, layerBias);
#endif
// ==== UIEFFECT START ====
output.uvLocal = input.texcoord1.zw;
output.uvMask = input.texcoord2;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
output.worldPosition = input.vertex;
#endif
// ==== SOFTMASKABLE END ====
output.alpha = input.color.a;
// ==== UIEFFECT END ====
return output;
}
@@ -284,7 +275,8 @@ SubShader {
{
UNITY_SETUP_INSTANCE_ID(input);
_fragInput = input;
half4 c = uieffect(_fragInput.texcoord0.xy, _fragInput.uvMask, _fragInput.uvLocal);
half4 c = uieffect(input.texcoord0.xy, input.uvMask, input.worldPosition);
c *= input.alpha;
// Alternative implementation to UnityGet2DClipping with support for softness.
#if UNITY_UI_CLIP_RECT
@@ -4,6 +4,6 @@ ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData: v5.6.0 (Unity 6)
userData: v5.7.0 (Unity 6)
assetBundleName:
assetBundleVariant:
@@ -93,19 +93,18 @@ SubShader {
// ==== UIEFFECT START ====
#pragma shader_feature_local_fragment _ TONE_GRAYSCALE TONE_SEPIA TONE_NEGATIVE TONE_RETRO TONE_POSTERIZE
#pragma shader_feature_local_fragment _ COLOR_MULTIPLY COLOR_ADDITIVE COLOR_SUBTRACTIVE COLOR_REPLACE COLOR_MULTIPLY_LUMINANCE COLOR_MULTIPLY_ADDITIVE COLOR_HSV_MODIFIER COLOR_CONTRAST
#pragma shader_feature_local_fragment _ COLOR_FILTER
#pragma shader_feature_local_fragment _ SAMPLING_BLUR_FAST SAMPLING_BLUR_MEDIUM SAMPLING_BLUR_DETAIL SAMPLING_PIXELATION SAMPLING_RGB_SHIFT SAMPLING_EDGE_LUMINANCE SAMPLING_EDGE_ALPHA
#pragma shader_feature_local_fragment _ TRANSITION_FADE TRANSITION_CUTOFF TRANSITION_DISSOLVE TRANSITION_SHINY TRANSITION_MASK TRANSITION_MELT TRANSITION_BURN TRANSITION_PATTERN
#pragma shader_feature_local_fragment _ TRANSITION_COLOR_MULTIPLY TRANSITION_COLOR_ADDITIVE TRANSITION_COLOR_SUBTRACTIVE TRANSITION_COLOR_REPLACE TRANSITION_COLOR_MULTIPLY_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_COLOR_HSV_MODIFIER TRANSITION_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ SHADOW_COLOR_MULTIPLY SHADOW_COLOR_ADDITIVE SHADOW_COLOR_SUBTRACTIVE SHADOW_COLOR_REPLACE SHADOW_COLOR_MULTIPLY_LUMINANCE SHADOW_COLOR_MULTIPLY_ADDITIVE SHADOW_COLOR_HSV_MODIFIER SHADOW_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ EDGE_PLAIN EDGE_SHINY
#pragma shader_feature_local_fragment _ EDGE_COLOR_MULTIPLY EDGE_COLOR_ADDITIVE EDGE_COLOR_SUBTRACTIVE EDGE_COLOR_REPLACE EDGE_COLOR_MULTIPLY_LUMINANCE EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_COLOR_HSV_MODIFIER EDGE_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ DETAIL_MASKING DETAIL_MULTIPLY DETAIL_ADDITIVE DETAIL_REPLACE DETAIL_MULTIPLY_ADDITIVE
#pragma shader_feature_local_fragment _ TARGET_HUE TARGET_LUMINANCE
#pragma shader_feature_local_fragment _ GRADATION_GRADIENT GRADATION_RADIAL GRADATION_COLOR2 GRADATION_COLOR4
#pragma shader_feature_fragment _ UIEFFECT_EDITOR
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#pragma shader_feature _ SOFTMASK_EDITOR
#pragma shader_feature_fragment _ SOFTMASK_EDITOR
#pragma shader_feature_local_fragment _ SOFTMASKABLE
#if SOFTMASKABLE
#include "Packages/com.coffee.softmask-for-ugui/Shaders/SoftMask.cginc"
@@ -123,7 +122,7 @@ SubShader {
float4 color : COLOR;
float2 texcoord0 : TEXCOORD0;
// ==== UIEFFECT START ====
float4 texcoord1 : TEXCOORD1;
float2 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
// ==== UIEFFECT END ====
};
@@ -143,13 +142,9 @@ SubShader {
#endif
// ==== UIEFFECT START ====
float4 uvMask : TEXCOORD4;
float2 uvLocal : TEXCOORD5;
float4 worldPosition : TEXCOORD5;
fixed alpha : TEXCOORD6;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
float4 worldPosition : TEXCOORD6;
#endif
// ==== SOFTMASKABLE END ====
};
float _UIMaskSoftnessX;
@@ -188,7 +183,7 @@ SubShader {
color = SRGBToLinear(input.color);
#endif
float opacity = color.a;
float opacity = 1;
#if (UNDERLAY_ON | UNDERLAY_INNER)
opacity = 1.0;
#endif
@@ -219,19 +214,15 @@ SubShader {
float x = -(_UnderlayOffsetX * _ScaleRatioC) * _GradientScale / _TextureWidth;
float y = -(_UnderlayOffsetY * _ScaleRatioC) * _GradientScale / _TextureHeight;
output.texcoord2 = float4(input.texcoord0 + float2(x, y), input.color.a, 0);
output.texcoord2 = float4(input.texcoord0 + float2(x, y), 1, 0);
output.underlayColor = underlayColor;
#endif
// ==== UIEFFECT START ====
output.uvLocal = input.texcoord1.zw;
output.uvMask = input.texcoord2;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
output.worldPosition = input.position;
#endif
// ==== SOFTMASKABLE END ====
output.alpha = input.color.a;
// ==== UIEFFECT END ====
return output;
}
@@ -298,7 +289,8 @@ SubShader {
{
UNITY_SETUP_INSTANCE_ID(input);
_fragInput = input;
half4 faceColor = uieffect(_fragInput.texcoord0, _fragInput.uvMask, _fragInput.uvLocal);
half4 faceColor = uieffect(input.texcoord0, input.uvMask, input.worldPosition);
faceColor *= input.alpha;
// Alternative implementation to UnityGet2DClipping with support for softness
#if UNITY_UI_CLIP_RECT
@@ -4,6 +4,6 @@ ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData: v5.6.0 (Unity 6)
userData: v5.7.0 (Unity 6)
assetBundleName:
assetBundleVariant:
@@ -91,19 +91,18 @@ SubShader {
// ==== UIEFFECT START ====
#pragma shader_feature_local_fragment _ TONE_GRAYSCALE TONE_SEPIA TONE_NEGATIVE TONE_RETRO TONE_POSTERIZE
#pragma shader_feature_local_fragment _ COLOR_MULTIPLY COLOR_ADDITIVE COLOR_SUBTRACTIVE COLOR_REPLACE COLOR_MULTIPLY_LUMINANCE COLOR_MULTIPLY_ADDITIVE COLOR_HSV_MODIFIER COLOR_CONTRAST
#pragma shader_feature_local_fragment _ COLOR_FILTER
#pragma shader_feature_local_fragment _ SAMPLING_BLUR_FAST SAMPLING_BLUR_MEDIUM SAMPLING_BLUR_DETAIL SAMPLING_PIXELATION SAMPLING_RGB_SHIFT SAMPLING_EDGE_LUMINANCE SAMPLING_EDGE_ALPHA
#pragma shader_feature_local_fragment _ TRANSITION_FADE TRANSITION_CUTOFF TRANSITION_DISSOLVE TRANSITION_SHINY TRANSITION_MASK TRANSITION_MELT TRANSITION_BURN TRANSITION_PATTERN
#pragma shader_feature_local_fragment _ TRANSITION_COLOR_MULTIPLY TRANSITION_COLOR_ADDITIVE TRANSITION_COLOR_SUBTRACTIVE TRANSITION_COLOR_REPLACE TRANSITION_COLOR_MULTIPLY_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_COLOR_HSV_MODIFIER TRANSITION_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ SHADOW_COLOR_MULTIPLY SHADOW_COLOR_ADDITIVE SHADOW_COLOR_SUBTRACTIVE SHADOW_COLOR_REPLACE SHADOW_COLOR_MULTIPLY_LUMINANCE SHADOW_COLOR_MULTIPLY_ADDITIVE SHADOW_COLOR_HSV_MODIFIER SHADOW_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ EDGE_PLAIN EDGE_SHINY
#pragma shader_feature_local_fragment _ EDGE_COLOR_MULTIPLY EDGE_COLOR_ADDITIVE EDGE_COLOR_SUBTRACTIVE EDGE_COLOR_REPLACE EDGE_COLOR_MULTIPLY_LUMINANCE EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_COLOR_HSV_MODIFIER EDGE_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ DETAIL_MASKING DETAIL_MULTIPLY DETAIL_ADDITIVE DETAIL_REPLACE DETAIL_MULTIPLY_ADDITIVE
#pragma shader_feature_local_fragment _ TARGET_HUE TARGET_LUMINANCE
#pragma shader_feature_local_fragment _ GRADATION_GRADIENT GRADATION_RADIAL GRADATION_COLOR2 GRADATION_COLOR4
#pragma shader_feature_fragment _ UIEFFECT_EDITOR
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#pragma shader_feature _ SOFTMASK_EDITOR
#pragma shader_feature_fragment _ SOFTMASK_EDITOR
#pragma shader_feature_local_fragment _ SOFTMASKABLE
#if SOFTMASKABLE
#include "Packages/com.coffee.softmask-for-ugui/Shaders/SoftMask.cginc"
@@ -121,7 +120,7 @@ SubShader {
fixed4 color : COLOR;
float4 texcoord0 : TEXCOORD0;
// ==== UIEFFECT START ====
float4 texcoord1 : TEXCOORD1;
float2 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
// ==== UIEFFECT END ====
};
@@ -141,13 +140,9 @@ SubShader {
#endif
// ==== UIEFFECT START ====
float4 uvMask : TEXCOORD5;
float2 uvLocal : TEXCOORD6;
float4 worldPosition : TEXCOORD6;
fixed alpha : TEXCOORD7;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
float4 worldPosition : TEXCOORD7;
#endif
// ==== SOFTMASKABLE END ====
};
float _UIMaskSoftnessX;
@@ -190,17 +185,17 @@ SubShader {
{
input.color.rgb = UIGammaToLinear(input.color.rgb);
}
float opacity = input.color.a;
float opacity = 1;
#if (UNDERLAY_ON | UNDERLAY_INNER)
opacity = 1.0;
#endif
fixed4 faceColor = fixed4(input.color.rgb, opacity) * _FaceColor;
//faceColor.rgb *= faceColor.a;
faceColor.rgb *= faceColor.a;
fixed4 outlineColor = _OutlineColor;
outlineColor.a *= opacity;
//outlineColor.rgb *= outlineColor.a;
outlineColor.rgb *= outlineColor.a;
outlineColor = lerp(faceColor, outlineColor, sqrt(min(1.0, (outline * 2))));
#if (UNDERLAY_ON | UNDERLAY_INNER)
@@ -226,19 +221,15 @@ SubShader {
const half2 maskSoftness = half2(max(_UIMaskSoftnessX, _MaskSoftnessX), max(_UIMaskSoftnessY, _MaskSoftnessY));
output.mask = half4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * maskSoftness + pixelSize.xy));
#if (UNDERLAY_ON || UNDERLAY_INNER)
output.texcoord1 = float4(input.texcoord0 + layerOffset, input.color.a, 0);
output.texcoord1 = float4(input.texcoord0 + layerOffset, 1, 0);
output.underlayParam = half2(layerScale, layerBias);
#endif
// ==== UIEFFECT START ====
output.uvLocal = input.texcoord1.zw;
output.uvMask = input.texcoord2;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
output.worldPosition = input.vertex;
#endif
// ==== SOFTMASKABLE END ====
output.alpha = input.color.a;
// ==== UIEFFECT END ====
return output;
}
@@ -285,8 +276,9 @@ SubShader {
{
UNITY_SETUP_INSTANCE_ID(input);
_fragInput = input;
half4 c = uieffect(_fragInput.texcoord0.xy, _fragInput.uvMask, _fragInput.uvLocal);
half4 c = uieffect(input.texcoord0.xy, input.uvMask, input.worldPosition);
c *= input.alpha;
// Alternative implementation to UnityGet2DClipping with support for softness.
#if UNITY_UI_CLIP_RECT
half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(input.mask.xy)) * input.mask.zw);
@@ -4,6 +4,6 @@ ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData: v5.6.0 (Unity 6)
userData: v5.7.0 (Unity 6)
assetBundleName:
assetBundleVariant:
@@ -128,19 +128,18 @@ SubShader {
// ==== UIEFFECT START ====
#pragma shader_feature_local_fragment _ TONE_GRAYSCALE TONE_SEPIA TONE_NEGATIVE TONE_RETRO TONE_POSTERIZE
#pragma shader_feature_local_fragment _ COLOR_MULTIPLY COLOR_ADDITIVE COLOR_SUBTRACTIVE COLOR_REPLACE COLOR_MULTIPLY_LUMINANCE COLOR_MULTIPLY_ADDITIVE COLOR_HSV_MODIFIER COLOR_CONTRAST
#pragma shader_feature_local_fragment _ COLOR_FILTER
#pragma shader_feature_local_fragment _ SAMPLING_BLUR_FAST SAMPLING_BLUR_MEDIUM SAMPLING_BLUR_DETAIL SAMPLING_PIXELATION SAMPLING_RGB_SHIFT SAMPLING_EDGE_LUMINANCE SAMPLING_EDGE_ALPHA
#pragma shader_feature_local_fragment _ TRANSITION_FADE TRANSITION_CUTOFF TRANSITION_DISSOLVE TRANSITION_SHINY TRANSITION_MASK TRANSITION_MELT TRANSITION_BURN TRANSITION_PATTERN
#pragma shader_feature_local_fragment _ TRANSITION_COLOR_MULTIPLY TRANSITION_COLOR_ADDITIVE TRANSITION_COLOR_SUBTRACTIVE TRANSITION_COLOR_REPLACE TRANSITION_COLOR_MULTIPLY_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_COLOR_HSV_MODIFIER TRANSITION_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ SHADOW_COLOR_MULTIPLY SHADOW_COLOR_ADDITIVE SHADOW_COLOR_SUBTRACTIVE SHADOW_COLOR_REPLACE SHADOW_COLOR_MULTIPLY_LUMINANCE SHADOW_COLOR_MULTIPLY_ADDITIVE SHADOW_COLOR_HSV_MODIFIER SHADOW_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ EDGE_PLAIN EDGE_SHINY
#pragma shader_feature_local_fragment _ EDGE_COLOR_MULTIPLY EDGE_COLOR_ADDITIVE EDGE_COLOR_SUBTRACTIVE EDGE_COLOR_REPLACE EDGE_COLOR_MULTIPLY_LUMINANCE EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_COLOR_HSV_MODIFIER EDGE_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ DETAIL_MASKING DETAIL_MULTIPLY DETAIL_ADDITIVE DETAIL_REPLACE DETAIL_MULTIPLY_ADDITIVE
#pragma shader_feature_local_fragment _ TARGET_HUE TARGET_LUMINANCE
#pragma shader_feature_local_fragment _ GRADATION_GRADIENT GRADATION_RADIAL GRADATION_COLOR2 GRADATION_COLOR4
#pragma shader_feature_fragment _ UIEFFECT_EDITOR
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#pragma shader_feature _ SOFTMASK_EDITOR
#pragma shader_feature_fragment _ SOFTMASK_EDITOR
#pragma shader_feature_local_fragment _ SOFTMASKABLE
#if SOFTMASKABLE
#include "Packages/com.coffee.softmask-for-ugui/Shaders/SoftMask.cginc"
@@ -160,7 +159,7 @@ SubShader {
fixed4 color : COLOR;
float4 texcoord0 : TEXCOORD0;
// ==== UIEFFECT START ====
float4 texcoord1 : TEXCOORD1;
float2 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
// ==== UIEFFECT END ====
};
@@ -184,13 +183,8 @@ SubShader {
float4 textures : TEXCOORD5;
// ==== UIEFFECT START ====
float4 uvMask : TEXCOORD6;
float2 uvLocal : TEXCOORD7;
float4 worldPosition : TEXCOORD7;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
float4 worldPosition : TEXCOORD8;
#endif
// ==== SOFTMASKABLE END ====
};
// Used by Unity internally to handle Texture Tiling and Offset.
@@ -277,14 +271,9 @@ SubShader {
output.textures = float4(faceUV, outlineUV);
// ==== UIEFFECT START ====
output.uvLocal = input.texcoord1.zw;
output.uvMask = input.texcoord2;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
output.worldPosition = input.position;
#endif
// ==== SOFTMASKABLE END ====
// ==== UIEFFECT END ====
return output;
}
@@ -354,7 +343,7 @@ SubShader {
faceColor.rgb += glowColor.rgb * glowColor.a;
#endif
return faceColor * input.color.a;
return faceColor;
}
#define UIEFFECT_TEXTMESHPRO 1
#include "Packages/com.coffee.ui-effect/Shaders/UIEffect.cginc"
@@ -364,8 +353,9 @@ SubShader {
{
UNITY_SETUP_INSTANCE_ID(input);
_fragInput = input;
half4 faceColor = uieffect(_fragInput.atlas, _fragInput.uvMask, _fragInput.uvLocal);
half4 faceColor = uieffect(input.atlas, input.uvMask, input.worldPosition);
faceColor *= input.color.a;
#if UNITY_UI_CLIP_RECT
half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(input.mask.xy)) * input.mask.zw);
faceColor *= m.x * m.y;
@@ -4,6 +4,6 @@ ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData: v5.6.0 (Unity 6)
userData: v5.7.0 (Unity 6)
assetBundleName:
assetBundleVariant:
@@ -59,19 +59,18 @@ SubShader {
// ==== UIEFFECT START ====
#pragma shader_feature_local_fragment _ TONE_GRAYSCALE TONE_SEPIA TONE_NEGATIVE TONE_RETRO TONE_POSTERIZE
#pragma shader_feature_local_fragment _ COLOR_MULTIPLY COLOR_ADDITIVE COLOR_SUBTRACTIVE COLOR_REPLACE COLOR_MULTIPLY_LUMINANCE COLOR_MULTIPLY_ADDITIVE COLOR_HSV_MODIFIER COLOR_CONTRAST
#pragma shader_feature_local_fragment _ COLOR_FILTER
#pragma shader_feature_local_fragment _ SAMPLING_BLUR_FAST SAMPLING_BLUR_MEDIUM SAMPLING_BLUR_DETAIL SAMPLING_PIXELATION SAMPLING_RGB_SHIFT SAMPLING_EDGE_LUMINANCE SAMPLING_EDGE_ALPHA
#pragma shader_feature_local_fragment _ TRANSITION_FADE TRANSITION_CUTOFF TRANSITION_DISSOLVE TRANSITION_SHINY TRANSITION_MASK TRANSITION_MELT TRANSITION_BURN TRANSITION_PATTERN
#pragma shader_feature_local_fragment _ TRANSITION_COLOR_MULTIPLY TRANSITION_COLOR_ADDITIVE TRANSITION_COLOR_SUBTRACTIVE TRANSITION_COLOR_REPLACE TRANSITION_COLOR_MULTIPLY_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_COLOR_HSV_MODIFIER TRANSITION_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ SHADOW_COLOR_MULTIPLY SHADOW_COLOR_ADDITIVE SHADOW_COLOR_SUBTRACTIVE SHADOW_COLOR_REPLACE SHADOW_COLOR_MULTIPLY_LUMINANCE SHADOW_COLOR_MULTIPLY_ADDITIVE SHADOW_COLOR_HSV_MODIFIER SHADOW_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ EDGE_PLAIN EDGE_SHINY
#pragma shader_feature_local_fragment _ EDGE_COLOR_MULTIPLY EDGE_COLOR_ADDITIVE EDGE_COLOR_SUBTRACTIVE EDGE_COLOR_REPLACE EDGE_COLOR_MULTIPLY_LUMINANCE EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_COLOR_HSV_MODIFIER EDGE_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ DETAIL_MASKING DETAIL_MULTIPLY DETAIL_ADDITIVE DETAIL_REPLACE DETAIL_MULTIPLY_ADDITIVE
#pragma shader_feature_local_fragment _ TARGET_HUE TARGET_LUMINANCE
#pragma shader_feature_local_fragment _ GRADATION_GRADIENT GRADATION_RADIAL GRADATION_COLOR2 GRADATION_COLOR4
#pragma shader_feature_fragment _ UIEFFECT_EDITOR
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#pragma shader_feature _ SOFTMASK_EDITOR
#pragma shader_feature_fragment _ SOFTMASK_EDITOR
#pragma shader_feature_local_fragment _ SOFTMASKABLE
#if SOFTMASKABLE
#include "Packages/com.coffee.softmask-for-ugui/Shaders/SoftMask.cginc"
@@ -85,7 +84,7 @@ SubShader {
fixed4 color : COLOR;
float2 texcoord0 : TEXCOORD0;
// ==== UIEFFECT START ====
float4 texcoord1 : TEXCOORD1;
float2 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
// ==== UIEFFECT END ====
};
@@ -97,13 +96,8 @@ SubShader {
float4 mask : TEXCOORD2;
// ==== UIEFFECT START ====
float4 uvMask : TEXCOORD3;
float2 uvLocal : TEXCOORD4;
float4 worldPosition : TEXCOORD4;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
float4 worldPosition : TEXCOORD5;
#endif
// ==== SOFTMASKABLE END ====
};
sampler2D _MainTex;
@@ -142,14 +136,9 @@ SubShader {
OUT.mask = float4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * maskSoftness + pixelSize.xy));
// ==== UIEFFECT START ====
OUT.uvLocal = v.texcoord1.zw;
OUT.uvMask = v.texcoord2;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
OUT.worldPosition = v.vertex;
#endif
// ==== SOFTMASKABLE END ====
// ==== UIEFFECT END ====
return OUT;
}
@@ -160,7 +149,7 @@ SubShader {
{
v2f IN = _fragInput;
float2 uvMove = uv - IN.texcoord0;
fixed4 color = fixed4(IN.color.rgb, IN.color.a * tex2D(_MainTex, IN.texcoord0 + uvMove).a);
fixed4 color = fixed4(IN.color.rgb, tex2D(_MainTex, IN.texcoord0 + uvMove).a);
color.rgb *= color.a;
return color;
}
@@ -172,7 +161,8 @@ SubShader {
fixed4 frag (v2f IN) : COLOR
{
_fragInput = IN;
fixed4 color = uieffect(_fragInput.texcoord0, _fragInput.uvMask, _fragInput.uvLocal);
fixed4 color = uieffect(IN.texcoord0, IN.uvMask, IN.worldPosition);
color *= IN.color.a;
// Alternative implementation to UnityGet2DClipping with support for softness.
#if UNITY_UI_CLIP_RECT
@@ -4,6 +4,6 @@ ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData: v5.6.0
userData: v5.7.0
assetBundleName:
assetBundleVariant:
@@ -58,19 +58,18 @@ SubShader{
// ==== UIEFFECT START ====
#pragma shader_feature_local_fragment _ TONE_GRAYSCALE TONE_SEPIA TONE_NEGATIVE TONE_RETRO TONE_POSTERIZE
#pragma shader_feature_local_fragment _ COLOR_MULTIPLY COLOR_ADDITIVE COLOR_SUBTRACTIVE COLOR_REPLACE COLOR_MULTIPLY_LUMINANCE COLOR_MULTIPLY_ADDITIVE COLOR_HSV_MODIFIER COLOR_CONTRAST
#pragma shader_feature_local_fragment _ COLOR_FILTER
#pragma shader_feature_local_fragment _ SAMPLING_BLUR_FAST SAMPLING_BLUR_MEDIUM SAMPLING_BLUR_DETAIL SAMPLING_PIXELATION SAMPLING_RGB_SHIFT SAMPLING_EDGE_LUMINANCE SAMPLING_EDGE_ALPHA
#pragma shader_feature_local_fragment _ TRANSITION_FADE TRANSITION_CUTOFF TRANSITION_DISSOLVE TRANSITION_SHINY TRANSITION_MASK TRANSITION_MELT TRANSITION_BURN TRANSITION_PATTERN
#pragma shader_feature_local_fragment _ TRANSITION_COLOR_MULTIPLY TRANSITION_COLOR_ADDITIVE TRANSITION_COLOR_SUBTRACTIVE TRANSITION_COLOR_REPLACE TRANSITION_COLOR_MULTIPLY_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_COLOR_HSV_MODIFIER TRANSITION_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ SHADOW_COLOR_MULTIPLY SHADOW_COLOR_ADDITIVE SHADOW_COLOR_SUBTRACTIVE SHADOW_COLOR_REPLACE SHADOW_COLOR_MULTIPLY_LUMINANCE SHADOW_COLOR_MULTIPLY_ADDITIVE SHADOW_COLOR_HSV_MODIFIER SHADOW_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ EDGE_PLAIN EDGE_SHINY
#pragma shader_feature_local_fragment _ EDGE_COLOR_MULTIPLY EDGE_COLOR_ADDITIVE EDGE_COLOR_SUBTRACTIVE EDGE_COLOR_REPLACE EDGE_COLOR_MULTIPLY_LUMINANCE EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_COLOR_HSV_MODIFIER EDGE_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ DETAIL_MASKING DETAIL_MULTIPLY DETAIL_ADDITIVE DETAIL_REPLACE DETAIL_MULTIPLY_ADDITIVE
#pragma shader_feature_local_fragment _ TARGET_HUE TARGET_LUMINANCE
#pragma shader_feature_local_fragment _ GRADATION_GRADIENT GRADATION_RADIAL GRADATION_COLOR2 GRADATION_COLOR4
#pragma shader_feature_fragment _ UIEFFECT_EDITOR
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#pragma shader_feature _ SOFTMASK_EDITOR
#pragma shader_feature_fragment _ SOFTMASK_EDITOR
#pragma shader_feature_local_fragment _ SOFTMASKABLE
#if SOFTMASKABLE
#include "Packages/com.coffee.softmask-for-ugui/Shaders/SoftMask.cginc"
@@ -84,7 +83,7 @@ SubShader{
fixed4 color : COLOR;
float2 texcoord0 : TEXCOORD0;
// ==== UIEFFECT START ====
float4 texcoord1 : TEXCOORD1;
float2 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
// ==== UIEFFECT END ====
};
@@ -97,13 +96,8 @@ SubShader{
float4 mask : TEXCOORD2;
// ==== UIEFFECT START ====
float4 uvMask : TEXCOORD3;
float2 uvLocal : TEXCOORD4;
float4 worldPosition : TEXCOORD4;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
float4 worldPosition : TEXCOORD5;
#endif
// ==== SOFTMASKABLE END ====
};
uniform sampler2D _MainTex;
@@ -155,14 +149,9 @@ SubShader{
OUT.mask = float4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * maskSoftness + pixelSize.xy));
// ==== UIEFFECT START ====
OUT.uvLocal = v.texcoord1.zw;
OUT.uvMask = v.texcoord2;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
OUT.worldPosition = v.vertex;
#endif
// ==== SOFTMASKABLE END ====
// ==== UIEFFECT END ====
return OUT;
}
@@ -174,7 +163,7 @@ SubShader{
v2f IN = _fragInput;
float2 uvMove = uv - IN.texcoord0;
fixed4 color = tex2D(_MainTex, IN.texcoord0 + uvMove);
color = fixed4 (tex2D(_FaceTex, IN.texcoord1).rgb * IN.color.rgb, IN.color.a * color.a);
color = fixed4 (tex2D(_FaceTex, IN.texcoord1).rgb * IN.color.rgb, color.a);
color.rgb *= color.a;
return color;
}
@@ -186,7 +175,8 @@ SubShader{
fixed4 frag (v2f IN) : SV_Target
{
_fragInput = IN;
fixed4 color = uieffect(_fragInput.texcoord0, _fragInput.uvMask, _fragInput.uvLocal);
fixed4 color = uieffect(IN.texcoord0, IN.uvMask, IN.worldPosition);
color *= IN.color.a;
// Alternative implementation to UnityGet2DClipping with support for softness.
#if UNITY_UI_CLIP_RECT
@@ -4,6 +4,6 @@ ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData: v5.6.0
userData: v5.7.0
assetBundleName:
assetBundleVariant:
@@ -128,19 +128,18 @@ SubShader {
// ==== UIEFFECT START ====
#pragma shader_feature_local_fragment _ TONE_GRAYSCALE TONE_SEPIA TONE_NEGATIVE TONE_RETRO TONE_POSTERIZE
#pragma shader_feature_local_fragment _ COLOR_MULTIPLY COLOR_ADDITIVE COLOR_SUBTRACTIVE COLOR_REPLACE COLOR_MULTIPLY_LUMINANCE COLOR_MULTIPLY_ADDITIVE COLOR_HSV_MODIFIER COLOR_CONTRAST
#pragma shader_feature_local_fragment _ COLOR_FILTER
#pragma shader_feature_local_fragment _ SAMPLING_BLUR_FAST SAMPLING_BLUR_MEDIUM SAMPLING_BLUR_DETAIL SAMPLING_PIXELATION SAMPLING_RGB_SHIFT SAMPLING_EDGE_LUMINANCE SAMPLING_EDGE_ALPHA
#pragma shader_feature_local_fragment _ TRANSITION_FADE TRANSITION_CUTOFF TRANSITION_DISSOLVE TRANSITION_SHINY TRANSITION_MASK TRANSITION_MELT TRANSITION_BURN TRANSITION_PATTERN
#pragma shader_feature_local_fragment _ TRANSITION_COLOR_MULTIPLY TRANSITION_COLOR_ADDITIVE TRANSITION_COLOR_SUBTRACTIVE TRANSITION_COLOR_REPLACE TRANSITION_COLOR_MULTIPLY_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_COLOR_HSV_MODIFIER TRANSITION_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ SHADOW_COLOR_MULTIPLY SHADOW_COLOR_ADDITIVE SHADOW_COLOR_SUBTRACTIVE SHADOW_COLOR_REPLACE SHADOW_COLOR_MULTIPLY_LUMINANCE SHADOW_COLOR_MULTIPLY_ADDITIVE SHADOW_COLOR_HSV_MODIFIER SHADOW_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ EDGE_PLAIN EDGE_SHINY
#pragma shader_feature_local_fragment _ EDGE_COLOR_MULTIPLY EDGE_COLOR_ADDITIVE EDGE_COLOR_SUBTRACTIVE EDGE_COLOR_REPLACE EDGE_COLOR_MULTIPLY_LUMINANCE EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_COLOR_HSV_MODIFIER EDGE_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ DETAIL_MASKING DETAIL_MULTIPLY DETAIL_ADDITIVE DETAIL_REPLACE DETAIL_MULTIPLY_ADDITIVE
#pragma shader_feature_local_fragment _ TARGET_HUE TARGET_LUMINANCE
#pragma shader_feature_local_fragment _ GRADATION_GRADIENT GRADATION_RADIAL GRADATION_COLOR2 GRADATION_COLOR4
#pragma shader_feature_fragment _ UIEFFECT_EDITOR
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#pragma shader_feature _ SOFTMASK_EDITOR
#pragma shader_feature_fragment _ SOFTMASK_EDITOR
#pragma shader_feature_local_fragment _ SOFTMASKABLE
#if SOFTMASKABLE
#include "Packages/com.coffee.softmask-for-ugui/Shaders/SoftMask.cginc"
@@ -159,7 +158,7 @@ SubShader {
fixed4 color : COLOR;
float2 texcoord0 : TEXCOORD0;
// ==== UIEFFECT START ====
float4 texcoord1 : TEXCOORD1;
float2 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
// ==== UIEFFECT END ====
};
@@ -182,13 +181,8 @@ SubShader {
float4 textures : TEXCOORD5;
// ==== UIEFFECT START ====
float4 uvMask : TEXCOORD6;
float2 uvLocal : TEXCOORD7;
float4 worldPosition : TEXCOORD7;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
float4 worldPosition : TEXCOORD8;
#endif
// ==== SOFTMASKABLE END ====
};
// Used by Unity internally to handle Texture Tiling and Offset.
@@ -270,14 +264,9 @@ SubShader {
output.textures = float4(faceUV, outlineUV);
// ==== UIEFFECT START ====
output.uvLocal = input.texcoord1.zw;
output.uvMask = input.texcoord2;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
output.worldPosition = input.position;
#endif
// ==== SOFTMASKABLE END ====
// ==== UIEFFECT END ====
return output;
}
@@ -346,7 +335,7 @@ SubShader {
faceColor.rgb += glowColor.rgb * glowColor.a;
#endif
return faceColor * input.color.a;
return faceColor;
}
#define UIEFFECT_TEXTMESHPRO 1
@@ -357,7 +346,8 @@ SubShader {
{
UNITY_SETUP_INSTANCE_ID(input);
_fragInput = input;
half4 faceColor = uieffect(_fragInput.atlas, _fragInput.uvMask, _fragInput.uvLocal);
half4 faceColor = uieffect(input.atlas, input.uvMask, input.worldPosition);
faceColor *= input.color.a;
#if UNITY_UI_CLIP_RECT
half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(input.mask.xy)) * input.mask.zw);
@@ -4,6 +4,6 @@ ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData: v5.6.0
userData: v5.7.0
assetBundleName:
assetBundleVariant:
@@ -128,19 +128,18 @@ SubShader {
// ==== UIEFFECT START ====
#pragma shader_feature_local_fragment _ TONE_GRAYSCALE TONE_SEPIA TONE_NEGATIVE TONE_RETRO TONE_POSTERIZE
#pragma shader_feature_local_fragment _ COLOR_MULTIPLY COLOR_ADDITIVE COLOR_SUBTRACTIVE COLOR_REPLACE COLOR_MULTIPLY_LUMINANCE COLOR_MULTIPLY_ADDITIVE COLOR_HSV_MODIFIER COLOR_CONTRAST
#pragma shader_feature_local_fragment _ COLOR_FILTER
#pragma shader_feature_local_fragment _ SAMPLING_BLUR_FAST SAMPLING_BLUR_MEDIUM SAMPLING_BLUR_DETAIL SAMPLING_PIXELATION SAMPLING_RGB_SHIFT SAMPLING_EDGE_LUMINANCE SAMPLING_EDGE_ALPHA
#pragma shader_feature_local_fragment _ TRANSITION_FADE TRANSITION_CUTOFF TRANSITION_DISSOLVE TRANSITION_SHINY TRANSITION_MASK TRANSITION_MELT TRANSITION_BURN TRANSITION_PATTERN
#pragma shader_feature_local_fragment _ TRANSITION_COLOR_MULTIPLY TRANSITION_COLOR_ADDITIVE TRANSITION_COLOR_SUBTRACTIVE TRANSITION_COLOR_REPLACE TRANSITION_COLOR_MULTIPLY_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_COLOR_HSV_MODIFIER TRANSITION_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ SHADOW_COLOR_MULTIPLY SHADOW_COLOR_ADDITIVE SHADOW_COLOR_SUBTRACTIVE SHADOW_COLOR_REPLACE SHADOW_COLOR_MULTIPLY_LUMINANCE SHADOW_COLOR_MULTIPLY_ADDITIVE SHADOW_COLOR_HSV_MODIFIER SHADOW_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ EDGE_PLAIN EDGE_SHINY
#pragma shader_feature_local_fragment _ EDGE_COLOR_MULTIPLY EDGE_COLOR_ADDITIVE EDGE_COLOR_SUBTRACTIVE EDGE_COLOR_REPLACE EDGE_COLOR_MULTIPLY_LUMINANCE EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_COLOR_HSV_MODIFIER EDGE_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ DETAIL_MASKING DETAIL_MULTIPLY DETAIL_ADDITIVE DETAIL_REPLACE DETAIL_MULTIPLY_ADDITIVE
#pragma shader_feature_local_fragment _ TARGET_HUE TARGET_LUMINANCE
#pragma shader_feature_local_fragment _ GRADATION_GRADIENT GRADATION_RADIAL GRADATION_COLOR2 GRADATION_COLOR4
#pragma shader_feature_fragment _ UIEFFECT_EDITOR
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#pragma shader_feature _ SOFTMASK_EDITOR
#pragma shader_feature_fragment _ SOFTMASK_EDITOR
#pragma shader_feature_local_fragment _ SOFTMASKABLE
#if SOFTMASKABLE
#include "Packages/com.coffee.softmask-for-ugui/Shaders/SoftMask.cginc"
@@ -159,7 +158,7 @@ SubShader {
float4 color : COLOR;
float2 texcoord0 : TEXCOORD0;
// ==== UIEFFECT START ====
float4 texcoord1 : TEXCOORD1;
float2 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
// ==== UIEFFECT END ====
};
@@ -182,13 +181,8 @@ SubShader {
float4 textures : TEXCOORD5;
// ==== UIEFFECT START ====
float4 uvMask : TEXCOORD6;
float2 uvLocal : TEXCOORD7;
float4 worldPosition : TEXCOORD7;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
float4 worldPosition : TEXCOORD8;
#endif
// ==== SOFTMASKABLE END ====
};
// Used by Unity internally to handle Texture Tiling and Offset.
@@ -256,14 +250,9 @@ SubShader {
output.textures = float4(faceUV, outlineUV);
// ==== UIEFFECT START ====
output.uvLocal = input.texcoord1.zw;
output.uvMask = input.texcoord2;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
output.worldPosition = input.position;
#endif
// ==== SOFTMASKABLE END ====
// ==== UIEFFECT END ====
return output;
}
@@ -337,7 +326,7 @@ SubShader {
faceColor.rgb += glowColor.rgb * glowColor.a;
#endif
return faceColor * input.color.a;
return faceColor;
}
#define UIEFFECT_TEXTMESHPRO 1
@@ -348,7 +337,8 @@ SubShader {
{
UNITY_SETUP_INSTANCE_ID(input);
_fragInput = input;
half4 faceColor = uieffect(_fragInput.atlas, _fragInput.uvMask, _fragInput.uvLocal);
half4 faceColor = uieffect(input.atlas, input.uvMask, input.worldPosition);
faceColor *= input.color.a;
// Alternative implementation to UnityGet2DClipping with support for softness.
#if UNITY_UI_CLIP_RECT
@@ -4,6 +4,6 @@ ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData: v5.6.0
userData: v5.7.0
assetBundleName:
assetBundleVariant:
@@ -90,19 +90,18 @@ SubShader {
// ==== UIEFFECT START ====
#pragma shader_feature_local_fragment _ TONE_GRAYSCALE TONE_SEPIA TONE_NEGATIVE TONE_RETRO TONE_POSTERIZE
#pragma shader_feature_local_fragment _ COLOR_MULTIPLY COLOR_ADDITIVE COLOR_SUBTRACTIVE COLOR_REPLACE COLOR_MULTIPLY_LUMINANCE COLOR_MULTIPLY_ADDITIVE COLOR_HSV_MODIFIER COLOR_CONTRAST
#pragma shader_feature_local_fragment _ COLOR_FILTER
#pragma shader_feature_local_fragment _ SAMPLING_BLUR_FAST SAMPLING_BLUR_MEDIUM SAMPLING_BLUR_DETAIL SAMPLING_PIXELATION SAMPLING_RGB_SHIFT SAMPLING_EDGE_LUMINANCE SAMPLING_EDGE_ALPHA
#pragma shader_feature_local_fragment _ TRANSITION_FADE TRANSITION_CUTOFF TRANSITION_DISSOLVE TRANSITION_SHINY TRANSITION_MASK TRANSITION_MELT TRANSITION_BURN TRANSITION_PATTERN
#pragma shader_feature_local_fragment _ TRANSITION_COLOR_MULTIPLY TRANSITION_COLOR_ADDITIVE TRANSITION_COLOR_SUBTRACTIVE TRANSITION_COLOR_REPLACE TRANSITION_COLOR_MULTIPLY_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_COLOR_HSV_MODIFIER TRANSITION_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ SHADOW_COLOR_MULTIPLY SHADOW_COLOR_ADDITIVE SHADOW_COLOR_SUBTRACTIVE SHADOW_COLOR_REPLACE SHADOW_COLOR_MULTIPLY_LUMINANCE SHADOW_COLOR_MULTIPLY_ADDITIVE SHADOW_COLOR_HSV_MODIFIER SHADOW_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ EDGE_PLAIN EDGE_SHINY
#pragma shader_feature_local_fragment _ EDGE_COLOR_MULTIPLY EDGE_COLOR_ADDITIVE EDGE_COLOR_SUBTRACTIVE EDGE_COLOR_REPLACE EDGE_COLOR_MULTIPLY_LUMINANCE EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_COLOR_HSV_MODIFIER EDGE_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ DETAIL_MASKING DETAIL_MULTIPLY DETAIL_ADDITIVE DETAIL_REPLACE DETAIL_MULTIPLY_ADDITIVE
#pragma shader_feature_local_fragment _ TARGET_HUE TARGET_LUMINANCE
#pragma shader_feature_local_fragment _ GRADATION_GRADIENT GRADATION_RADIAL GRADATION_COLOR2 GRADATION_COLOR4
#pragma shader_feature_fragment _ UIEFFECT_EDITOR
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#pragma shader_feature _ SOFTMASK_EDITOR
#pragma shader_feature_fragment _ SOFTMASK_EDITOR
#pragma shader_feature_local_fragment _ SOFTMASKABLE
#if SOFTMASKABLE
#include "Packages/com.coffee.softmask-for-ugui/Shaders/SoftMask.cginc"
@@ -120,7 +119,7 @@ SubShader {
fixed4 color : COLOR;
float2 texcoord0 : TEXCOORD0;
// ==== UIEFFECT START ====
float4 texcoord1 : TEXCOORD1;
float2 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
// ==== UIEFFECT END ====
};
@@ -140,13 +139,9 @@ SubShader {
#endif
// ==== UIEFFECT START ====
float4 uvMask : TEXCOORD5;
float2 uvLocal : TEXCOORD6;
float4 worldPosition : TEXCOORD6;
fixed alpha : TEXCOORD7;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
float4 worldPosition : TEXCOORD7;
#endif
// ==== SOFTMASKABLE END ====
};
float _UIMaskSoftnessX;
@@ -184,17 +179,17 @@ SubShader {
float bias = (0.5 - weight) * scale - 0.5;
float outline = _OutlineWidth * _ScaleRatioA * 0.5 * scale;
float opacity = input.color.a;
float opacity = 1;
#if (UNDERLAY_ON | UNDERLAY_INNER)
opacity = 1.0;
#endif
fixed4 faceColor = fixed4(input.color.rgb, opacity) * _FaceColor;
// faceColor.rgb *= faceColor.a;
faceColor.rgb *= faceColor.a;
fixed4 outlineColor = _OutlineColor;
outlineColor.a *= opacity;
// outlineColor.rgb *= outlineColor.a;
outlineColor.rgb *= outlineColor.a;
outlineColor = lerp(faceColor, outlineColor, sqrt(min(1.0, (outline * 2))));
#if (UNDERLAY_ON | UNDERLAY_INNER)
@@ -219,19 +214,15 @@ SubShader {
const half2 maskSoftness = half2(max(_UIMaskSoftnessX, _MaskSoftnessX), max(_UIMaskSoftnessY, _MaskSoftnessY));
output.mask = half4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * maskSoftness + pixelSize.xy));
#if (UNDERLAY_ON || UNDERLAY_INNER)
output.texcoord1 = float4(input.texcoord0 + layerOffset, input.color.a, 0);
output.texcoord1 = float4(input.texcoord0 + layerOffset, 1, 0);
output.underlayParam = half2(layerScale, layerBias);
#endif
// ==== UIEFFECT START ====
output.uvLocal = input.texcoord1.zw;
output.uvMask = input.texcoord2;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
output.worldPosition = input.vertex;
#endif
// ==== SOFTMASKABLE END ====
output.alpha = input.color.a;
// ==== UIEFFECT END ====
return output;
}
@@ -276,7 +267,8 @@ SubShader {
{
UNITY_SETUP_INSTANCE_ID(input);
_fragInput = input;
half4 c = uieffect(_fragInput.texcoord0.xy, _fragInput.uvMask, _fragInput.uvLocal);
half4 c = uieffect(input.texcoord0.xy, input.uvMask, input.worldPosition);
c *= input.alpha;
// Alternative implementation to UnityGet2DClipping with support for softness.
#if UNITY_UI_CLIP_RECT
@@ -4,6 +4,6 @@ ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData: v5.6.0
userData: v5.7.0
assetBundleName:
assetBundleVariant:
@@ -93,19 +93,18 @@ SubShader {
// ==== UIEFFECT START ====
#pragma shader_feature_local_fragment _ TONE_GRAYSCALE TONE_SEPIA TONE_NEGATIVE TONE_RETRO TONE_POSTERIZE
#pragma shader_feature_local_fragment _ COLOR_MULTIPLY COLOR_ADDITIVE COLOR_SUBTRACTIVE COLOR_REPLACE COLOR_MULTIPLY_LUMINANCE COLOR_MULTIPLY_ADDITIVE COLOR_HSV_MODIFIER COLOR_CONTRAST
#pragma shader_feature_local_fragment _ COLOR_FILTER
#pragma shader_feature_local_fragment _ SAMPLING_BLUR_FAST SAMPLING_BLUR_MEDIUM SAMPLING_BLUR_DETAIL SAMPLING_PIXELATION SAMPLING_RGB_SHIFT SAMPLING_EDGE_LUMINANCE SAMPLING_EDGE_ALPHA
#pragma shader_feature_local_fragment _ TRANSITION_FADE TRANSITION_CUTOFF TRANSITION_DISSOLVE TRANSITION_SHINY TRANSITION_MASK TRANSITION_MELT TRANSITION_BURN TRANSITION_PATTERN
#pragma shader_feature_local_fragment _ TRANSITION_COLOR_MULTIPLY TRANSITION_COLOR_ADDITIVE TRANSITION_COLOR_SUBTRACTIVE TRANSITION_COLOR_REPLACE TRANSITION_COLOR_MULTIPLY_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_COLOR_HSV_MODIFIER TRANSITION_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ SHADOW_COLOR_MULTIPLY SHADOW_COLOR_ADDITIVE SHADOW_COLOR_SUBTRACTIVE SHADOW_COLOR_REPLACE SHADOW_COLOR_MULTIPLY_LUMINANCE SHADOW_COLOR_MULTIPLY_ADDITIVE SHADOW_COLOR_HSV_MODIFIER SHADOW_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ EDGE_PLAIN EDGE_SHINY
#pragma shader_feature_local_fragment _ EDGE_COLOR_MULTIPLY EDGE_COLOR_ADDITIVE EDGE_COLOR_SUBTRACTIVE EDGE_COLOR_REPLACE EDGE_COLOR_MULTIPLY_LUMINANCE EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_COLOR_HSV_MODIFIER EDGE_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ DETAIL_MASKING DETAIL_MULTIPLY DETAIL_ADDITIVE DETAIL_REPLACE DETAIL_MULTIPLY_ADDITIVE
#pragma shader_feature_local_fragment _ TARGET_HUE TARGET_LUMINANCE
#pragma shader_feature_local_fragment _ GRADATION_GRADIENT GRADATION_RADIAL GRADATION_COLOR2 GRADATION_COLOR4
#pragma shader_feature_fragment _ UIEFFECT_EDITOR
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#pragma shader_feature _ SOFTMASK_EDITOR
#pragma shader_feature_fragment _ SOFTMASK_EDITOR
#pragma shader_feature_local_fragment _ SOFTMASKABLE
#if SOFTMASKABLE
#include "Packages/com.coffee.softmask-for-ugui/Shaders/SoftMask.cginc"
@@ -123,7 +122,7 @@ SubShader {
float4 color : COLOR;
float2 texcoord0 : TEXCOORD0;
// ==== UIEFFECT START ====
float4 texcoord1 : TEXCOORD1;
float2 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
// ==== UIEFFECT END ====
};
@@ -143,13 +142,9 @@ SubShader {
#endif
// ==== UIEFFECT START ====
float4 uvMask : TEXCOORD4;
float2 uvLocal : TEXCOORD5;
float4 worldPosition : TEXCOORD5;
fixed alpha : TEXCOORD6;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
float4 worldPosition : TEXCOORD6;
#endif
// ==== SOFTMASKABLE END ====
};
float _UIMaskSoftnessX;
@@ -188,7 +183,7 @@ SubShader {
color = SRGBToLinear(input.color);
#endif
float opacity = color.a;
float opacity = 1;
#if (UNDERLAY_ON | UNDERLAY_INNER)
opacity = 1.0;
#endif
@@ -219,19 +214,15 @@ SubShader {
float x = -(_UnderlayOffsetX * _ScaleRatioC) * _GradientScale / _TextureWidth;
float y = -(_UnderlayOffsetY * _ScaleRatioC) * _GradientScale / _TextureHeight;
output.texcoord2 = float4(input.texcoord0 + float2(x, y), input.color.a, 0);
output.texcoord2 = float4(input.texcoord0 + float2(x, y), 1, 0);
output.underlayColor = underlayColor;
#endif
// ==== UIEFFECT START ====
output.uvLocal = input.texcoord1.zw;
output.uvMask = input.texcoord2;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
output.worldPosition = input.position;
#endif
// ==== SOFTMASKABLE END ====
output.alpha = input.color.a;
// ==== UIEFFECT END ====
return output;
}
@@ -298,7 +289,8 @@ SubShader {
{
UNITY_SETUP_INSTANCE_ID(input);
_fragInput = input;
half4 faceColor = uieffect(_fragInput.texcoord0, _fragInput.uvMask, _fragInput.uvLocal);
half4 faceColor = uieffect(input.texcoord0, input.uvMask, input.worldPosition);
faceColor *= input.alpha;
// Alternative implementation to UnityGet2DClipping with support for softness
#if UNITY_UI_CLIP_RECT
@@ -4,6 +4,6 @@ ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData: v5.6.0
userData: v5.7.0
assetBundleName:
assetBundleVariant:
@@ -90,19 +90,18 @@ SubShader {
// ==== UIEFFECT START ====
#pragma shader_feature_local_fragment _ TONE_GRAYSCALE TONE_SEPIA TONE_NEGATIVE TONE_RETRO TONE_POSTERIZE
#pragma shader_feature_local_fragment _ COLOR_MULTIPLY COLOR_ADDITIVE COLOR_SUBTRACTIVE COLOR_REPLACE COLOR_MULTIPLY_LUMINANCE COLOR_MULTIPLY_ADDITIVE COLOR_HSV_MODIFIER COLOR_CONTRAST
#pragma shader_feature_local_fragment _ COLOR_FILTER
#pragma shader_feature_local_fragment _ SAMPLING_BLUR_FAST SAMPLING_BLUR_MEDIUM SAMPLING_BLUR_DETAIL SAMPLING_PIXELATION SAMPLING_RGB_SHIFT SAMPLING_EDGE_LUMINANCE SAMPLING_EDGE_ALPHA
#pragma shader_feature_local_fragment _ TRANSITION_FADE TRANSITION_CUTOFF TRANSITION_DISSOLVE TRANSITION_SHINY TRANSITION_MASK TRANSITION_MELT TRANSITION_BURN TRANSITION_PATTERN
#pragma shader_feature_local_fragment _ TRANSITION_COLOR_MULTIPLY TRANSITION_COLOR_ADDITIVE TRANSITION_COLOR_SUBTRACTIVE TRANSITION_COLOR_REPLACE TRANSITION_COLOR_MULTIPLY_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_COLOR_HSV_MODIFIER TRANSITION_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ SHADOW_COLOR_MULTIPLY SHADOW_COLOR_ADDITIVE SHADOW_COLOR_SUBTRACTIVE SHADOW_COLOR_REPLACE SHADOW_COLOR_MULTIPLY_LUMINANCE SHADOW_COLOR_MULTIPLY_ADDITIVE SHADOW_COLOR_HSV_MODIFIER SHADOW_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ EDGE_PLAIN EDGE_SHINY
#pragma shader_feature_local_fragment _ EDGE_COLOR_MULTIPLY EDGE_COLOR_ADDITIVE EDGE_COLOR_SUBTRACTIVE EDGE_COLOR_REPLACE EDGE_COLOR_MULTIPLY_LUMINANCE EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_COLOR_HSV_MODIFIER EDGE_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ DETAIL_MASKING DETAIL_MULTIPLY DETAIL_ADDITIVE DETAIL_REPLACE DETAIL_MULTIPLY_ADDITIVE
#pragma shader_feature_local_fragment _ TARGET_HUE TARGET_LUMINANCE
#pragma shader_feature_local_fragment _ GRADATION_GRADIENT GRADATION_RADIAL GRADATION_COLOR2 GRADATION_COLOR4
#pragma shader_feature_fragment _ UIEFFECT_EDITOR
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#pragma shader_feature _ SOFTMASK_EDITOR
#pragma shader_feature_fragment _ SOFTMASK_EDITOR
#pragma shader_feature_local_fragment _ SOFTMASKABLE
#if SOFTMASKABLE
#include "Packages/com.coffee.softmask-for-ugui/Shaders/SoftMask.cginc"
@@ -121,7 +120,7 @@ SubShader {
fixed4 color : COLOR;
float2 texcoord0 : TEXCOORD0;
// ==== UIEFFECT START ====
float4 texcoord1 : TEXCOORD1;
float2 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
// ==== UIEFFECT END ====
};
@@ -141,13 +140,9 @@ SubShader {
#endif
// ==== UIEFFECT START ====
float4 uvMask : TEXCOORD5;
float2 uvLocal : TEXCOORD6;
float4 worldPosition : TEXCOORD6;
fixed alpha : TEXCOORD7;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
float4 worldPosition : TEXCOORD7;
#endif
// ==== SOFTMASKABLE END ====
};
float _UIMaskSoftnessX;
@@ -185,17 +180,17 @@ SubShader {
float bias = (0.5 - weight) * scale - 0.5;
float outline = _OutlineWidth * _ScaleRatioA * 0.5 * scale;
float opacity = input.color.a;
float opacity = 1;
#if (UNDERLAY_ON | UNDERLAY_INNER)
opacity = 1.0;
#endif
fixed4 faceColor = fixed4(input.color.rgb, opacity) * _FaceColor;
// faceColor.rgb *= faceColor.a;
faceColor.rgb *= faceColor.a;
fixed4 outlineColor = _OutlineColor;
outlineColor.a *= opacity;
// outlineColor.rgb *= outlineColor.a;
outlineColor.rgb *= outlineColor.a;
outlineColor = lerp(faceColor, outlineColor, sqrt(min(1.0, (outline * 2))));
#if (UNDERLAY_ON | UNDERLAY_INNER)
@@ -220,19 +215,15 @@ SubShader {
const half2 maskSoftness = half2(max(_UIMaskSoftnessX, _MaskSoftnessX), max(_UIMaskSoftnessY, _MaskSoftnessY));
output.mask = half4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * maskSoftness + pixelSize.xy));
#if (UNDERLAY_ON || UNDERLAY_INNER)
output.texcoord1 = float4(input.texcoord0 + layerOffset, input.color.a, 0);
output.texcoord1 = float4(input.texcoord0 + layerOffset, 1, 0);
output.underlayParam = half2(layerScale, layerBias);
#endif
// ==== UIEFFECT START ====
output.uvLocal = input.texcoord1.zw;
output.uvMask = input.texcoord2;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
output.worldPosition = input.vertex;
#endif
// ==== SOFTMASKABLE END ====
output.alpha = input.color.a;
// ==== UIEFFECT END ====
return output;
}
@@ -277,7 +268,8 @@ SubShader {
{
UNITY_SETUP_INSTANCE_ID(input);
_fragInput = input;
half4 c = uieffect(_fragInput.texcoord0.xy, _fragInput.uvMask, _fragInput.uvLocal);
half4 c = uieffect(input.texcoord0.xy, input.uvMask, input.worldPosition);
c *= input.alpha;
// Alternative implementation to UnityGet2DClipping with support for softness.
#if UNITY_UI_CLIP_RECT
@@ -4,6 +4,6 @@ ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData: v5.6.0
userData: v5.7.0
assetBundleName:
assetBundleVariant:
@@ -128,19 +128,18 @@ SubShader {
// ==== UIEFFECT START ====
#pragma shader_feature_local_fragment _ TONE_GRAYSCALE TONE_SEPIA TONE_NEGATIVE TONE_RETRO TONE_POSTERIZE
#pragma shader_feature_local_fragment _ COLOR_MULTIPLY COLOR_ADDITIVE COLOR_SUBTRACTIVE COLOR_REPLACE COLOR_MULTIPLY_LUMINANCE COLOR_MULTIPLY_ADDITIVE COLOR_HSV_MODIFIER COLOR_CONTRAST
#pragma shader_feature_local_fragment _ COLOR_FILTER
#pragma shader_feature_local_fragment _ SAMPLING_BLUR_FAST SAMPLING_BLUR_MEDIUM SAMPLING_BLUR_DETAIL SAMPLING_PIXELATION SAMPLING_RGB_SHIFT SAMPLING_EDGE_LUMINANCE SAMPLING_EDGE_ALPHA
#pragma shader_feature_local_fragment _ TRANSITION_FADE TRANSITION_CUTOFF TRANSITION_DISSOLVE TRANSITION_SHINY TRANSITION_MASK TRANSITION_MELT TRANSITION_BURN TRANSITION_PATTERN
#pragma shader_feature_local_fragment _ TRANSITION_COLOR_MULTIPLY TRANSITION_COLOR_ADDITIVE TRANSITION_COLOR_SUBTRACTIVE TRANSITION_COLOR_REPLACE TRANSITION_COLOR_MULTIPLY_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_COLOR_HSV_MODIFIER TRANSITION_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ SHADOW_COLOR_MULTIPLY SHADOW_COLOR_ADDITIVE SHADOW_COLOR_SUBTRACTIVE SHADOW_COLOR_REPLACE SHADOW_COLOR_MULTIPLY_LUMINANCE SHADOW_COLOR_MULTIPLY_ADDITIVE SHADOW_COLOR_HSV_MODIFIER SHADOW_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ EDGE_PLAIN EDGE_SHINY
#pragma shader_feature_local_fragment _ EDGE_COLOR_MULTIPLY EDGE_COLOR_ADDITIVE EDGE_COLOR_SUBTRACTIVE EDGE_COLOR_REPLACE EDGE_COLOR_MULTIPLY_LUMINANCE EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_COLOR_HSV_MODIFIER EDGE_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ DETAIL_MASKING DETAIL_MULTIPLY DETAIL_ADDITIVE DETAIL_REPLACE DETAIL_MULTIPLY_ADDITIVE
#pragma shader_feature_local_fragment _ TARGET_HUE TARGET_LUMINANCE
#pragma shader_feature_local_fragment _ GRADATION_GRADIENT GRADATION_RADIAL GRADATION_COLOR2 GRADATION_COLOR4
#pragma shader_feature_fragment _ UIEFFECT_EDITOR
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#pragma shader_feature _ SOFTMASK_EDITOR
#pragma shader_feature_fragment _ SOFTMASK_EDITOR
#pragma shader_feature_local_fragment _ SOFTMASKABLE
#if SOFTMASKABLE
#include "Packages/com.coffee.softmask-for-ugui/Shaders/SoftMask.cginc"
@@ -159,7 +158,7 @@ SubShader {
fixed4 color : COLOR;
float2 texcoord0 : TEXCOORD0;
// ==== UIEFFECT START ====
float4 texcoord1 : TEXCOORD1;
float2 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
// ==== UIEFFECT END ====
};
@@ -182,13 +181,8 @@ SubShader {
float4 textures : TEXCOORD5;
// ==== UIEFFECT START ====
float4 uvMask : TEXCOORD6;
float2 uvLocal : TEXCOORD7;
float4 worldPosition : TEXCOORD7;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
float4 worldPosition : TEXCOORD8;
#endif
// ==== SOFTMASKABLE END ====
};
// Used by Unity internally to handle Texture Tiling and Offset.
@@ -270,14 +264,9 @@ SubShader {
output.textures = float4(faceUV, outlineUV);
// ==== UIEFFECT START ====
output.uvLocal = input.texcoord1.zw;
output.uvMask = input.texcoord2;
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#if SOFTMASK_EDITOR
output.worldPosition = input.position;
#endif
// ==== SOFTMASKABLE END ====
// ==== UIEFFECT END ====
return output;
}
@@ -346,7 +335,7 @@ SubShader {
faceColor.rgb += glowColor.rgb * glowColor.a;
#endif
return faceColor * input.color.a;
return faceColor;
}
#define UIEFFECT_TEXTMESHPRO 1
@@ -357,7 +346,8 @@ SubShader {
{
UNITY_SETUP_INSTANCE_ID(input);
_fragInput = input;
half4 faceColor = uieffect(_fragInput.atlas, _fragInput.uvMask, _fragInput.uvLocal);
half4 faceColor = uieffect(input.atlas, input.uvMask, input.worldPosition);
faceColor *= input.color.a;
#if UNITY_UI_CLIP_RECT
half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(input.mask.xy)) * input.mask.zw);
@@ -4,6 +4,6 @@ ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData: v5.6.0
userData: v5.7.0
assetBundleName:
assetBundleVariant:
+242 -111
View File
@@ -1,10 +1,18 @@
#ifndef UI_EFFECT_INCLUDED
#define UI_EFFECT_INCLUDED
#ifndef UNITY_PI
#define UNITY_PI 3.14159265358979323846
#endif
#ifndef CANVAS_SHADERGRAPH
uniform const int _SrcBlend;
uniform const int _DstBlend;
uniform const float4 _MainTex_TexelSize;
#endif
uniform const float _ToneIntensity;
uniform const int _ColorFilter;
uniform const half4 _ColorValue;
uniform const float _ColorIntensity;
uniform const int _ColorGlow;
@@ -16,6 +24,7 @@ uniform const float4 _TransitionTex_ST;
uniform const float2 _TransitionTex_Speed;
uniform const float _TransitionRate;
uniform const int _TransitionReverse;
uniform const int _TransitionColorFilter;
uniform const half4 _TransitionColor;
uniform const int _TransitionColorGlow;
uniform const float _TransitionSoftness;
@@ -23,16 +32,18 @@ uniform const float2 _TransitionRange;
uniform const float _TransitionWidth;
uniform const int _TransitionPatternReverse;
uniform const float _TransitionAutoPlaySpeed;
uniform const fixed4 _TargetColor;
uniform const half4 _TargetColor;
uniform const float _TargetRange;
uniform const float _TargetSoftness;
uniform const float _ShadowBlurIntensity;
uniform const int _ShadowColorFilter;
uniform const half4 _ShadowColor;
uniform const int _ShadowColorGlow;
uniform const float _EdgeWidth;
uniform const float _EdgeShinyRate;
uniform const float _EdgeShinyAutoPlaySpeed;
uniform const float _EdgeShinyWidth;
uniform const int _EdgeColorFilter;
uniform const half4 _EdgeColor;
uniform const int _EdgeColorGlow;
uniform const int _PatternArea;
@@ -41,6 +52,17 @@ uniform const float2 _DetailThreshold;
uniform const sampler2D _DetailTex;
uniform const float4 _DetailTex_ST;
uniform const float2 _DetailTex_Speed;
uniform const float _GradationIntensity;
uniform const int _GradationColorFilter;
uniform const half4 _GradationColor1;
uniform const half4 _GradationColor2;
uniform const half4 _GradationColor3;
uniform const half4 _GradationColor4;
uniform const sampler2D _GradationTex;
uniform const float4 _GradationTex_ST;
uniform const matrix _RootViewMatrix;
uniform const matrix _GradViewMatrix;
uniform const matrix _CanvasToWorldMatrix;
// For performance reasons, limit the sampling of blur in TextMeshPro.
#ifdef UIEFFECT_TEXTMESHPRO
@@ -58,14 +80,34 @@ uniform const float2 _DetailTex_Speed;
#define SAMPLING_NONE (!SAMPLING_BLUR_FAST && !SAMPLING_BLUR_MEDIUM && !SAMPLING_BLUR_DETAIL && !SAMPLING_PIXELATION && !SAMPLING_RGB_SHIFT && !SAMPLING_EDGE_LUMINANCE && !SAMPLING_EDGE_ALPHA)
#define TRANSITION_NONE (!TRANSITION_FADE && !TRANSITION_CUTOFF && !TRANSITION_DISSOLVE && !TRANSITION_SHINY && !TRANSITION_MASK && !TRANSITION_MELT && !TRANSITION_BURN && !TRANSITION_PATTERN)
#define TARGET_NONE (!TARGET_HUE && !TARGET_LUMINANCE)
#define EDGE_NONE (!EDGE_PLAIN && !EDGE_SHINY)
#define DETAIL_NONE (!DETAIL_MASKING && !DETAIL_MULTIPLY && !DETAIL_ADDITIVE && !DETAIL_REPLACE && !DETAIL_MULTIPLY_ADDITIVE)
#define GRADATION_NONE (!GRADATION_GRADIENT && !GRADATION_RADIAL && !GRADATION_COLOR2 && !GRADATION_COLOR4)
#if TONE_NONE && !COLOR_FILTER && SAMPLING_NONE && TRANSITION_NONE && TARGET_NONE && EDGE_NONE && DETAIL_NONE && GRADATION_NONE
#define NO_UIEFFECT
#endif
#define UIEFFECT_UV_MASK(uv, uvMask) step(uvMask.x, uv.x) * step(uv.x, uvMask.z) * step(uvMask.y, uv.y) * step(uv.y, uvMask.w)
#define UIEFFECT_SAMPLE(uv) uieffect_frag(uv)
#define UIEFFECT_SAMPLE_CLAMP(uv, uvMask) uieffect_frag(uv) \
* step(uvMask.x, uv.x) * step(uv.x, uvMask.z) \
* step(uvMask.y, uv.y) * step(uv.y, uvMask.w)
#define TEX_SAMPLE_CLAMP(uv, uvMask) tex2D(_MainTex, uv) \
* step(uvMask.x, uv.x) * step(uv.x, uvMask.z) \
* step(uvMask.y, uv.y) * step(uv.y, uvMask.w)
#define UIEFFECT_SAMPLE_CLAMP(uv, uvMask) uieffect_frag(uv) * UIEFFECT_UV_MASK(uv, uvMask)
#ifdef CANVAS_SHADERGRAPH
#define TEX_SAMPLE_CLAMP(uv, uvMask) SAMPLE_TEXTURE2D(_MainTex, sampler_MainTex, uv) * UIEFFECT_UV_MASK(uv, uvMask)
#else
#define TEX_SAMPLE_CLAMP(uv, uvMask) tex2D(_MainTex, uv) * UIEFFECT_UV_MASK(uv, uvMask)
#endif
float4 object_to_world(float4 pos)
{
#if UIEFFECT_EDITOR
return pos;
return mul(unity_ObjectToWorld, pos);
#else
return mul(_CanvasToWorldMatrix, pos);
return mul(_CanvasToWorldMatrix, mul(unity_ObjectToWorld, pos));
#endif
}
float2 texel_size()
{
@@ -134,7 +176,7 @@ half get_target_rate(const half3 color)
#if TARGET_HUE // Target.Hue
{
const half value = rgb_to_hsv(color).x;
const half target = rgb_to_hsv(_TargetColor).x;
const half target = rgb_to_hsv(_TargetColor.rgb).x;
diff = abs(target - value);
diff = min(diff, 1 - diff);
}
@@ -158,229 +200,229 @@ half4 apply_tone_filter(half4 color)
#elif TONE_NEGATIVE // Tone.Negative
color.rgb = lerp(color.rgb, (1 - color.rgb) * color.a, _ToneIntensity);
#elif TONE_RETRO // Tone.Retro
const fixed l = Luminance(color.rgb);
const fixed r0 = step(l, 0.25);
const fixed r1 = step(l, 0.5);
const fixed r2 = step(l, 0.75);
const fixed3 retro = fixed3(0.06, 0.22, 0.06) * r0 // 0.0-0.25: (15, 56, 15)
+ fixed3(0.19, 0.38, 0.19) * (1 - r0) * r1 // 0.25-0.5: (48, 98, 48)
+ fixed3(0.54, 0.67, 0.06) * (1 - r1) * r2 // 0.5-0.75: (139, 172, 15)
+ fixed3(0.60, 0.74, 0.06) * (1 - r2); // 0.75-1.0: (155, 188, 15)
const half l = Luminance(color.rgb);
const half r0 = step(l, 0.25);
const half r1 = step(l, 0.5);
const half r2 = step(l, 0.75);
const half3 retro = half3(0.06, 0.22, 0.06) * r0 // 0.0-0.25: (15, 56, 15)
+ half3(0.19, 0.38, 0.19) * (1 - r0) * r1 // 0.25-0.5: (48, 98, 48)
+ half3(0.54, 0.67, 0.06) * (1 - r1) * r2 // 0.5-0.75: (139, 172, 15)
+ half3(0.60, 0.74, 0.06) * (1 - r2); // 0.75-1.0: (155, 188, 15)
color.rgb = lerp(color.rgb, retro * color.a, _ToneIntensity);
#elif TONE_POSTERIZE // Tone.Posterize
const half3 hsv = rgb_to_hsv(color.rgb);
const int div = round(lerp(48, 4, _ToneIntensity) / 2) * 2;
const float div = round(lerp(48, 4, _ToneIntensity) / 2) * 2;
color.rgb = hsv_to_rgb((floor(hsv * div) + 0.5) / div) * color.a;
#endif
return color;
}
half4 apply_color_filter(half4 color, const half4 factor, const float intensity)
half4 apply_color_filter(const half4 inColor, const half4 factor, const float intensity)
{
const half4 inColor = color;
#if COLOR_MULTIPLY // Color.Multiply
const float glow = _ColorGlow;
const int mode = _ColorFilter;
half4 color = inColor;
if (mode == 1) // Color.Multiply
{
color.rgb = color.rgb * factor.rgb;
}
#elif COLOR_ADDITIVE // Color.Additive
else if (mode == 2) // Color.Additive
{
color.rgb = color.rgb + factor.rgb * color.a;
}
#elif COLOR_SUBTRACTIVE // Color.Subtractive
else if (mode == 3) // Color.Subtractive
{
color.rgb = color.rgb - factor.rgb * color.a;
}
#elif COLOR_REPLACE // Color.Replace
else if (mode == 4) // Color.Replace
{
color.rgb = factor.rgb * color.a;
}
#elif COLOR_MULTIPLY_LUMINANCE // Color.MultiplyLuminance
else if (mode == 5) // Color.MultiplyLuminance
{
color.rgb = (1 + Luminance(color.rgb)) * factor.rgb / 2 * color.a;
}
#elif COLOR_MULTIPLY_ADDITIVE // Color.MultiplyAdditive
else if (mode == 6) // Color.MultiplyAdditive
{
color.rgb = color.rgb * (1 + factor.rgb);
}
#elif COLOR_HSV_MODIFIER // Color.HsvModifier
else if (mode == 7) // Color.HsvModifier
{
const float3 hsv = rgb_to_hsv(color.rgb);
color.rgb = hsv_to_rgb(hsv + factor.rgb) * color.a * factor.a;
color.a = color.a * factor.a;
color.a = inColor.a * factor.a;
}
#elif COLOR_CONTRAST // Color.Contrast
else if (mode == 8) // Color.Contrast
{
color.rgb = ((color.rgb - 0.5) * (factor.r + 1) + 0.5 + factor.g * 1.5) * color.a * factor.a;
color.a = color.a * factor.a;
}
#else
if (0 < mode)
{
return color;
color = lerp(inColor, color, intensity);
color.a *= 1 - glow * intensity;
}
#endif
color = lerp(inColor, color, intensity);
color.a *= 1 - _ColorGlow * intensity;
return color;
}
half4 apply_transition_color_filter(half4 color, const half4 factor, const float intensity)
half4 apply_transition_color_filter(const half4 inColor, const half4 factor, const float intensity)
{
const half4 inColor = color;
#if TRANSITION_COLOR_MULTIPLY // Color.Multiply
const float glow = _TransitionColorGlow;
const int mode = _TransitionColorFilter;
half4 color = inColor;
if (mode == 1) // Color.Multiply
{
color.rgb = color.rgb * factor.rgb;
}
#elif TRANSITION_COLOR_ADDITIVE // Color.Additive
else if (mode == 2) // Color.Additive
{
color.rgb = color.rgb + factor.rgb * color.a;
}
#elif TRANSITION_COLOR_SUBTRACTIVE // Color.Subtractive
else if (mode == 3) // Color.Subtractive
{
color.rgb = color.rgb - factor.rgb * color.a;
}
#elif TRANSITION_COLOR_REPLACE // Color.Replace
else if (mode == 4) // Color.Replace
{
color.rgb = factor.rgb * color.a;
}
#elif TRANSITION_COLOR_MULTIPLY_LUMINANCE // Color.MultiplyLuminance
else if (mode == 5) // Color.MultiplyLuminance
{
color.rgb = (1 + Luminance(color.rgb)) * factor.rgb / 2 * color.a;
}
#elif TRANSITION_COLOR_MULTIPLY_ADDITIVE // Color.MultiplyAdditive
else if (mode == 6) // Color.MultiplyAdditive
{
color.rgb = color.rgb * (1 + factor.rgb);
}
#elif TRANSITION_COLOR_HSV_MODIFIER // Color.HsvModifier
else if (mode == 7) // Color.HsvModifier
{
const float3 hsv = rgb_to_hsv(color.rgb);
color.rgb = hsv_to_rgb(hsv + factor.rgb) * color.a * factor.a;
color.a = color.a * factor.a;
color.a = inColor.a * factor.a;
}
#elif TRANSITION_COLOR_CONTRAST // Color.Contrast
else if (mode == 8) // Color.Contrast
{
color.rgb = ((color.rgb - 0.5) * (factor.r + 1) + 0.5 + factor.g * 1.5) * color.a * factor.a;
color.a = color.a * factor.a;
}
#else
if (0 < mode)
{
return color;
color = lerp(inColor, color, intensity);
color.a *= 1 - glow * intensity;
}
#endif
color = lerp(inColor, color, intensity);
color.a *= 1 - _TransitionColorGlow * intensity;
return color;
}
half4 apply_shadow_color_filter(half4 color, const half4 factor, const float intensity)
half4 apply_shadow_color_filter(const half4 inColor, const half4 factor, const float intensity)
{
const half4 inColor = color;
#if SHADOW_COLOR_NONE // Color.None
{
return color;
}
#elif SHADOW_COLOR_MULTIPLY // Color.Multiply
const float glow = _ShadowColorGlow;
const int mode = _ShadowColorFilter;
half4 color = inColor;
if (mode == 1) // Color.Multiply
{
color.rgb = color.rgb * factor.rgb;
}
#elif SHADOW_COLOR_ADDITIVE // Color.Additive
else if (mode == 2) // Color.Additive
{
color.rgb = color.rgb + factor.rgb * color.a;
}
#elif SHADOW_COLOR_SUBTRACTIVE // Color.Subtractive
else if (mode == 3) // Color.Subtractive
{
color.rgb = color.rgb - factor.rgb * color.a;
}
#elif SHADOW_COLOR_REPLACE // Color.Replace
else if (mode == 4) // Color.Replace
{
color.rgb = factor.rgb * color.a;
}
#elif SHADOW_COLOR_MULTIPLY_LUMINANCE // Color.MultiplyLuminance
else if (mode == 5) // Color.MultiplyLuminance
{
color.rgb = (1 + Luminance(color.rgb)) * factor.rgb / 2 * color.a;
}
#elif SHADOW_COLOR_MULTIPLY_ADDITIVE // Color.MultiplyAdditive
else if (mode == 6) // Color.MultiplyAdditive
{
color.rgb = color.rgb * (1 + factor.rgb);
}
#elif SHADOW_COLOR_HSV_MODIFIER // Color.HsvModifier
else if (mode == 7) // Color.HsvModifier
{
const float3 hsv = rgb_to_hsv(color.rgb);
color.rgb = hsv_to_rgb(hsv + factor.rgb) * color.a * factor.a;
color.a = color.a * factor.a;
color.a = inColor.a * factor.a;
}
#elif SHADOW_COLOR_CONTRAST // Color.Contrast
else if (mode == 8) // Color.Contrast
{
color.rgb = ((color.rgb - 0.5) * (factor.r + 1) + 0.5 + factor.g * 1.5) * color.a * factor.a;
color.a = color.a * factor.a;
}
#else
if (0 < mode)
{
return color;
color = lerp(inColor, color, intensity);
color.a *= 1 - glow * intensity;
}
#endif
color = lerp(inColor, color, intensity);
color.a *= 1 - _ShadowColorGlow * intensity;
return color;
}
half4 apply_edge_color_filter(half4 color, const half4 factor, const float intensity)
half4 apply_edge_color_filter(const half4 inColor, const half4 factor, const float intensity)
{
const half4 inColor = color;
#if EDGE_COLOR_NONE // Color.None
{
return color;
}
#elif EDGE_COLOR_MULTIPLY // Color.Multiply
const float glow = _EdgeColorGlow;
const int mode = _EdgeColorFilter;
half4 color = inColor;
if (mode == 1) // Color.Multiply
{
color.rgb = color.rgb * factor.rgb;
}
#elif EDGE_COLOR_ADDITIVE // Color.Additive
else if (mode == 2) // Color.Additive
{
color.rgb = color.rgb + factor.rgb * color.a;
}
#elif EDGE_COLOR_SUBTRACTIVE // Color.Subtractive
else if (mode == 3) // Color.Subtractive
{
color.rgb = color.rgb - factor.rgb * color.a;
}
#elif EDGE_COLOR_REPLACE // Color.Replace
else if (mode == 4) // Color.Replace
{
color.rgb = factor.rgb * color.a;
}
#elif EDGE_COLOR_MULTIPLY_LUMINANCE // Color.MultiplyLuminance
else if (mode == 5) // Color.MultiplyLuminance
{
color.rgb = (1 + Luminance(color.rgb)) * factor.rgb / 2 * color.a;
}
#elif EDGE_COLOR_MULTIPLY_ADDITIVE // Color.MultiplyAdditive
else if (mode == 6) // Color.MultiplyAdditive
{
color.rgb = color.rgb * (1 + factor.rgb);
}
#elif EDGE_COLOR_HSV_MODIFIER // Color.HsvModifier
else if (mode == 7) // Color.HsvModifier
{
const float3 hsv = rgb_to_hsv(color.rgb);
color.rgb = hsv_to_rgb(hsv + factor.rgb) * color.a * factor.a;
color.a = color.a * factor.a;
color.a = inColor.a * factor.a;
}
#elif EDGE_COLOR_CONTRAST // Color.Contrast
else if (mode == 8) // Color.Contrast
{
color.rgb = ((color.rgb - 0.5) * (factor.r + 1) + 0.5 + factor.g * 1.5) * color.a * factor.a;
color.a = color.a * factor.a;
}
#else
if (0 < mode)
{
return color;
color = lerp(inColor, color, intensity);
color.a *= 1 - glow * intensity;
}
#endif
color = lerp(inColor, color, intensity);
color.a *= 1 - _EdgeColorGlow * intensity;
return color;
}
half4 apply_sampling_filter(float2 uv, const float4 uvMask, const float2 uvLocal)
half4 apply_sampling_filter(float2 uv, const float4 uvMask, const float2 uvLocal, const float isShadow)
{
#if SAMPLING_BLUR_FAST || SAMPLING_BLUR_MEDIUM || SAMPLING_BLUR_DETAIL
{
float intensity = -4 < uvLocal.x + uvLocal.y ? _SamplingIntensity : _ShadowBlurIntensity;
float intensity = 0 < isShadow ? _ShadowBlurIntensity : _SamplingIntensity;
if (0 < intensity)
{
#if SAMPLING_BLUR_FAST
@@ -459,7 +501,7 @@ half4 apply_transition_filter(half4 color, const float alpha, const float2 uvLoc
#elif TRANSITION_PATTERN // Transition.Pattern
{
const half4 patternColor = apply_transition_color_filter(half4(color.rgb, 1), half4(_TransitionColor.rgb * color.a, 1), _TransitionColor.a);
int isPattern = min(inv_lerp(_TransitionRange.x, _TransitionRange.y, uvLocal.x), 0.995) < (_TransitionPatternReverse ? alpha : 1 - alpha);
float isPattern = min(inv_lerp(_TransitionRange.x, _TransitionRange.y, uvLocal.x), 0.995) < (_TransitionPatternReverse ? alpha : 1 - alpha);
isPattern = _TransitionPatternReverse ? isPattern : 1 - isPattern;
const float patternFactor = _PatternArea == 0 ? 1 : _PatternArea == 1 ? 1 - edgeFactor : edgeFactor;
color.rgb = lerp(color.rgb, patternColor.rgb, patternFactor * isPattern);
@@ -469,8 +511,8 @@ half4 apply_transition_filter(half4 color, const float alpha, const float2 uvLoc
{
const float factor = alpha - transition_rate() * (1 + _TransitionWidth) + _TransitionWidth;
const float softness = max(0.0001, _TransitionWidth * _TransitionSoftness);
const fixed bandLerp = saturate((_TransitionWidth - factor) * 1 / softness);
const fixed softLerp = saturate(factor * 2 / softness);
const half bandLerp = saturate((_TransitionWidth - factor) * 1 / softness);
const half softLerp = saturate(factor * 2 / softness);
half4 bandColor = apply_transition_color_filter(half4(color.rgb, 1), half4(_TransitionColor.rgb, 1),
_TransitionColor.a);
bandColor *= color.a;
@@ -510,6 +552,73 @@ half4 apply_transition_filter(half4 color, const float alpha, const float2 uvLoc
return color;
}
half4 apply_gradation_filter(const half4 inColor, const float2 uvGrad)
{
const float2 uv = uvGrad * _GradationTex_ST.x + _GradationTex_ST.z;
half4 factor = inColor;
#if GRADATION_GRADIENT // Gradation.Gradient
{
factor = tex2D(_GradationTex, uv);
}
#elif GRADATION_RADIAL // Gradation.Radial
{
float t = saturate(length((uvGrad - float2(0.5, 0.5)) * 2 * _GradationTex_ST.x) + _GradationTex_ST.z);
factor = lerp(_GradationColor1, _GradationColor2, t);
}
#elif GRADATION_COLOR2 // Gradation.Color2
{
factor = lerp(_GradationColor1, _GradationColor2, saturate(uv.x));
}
#elif GRADATION_COLOR4 // Gradation.Color4
{
factor = lerp(
lerp(_GradationColor3, _GradationColor4, saturate(uv.x)),
lerp(_GradationColor1, _GradationColor2, saturate(uv.x)),
saturate(uv.y));
}
#else
{
return inColor;
}
#endif
const int mode = _GradationColorFilter;
const float intensity = _GradationIntensity;
half4 color = inColor;
if (mode == 1) // Color.Multiply
{
color.rgb = color.rgb * factor.rgb;
}
else if (mode == 2) // Color.Additive
{
color.rgb = color.rgb + factor.rgb * color.a;
}
else if (mode == 3) // Color.Subtractive
{
color.rgb = color.rgb - factor.rgb * color.a;
}
else if (mode == 4) // Color.Replace
{
color.rgb = factor.rgb * color.a;
}
else if (mode == 5) // Color.MultiplyLuminance
{
color.rgb = (1 + Luminance(color.rgb)) * factor.rgb / 2 * color.a;
}
else if (mode == 6) // Color.MultiplyAdditive
{
color.rgb = color.rgb * (1 + factor.rgb);
}
if (0 < mode)
{
color = lerp(inColor, color, intensity);
}
return color;
}
half4 apply_detail_filter(half4 color, float2 uvLocal)
{
const half4 inColor = color;
@@ -588,7 +697,7 @@ float edge(float2 uv, const float4 uvMask, float width)
#endif
}
int is_edge_shiny(const float2 uvLocal)
float is_edge_shiny(const float2 uvLocal)
{
#if EDGE_SHINY
const float deg = atan2(uvLocal.y - 0.5, uvLocal.x - 0.5) / UNITY_PI;
@@ -598,23 +707,28 @@ int is_edge_shiny(const float2 uvLocal)
#endif
}
half4 uieffect_internal(float2 uv, const float4 uvMask, const float2 uvLocal)
half4 uieffect_internal(float2 uv, float4 uvMask, const float2 uvLocal, const float2 uvGrad, const float isShadow)
{
const half alpha = transition_alpha(uvLocal);
const float edgeFactor = edge(uv, uvMask, _EdgeWidth);
uv += move_transition_filter(uvMask, alpha);
half4 color = apply_sampling_filter(uv, uvMask, uvLocal);
half4 color = apply_sampling_filter(uv, uvMask, uvLocal, isShadow);
color = apply_gradation_filter(color, uvGrad);
color = apply_tone_filter(color);
color = apply_transition_filter(color, alpha, uvLocal, edgeFactor);
color = apply_detail_filter(color, uvLocal);
if (-4 <= uvLocal.x + uvLocal.y)
if (0 < isShadow)
{
return apply_shadow_color_filter(color, _ShadowColor, 1);
}
else
{
#if EDGE_PLAIN || EDGE_SHINY
{
color = apply_color_filter(color, _ColorValue, _ColorIntensity);
const half4 edgeColor = apply_edge_color_filter(color, _EdgeColor, 1);
const int isEdgeShiny = is_edge_shiny(uvLocal);
const float isEdgeShiny = is_edge_shiny(uvLocal);
return lerp(color, edgeColor, edgeFactor * isEdgeShiny);
}
#else
@@ -623,16 +737,26 @@ half4 uieffect_internal(float2 uv, const float4 uvMask, const float2 uvLocal)
}
#endif
}
else
{
return apply_shadow_color_filter(color, _ShadowColor, 1);
}
}
half4 uieffect(float2 uv, const float4 uvMask, const float2 uvLocal)
half4 uieffect(half4 origin, float2 uv, float4 uvMask, float4 wpos)
{
const fixed4 origin = UIEFFECT_SAMPLE_CLAMP(uv, uvMask);
const half rate = get_target_rate(origin);
#ifdef NO_UIEFFECT
return origin;
#endif
#ifndef CANVAS_SHADERGRAPH
wpos = mul(unity_ObjectToWorld, wpos);
#endif
#if !UIEFFECT_EDITOR
wpos = mul(_CanvasToWorldMatrix, wpos);
#endif
const half rate = get_target_rate(origin.rgb);
const float2 uvLocal = saturate(mul(_RootViewMatrix, wpos)).xy;
const float2 uvGrad = mul(_GradViewMatrix, wpos).xy;
const float isShadow = uvMask.x < 0 ? 1 : 0;
uvMask.x += isShadow * 2;
// Sampling.Pixelation
#if SAMPLING_PIXELATION
@@ -644,9 +768,9 @@ half4 uieffect(float2 uv, const float4 uvMask, const float2 uvLocal)
#elif SAMPLING_RGB_SHIFT
{
const half2 offset = half2(_SamplingIntensity * texel_size().x * 20, 0);
const half2 r = uieffect_internal(uv + offset, uvMask, uvLocal).ra;
const half2 g = uieffect_internal(uv, uvMask, uvLocal).ga;
const half2 b = uieffect_internal(uv - offset, uvMask, uvLocal).ba;
const half2 r = uieffect_internal(uv + offset, uvMask, uvLocal, uvGrad, isShadow).ra;
const half2 g = uieffect_internal(uv, uvMask, uvLocal, uvGrad, isShadow).ga;
const half2 b = uieffect_internal(uv - offset, uvMask, uvLocal, uvGrad, isShadow).ba;
return half4(r.x * r.y, g.x * g.y, b.x * b.y, (r.y + g.y + b.y) / 3);
}
// Sampling.EdgeLuminance/EdgeAlpha
@@ -670,11 +794,18 @@ half4 uieffect(float2 uv, const float4 uvMask, const float2 uvLocal)
half sobel_v = v00 * -1.0 + v10 * -2.0 + v20 * -1.0 + v02 * 1.0 + v12 * 2.0 + v22 * 1.0;
const half sobel = sqrt(sobel_h * sobel_h + sobel_v * sobel_v) * _SamplingIntensity;
return lerp(0, uieffect_internal(uv, uvMask, uvLocal), inv_lerp(0.5, 1, sobel));
return lerp(0, uieffect_internal(uv, uvMask, uvLocal, uvGrad, isShadow), inv_lerp(0.5, 1, sobel));
}
#endif
return lerp(origin, uieffect_internal(uv, uvMask, uvLocal), rate);
return lerp(origin, uieffect_internal(uv, uvMask, uvLocal, uvGrad, isShadow), rate);
}
half4 uieffect(float2 uv, float4 uvMask, float4 wpos)
{
const half4 origin = UIEFFECT_SAMPLE_CLAMP(uv, uvMask);
return uieffect(origin, uv, uvMask, wpos);
}
#endif // UI_EFFECT_INCLUDED
+9 -10
View File
@@ -60,19 +60,18 @@ Shader "Hidden/UI/Default (UIEffect)"
// ==== UIEFFECT START ====
#pragma shader_feature_local_fragment _ TONE_GRAYSCALE TONE_SEPIA TONE_NEGATIVE TONE_RETRO TONE_POSTERIZE
#pragma shader_feature_local_fragment _ COLOR_MULTIPLY COLOR_ADDITIVE COLOR_SUBTRACTIVE COLOR_REPLACE COLOR_MULTIPLY_LUMINANCE COLOR_MULTIPLY_ADDITIVE COLOR_HSV_MODIFIER COLOR_CONTRAST
#pragma shader_feature_local_fragment _ COLOR_FILTER
#pragma shader_feature_local_fragment _ SAMPLING_BLUR_FAST SAMPLING_BLUR_MEDIUM SAMPLING_BLUR_DETAIL SAMPLING_PIXELATION SAMPLING_RGB_SHIFT SAMPLING_EDGE_LUMINANCE SAMPLING_EDGE_ALPHA
#pragma shader_feature_local_fragment _ TRANSITION_FADE TRANSITION_CUTOFF TRANSITION_DISSOLVE TRANSITION_SHINY TRANSITION_MASK TRANSITION_MELT TRANSITION_BURN TRANSITION_PATTERN
#pragma shader_feature_local_fragment _ TRANSITION_COLOR_MULTIPLY TRANSITION_COLOR_ADDITIVE TRANSITION_COLOR_SUBTRACTIVE TRANSITION_COLOR_REPLACE TRANSITION_COLOR_MULTIPLY_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_COLOR_HSV_MODIFIER TRANSITION_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ SHADOW_COLOR_MULTIPLY SHADOW_COLOR_ADDITIVE SHADOW_COLOR_SUBTRACTIVE SHADOW_COLOR_REPLACE SHADOW_COLOR_MULTIPLY_LUMINANCE SHADOW_COLOR_MULTIPLY_ADDITIVE SHADOW_COLOR_HSV_MODIFIER SHADOW_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ EDGE_PLAIN EDGE_SHINY
#pragma shader_feature_local_fragment _ EDGE_COLOR_MULTIPLY EDGE_COLOR_ADDITIVE EDGE_COLOR_SUBTRACTIVE EDGE_COLOR_REPLACE EDGE_COLOR_MULTIPLY_LUMINANCE EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_COLOR_HSV_MODIFIER EDGE_COLOR_CONTRAST
#pragma shader_feature_local_fragment _ DETAIL_MASKING DETAIL_MULTIPLY DETAIL_ADDITIVE DETAIL_REPLACE DETAIL_MULTIPLY_ADDITIVE
#pragma shader_feature_local_fragment _ TARGET_HUE TARGET_LUMINANCE
#pragma shader_feature_local_fragment _ GRADATION_GRADIENT GRADATION_RADIAL GRADATION_COLOR2 GRADATION_COLOR4
#pragma shader_feature_fragment _ UIEFFECT_EDITOR
// ==== UIEFFECT END ====
// ==== SOFTMASKABLE START ====
#pragma shader_feature _ SOFTMASK_EDITOR
#pragma shader_feature_fragment _ SOFTMASK_EDITOR
#pragma shader_feature_local_fragment _ SOFTMASKABLE
#if SOFTMASKABLE
#include "Packages/com.coffee.softmask-for-ugui/Shaders/SoftMask.cginc"
@@ -83,7 +82,7 @@ Shader "Hidden/UI/Default (UIEffect)"
{
float4 vertex : POSITION;
float4 color : COLOR;
float4 texcoord : TEXCOORD0;
float2 texcoord : TEXCOORD0;
// ==== UIEFFECT START ====
float4 uvMask : TEXCOORD1;
// ==== UIEFFECT END ====
@@ -99,7 +98,6 @@ Shader "Hidden/UI/Default (UIEffect)"
float4 mask : TEXCOORD2;
// ==== UIEFFECT START ====
float4 uvMask : TEXCOORD3;
float2 uvLocal : TEXCOORD4;
// ==== UIEFFECT END ====
UNITY_VERTEX_OUTPUT_STEREO
};
@@ -143,7 +141,6 @@ Shader "Hidden/UI/Default (UIEffect)"
// ==== UIEFFECT START ====
OUT.uvMask = v.uvMask;
OUT.uvLocal = v.texcoord.zw;
// ==== UIEFFECT END ====
return OUT;
@@ -154,7 +151,7 @@ Shader "Hidden/UI/Default (UIEffect)"
fixed4 uieffect_frag(float2 uv)
{
v2f IN = _fragInput;
half4 color = IN.color * (tex2D(_MainTex, uv) + _TextureSampleAdd);
half4 color = (tex2D(_MainTex, uv) + _TextureSampleAdd);
color.rgb *= color.a;
return color;
}
@@ -172,7 +169,9 @@ Shader "Hidden/UI/Default (UIEffect)"
IN.color.a = round(IN.color.a * alphaPrecision) * invAlphaPrecision;
_fragInput = IN;
half4 c = uieffect(_fragInput.texcoord, _fragInput.uvMask, _fragInput.uvLocal);
half4 c = uieffect(IN.texcoord, IN.uvMask, IN.worldPosition);
c.rgb *= IN.color.rgb;
c *= IN.color.a;
#ifdef UNITY_UI_CLIP_RECT
half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(IN.mask.xy)) * IN.mask.zw);
+11 -1
View File
@@ -2,7 +2,7 @@
"name": "com.coffee.ui-effect",
"displayName": "UI Effect",
"description": "UIEffect is an open-source package that allows you to intuitively apply rich UI effects directly from the Inspector or via code.\nCombine various filters, such as grayscale, blur, and dissolve, to decorate your UI with a unique visual style!",
"version": "5.6.3",
"version": "5.7.0",
"unity": "2020.3",
"license": "MIT",
"repository": {
@@ -41,6 +41,16 @@
"displayName": "TextMeshPro Support (Unity 6)",
"description": "TextMeshPro Support (Unity 6)",
"path": "Samples~/TextMeshPro Support (Unity 6)~"
},
{
"displayName": "ShaderGraph Support (Unity 6 BuiltIn)",
"description": "ShaderGraph Support (Unity 6 BuiltIn)",
"path": "Samples~/ShaderGraph Support (Unity 6 BuiltIn)~"
},
{
"displayName": "ShaderGraph Support (Unity 6 URP)",
"description": "ShaderGraph Support (Unity 6 URP)",
"path": "Samples~/ShaderGraph Support (Unity 6 URP)~"
}
]
}
+33
View File
@@ -0,0 +1,33 @@
# Windows
Thumbs.db
Desktop.ini
/*.csproj
/*.sln
# macOS
.DS_Store
# Vim
*.swp
# Unity
/Logs
/Library
/Temp
Assets/Plugins.meta
Assets/Plugins/
# VS
.vs/
.vscode/
.idea/
obj/
bin/
UserSettings/
*.app/
Build/
Assets/TextMeshPro Support*
Assets/Demos*
Assets/Samples*
Assets/ShaderGraph*
.utmp/
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6264be0e08653414aa67537b429034ad
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,795 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-8336864658259555222
MonoBehaviour:
m_ObjectHideFlags: 3
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: 3eb4b772797da9440885e8bd939e9560, type: 3}
m_Name: ColorCurves
m_EditorClassIdentifier:
active: 1
master:
m_OverrideState: 1
m_Value:
<length>k__BackingField: 2
m_Loop: 0
m_ZeroValue: 0
m_Range: 1
m_Curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 1
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 1
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
red:
m_OverrideState: 1
m_Value:
<length>k__BackingField: 2
m_Loop: 0
m_ZeroValue: 0
m_Range: 1
m_Curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 1
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 1
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
green:
m_OverrideState: 1
m_Value:
<length>k__BackingField: 2
m_Loop: 0
m_ZeroValue: 0
m_Range: 1
m_Curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 1
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 1
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
blue:
m_OverrideState: 1
m_Value:
<length>k__BackingField: 2
m_Loop: 0
m_ZeroValue: 0
m_Range: 1
m_Curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 1
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 1
outSlope: 1
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
hueVsHue:
m_OverrideState: 1
m_Value:
<length>k__BackingField: 0
m_Loop: 1
m_ZeroValue: 0.5
m_Range: 1
m_Curve:
serializedVersion: 2
m_Curve: []
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
hueVsSat:
m_OverrideState: 1
m_Value:
<length>k__BackingField: 0
m_Loop: 1
m_ZeroValue: 0.5
m_Range: 1
m_Curve:
serializedVersion: 2
m_Curve: []
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
satVsSat:
m_OverrideState: 1
m_Value:
<length>k__BackingField: 0
m_Loop: 0
m_ZeroValue: 0.5
m_Range: 1
m_Curve:
serializedVersion: 2
m_Curve: []
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
lumVsSat:
m_OverrideState: 1
m_Value:
<length>k__BackingField: 0
m_Loop: 0
m_ZeroValue: 0.5
m_Range: 1
m_Curve:
serializedVersion: 2
m_Curve: []
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!114 &-8212352393057206831
MonoBehaviour:
m_ObjectHideFlags: 3
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: cdfbdbb87d3286943a057f7791b43141, type: 3}
m_Name: ChannelMixer
m_EditorClassIdentifier:
active: 1
redOutRedIn:
m_OverrideState: 1
m_Value: 100
redOutGreenIn:
m_OverrideState: 1
m_Value: 0
redOutBlueIn:
m_OverrideState: 1
m_Value: 0
greenOutRedIn:
m_OverrideState: 1
m_Value: 0
greenOutGreenIn:
m_OverrideState: 1
m_Value: 100
greenOutBlueIn:
m_OverrideState: 1
m_Value: 0
blueOutRedIn:
m_OverrideState: 1
m_Value: 0
blueOutGreenIn:
m_OverrideState: 1
m_Value: 0
blueOutBlueIn:
m_OverrideState: 1
m_Value: 100
--- !u!114 &-7399882961259743348
MonoBehaviour:
m_ObjectHideFlags: 3
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: 899c54efeace73346a0a16faa3afe726, type: 3}
m_Name: Vignette
m_EditorClassIdentifier:
active: 1
color:
m_OverrideState: 1
m_Value: {r: 0, g: 0, b: 0, a: 1}
center:
m_OverrideState: 1
m_Value: {x: 0.5, y: 0.5}
intensity:
m_OverrideState: 1
m_Value: 0
smoothness:
m_OverrideState: 1
m_Value: 0.2
rounded:
m_OverrideState: 1
m_Value: 0
--- !u!114 &-6652521870058445453
MonoBehaviour:
m_ObjectHideFlags: 3
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: c01700fd266d6914ababb731e09af2eb, type: 3}
m_Name: DepthOfField
m_EditorClassIdentifier:
active: 1
mode:
m_OverrideState: 1
m_Value: 0
gaussianStart:
m_OverrideState: 1
m_Value: 10
gaussianEnd:
m_OverrideState: 1
m_Value: 30
gaussianMaxRadius:
m_OverrideState: 1
m_Value: 1
highQualitySampling:
m_OverrideState: 1
m_Value: 0
focusDistance:
m_OverrideState: 1
m_Value: 10
aperture:
m_OverrideState: 1
m_Value: 5.6
focalLength:
m_OverrideState: 1
m_Value: 50
bladeCount:
m_OverrideState: 1
m_Value: 5
bladeCurvature:
m_OverrideState: 1
m_Value: 1
bladeRotation:
m_OverrideState: 1
m_Value: 0
--- !u!114 &-6381262270620203491
MonoBehaviour:
m_ObjectHideFlags: 3
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: 221518ef91623a7438a71fef23660601, type: 3}
m_Name: WhiteBalance
m_EditorClassIdentifier:
active: 1
temperature:
m_OverrideState: 1
m_Value: 0
tint:
m_OverrideState: 1
m_Value: 0
--- !u!114 &-4644531104394253644
MonoBehaviour:
m_ObjectHideFlags: 3
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: 558a8e2b6826cf840aae193990ba9f2e, type: 3}
m_Name: ShadowsMidtonesHighlights
m_EditorClassIdentifier:
active: 1
shadows:
m_OverrideState: 1
m_Value: {x: 1, y: 1, z: 1, w: 0}
midtones:
m_OverrideState: 1
m_Value: {x: 1, y: 1, z: 1, w: 0}
highlights:
m_OverrideState: 1
m_Value: {x: 1, y: 1, z: 1, w: 0}
shadowsStart:
m_OverrideState: 1
m_Value: 0
shadowsEnd:
m_OverrideState: 1
m_Value: 0.3
highlightsStart:
m_OverrideState: 1
m_Value: 0.55
highlightsEnd:
m_OverrideState: 1
m_Value: 1
--- !u!114 &-4214523630223854740
MonoBehaviour:
m_ObjectHideFlags: 3
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: 81180773991d8724ab7f2d216912b564, type: 3}
m_Name: ChromaticAberration
m_EditorClassIdentifier:
active: 1
intensity:
m_OverrideState: 1
m_Value: 0
--- !u!114 &-553946626418242846
MonoBehaviour:
m_ObjectHideFlags: 3
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: 06437c1ff663d574d9447842ba0a72e4, type: 3}
m_Name: ScreenSpaceLensFlare
m_EditorClassIdentifier:
active: 1
intensity:
m_OverrideState: 1
m_Value: 0
tintColor:
m_OverrideState: 1
m_Value: {r: 1, g: 1, b: 1, a: 1}
bloomMip:
m_OverrideState: 1
m_Value: 1
firstFlareIntensity:
m_OverrideState: 1
m_Value: 1
secondaryFlareIntensity:
m_OverrideState: 1
m_Value: 1
warpedFlareIntensity:
m_OverrideState: 1
m_Value: 1
warpedFlareScale:
m_OverrideState: 1
m_Value: {x: 1, y: 1}
samples:
m_OverrideState: 1
m_Value: 1
sampleDimmer:
m_OverrideState: 1
m_Value: 0.5
vignetteEffect:
m_OverrideState: 1
m_Value: 1
startingPosition:
m_OverrideState: 1
m_Value: 1.25
scale:
m_OverrideState: 1
m_Value: 1.5
streaksIntensity:
m_OverrideState: 1
m_Value: 0
streaksLength:
m_OverrideState: 1
m_Value: 0.5
streaksOrientation:
m_OverrideState: 1
m_Value: 0
streaksThreshold:
m_OverrideState: 1
m_Value: 0.25
resolution:
m_OverrideState: 1
m_Value: 4
chromaticAbberationIntensity:
m_OverrideState: 1
m_Value: 0.5
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
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: d7fd9488000d3734a9e00ee676215985, type: 3}
m_Name: DefaultVolumeProfile
m_EditorClassIdentifier:
components:
- {fileID: -4214523630223854740}
- {fileID: 3256296539133535820}
- {fileID: -6381262270620203491}
- {fileID: 4025685766746243130}
- {fileID: 3226636350449430592}
- {fileID: -4644531104394253644}
- {fileID: -6652521870058445453}
- {fileID: 3172702108033290293}
- {fileID: -7399882961259743348}
- {fileID: -8212352393057206831}
- {fileID: 7998264287233084598}
- {fileID: 8956553736762908615}
- {fileID: -8336864658259555222}
- {fileID: 7980578387986641162}
- {fileID: 1304985158138474527}
- {fileID: 2128955758962652948}
- {fileID: -553946626418242846}
- {fileID: 4560404057610505324}
- {fileID: 4728884699989792876}
--- !u!114 &1304985158138474527
MonoBehaviour:
m_ObjectHideFlags: 3
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: 29fa0085f50d5e54f8144f766051a691, type: 3}
m_Name: FilmGrain
m_EditorClassIdentifier:
active: 1
type:
m_OverrideState: 1
m_Value: 0
intensity:
m_OverrideState: 1
m_Value: 0
response:
m_OverrideState: 1
m_Value: 0.8
texture:
m_OverrideState: 1
m_Value: {fileID: 0}
--- !u!114 &2128955758962652948
MonoBehaviour:
m_ObjectHideFlags: 3
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: c5e1dc532bcb41949b58bc4f2abfbb7e, type: 3}
m_Name: LensDistortion
m_EditorClassIdentifier:
active: 1
intensity:
m_OverrideState: 1
m_Value: 0
xMultiplier:
m_OverrideState: 1
m_Value: 1
yMultiplier:
m_OverrideState: 1
m_Value: 1
center:
m_OverrideState: 1
m_Value: {x: 0.5, y: 0.5}
scale:
m_OverrideState: 1
m_Value: 1
--- !u!114 &3172702108033290293
MonoBehaviour:
m_ObjectHideFlags: 3
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: 66f335fb1ffd8684294ad653bf1c7564, type: 3}
m_Name: ColorAdjustments
m_EditorClassIdentifier:
active: 1
postExposure:
m_OverrideState: 1
m_Value: 0
contrast:
m_OverrideState: 1
m_Value: 0
colorFilter:
m_OverrideState: 1
m_Value: {r: 1, g: 1, b: 1, a: 1}
hueShift:
m_OverrideState: 1
m_Value: 0
saturation:
m_OverrideState: 1
m_Value: 0
--- !u!114 &3226636350449430592
MonoBehaviour:
m_ObjectHideFlags: 3
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: 97c23e3b12dc18c42a140437e53d3951, type: 3}
m_Name: Tonemapping
m_EditorClassIdentifier:
active: 1
mode:
m_OverrideState: 1
m_Value: 0
neutralHDRRangeReductionMode:
m_OverrideState: 1
m_Value: 2
acesPreset:
m_OverrideState: 1
m_Value: 3
hueShiftAmount:
m_OverrideState: 1
m_Value: 0
detectPaperWhite:
m_OverrideState: 1
m_Value: 0
paperWhite:
m_OverrideState: 1
m_Value: 300
detectBrightnessLimits:
m_OverrideState: 1
m_Value: 1
minNits:
m_OverrideState: 1
m_Value: 0.005
maxNits:
m_OverrideState: 1
m_Value: 1000
--- !u!114 &3256296539133535820
MonoBehaviour:
m_ObjectHideFlags: 3
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: e021b4c809a781e468c2988c016ebbea, type: 3}
m_Name: ColorLookup
m_EditorClassIdentifier:
active: 1
texture:
m_OverrideState: 1
m_Value: {fileID: 0}
dimension: 1
contribution:
m_OverrideState: 1
m_Value: 0
--- !u!114 &4025685766746243130
MonoBehaviour:
m_ObjectHideFlags: 3
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: ccf1aba9553839d41ae37dd52e9ebcce, type: 3}
m_Name: MotionBlur
m_EditorClassIdentifier:
active: 1
mode:
m_OverrideState: 1
m_Value: 0
quality:
m_OverrideState: 1
m_Value: 0
intensity:
m_OverrideState: 1
m_Value: 0
clamp:
m_OverrideState: 1
m_Value: 0.05
--- !u!114 &4560404057610505324
MonoBehaviour:
m_ObjectHideFlags: 3
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: 70afe9e12c7a7ed47911bb608a23a8ff, type: 3}
m_Name: SplitToning
m_EditorClassIdentifier:
active: 1
shadows:
m_OverrideState: 1
m_Value: {r: 0.5, g: 0.5, b: 0.5, a: 1}
highlights:
m_OverrideState: 1
m_Value: {r: 0.5, g: 0.5, b: 0.5, a: 1}
balance:
m_OverrideState: 1
m_Value: 0
--- !u!114 &4728884699989792876
MonoBehaviour:
m_ObjectHideFlags: 3
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: 6bd486065ce11414fa40e631affc4900, type: 3}
m_Name: ProbeVolumesOptions
m_EditorClassIdentifier:
active: 1
normalBias:
m_OverrideState: 1
m_Value: 0.05
viewBias:
m_OverrideState: 1
m_Value: 0.1
scaleBiasWithMinProbeDistance:
m_OverrideState: 1
m_Value: 0
samplingNoise:
m_OverrideState: 1
m_Value: 0.1
animateSamplingNoise:
m_OverrideState: 1
m_Value: 1
leakReductionMode:
m_OverrideState: 1
m_Value: 2
minValidDotProductValue:
m_OverrideState: 1
m_Value: 0.1
occlusionOnlyReflectionNormalization:
m_OverrideState: 1
m_Value: 1
intensityMultiplier:
m_OverrideState: 1
m_Value: 1
skyOcclusionIntensityMultiplier:
m_OverrideState: 1
m_Value: 1
worldOffset:
m_OverrideState: 1
m_Value: {x: 0, y: 0, z: 0}
--- !u!114 &7980578387986641162
MonoBehaviour:
m_ObjectHideFlags: 3
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: fb60a22f311433c4c962b888d1393f88, type: 3}
m_Name: PaniniProjection
m_EditorClassIdentifier:
active: 1
distance:
m_OverrideState: 1
m_Value: 0
cropToFit:
m_OverrideState: 1
m_Value: 1
--- !u!114 &7998264287233084598
MonoBehaviour:
m_ObjectHideFlags: 3
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: 5485954d14dfb9a4c8ead8edb0ded5b1, type: 3}
m_Name: LiftGammaGain
m_EditorClassIdentifier:
active: 1
lift:
m_OverrideState: 1
m_Value: {x: 1, y: 1, z: 1, w: 0}
gamma:
m_OverrideState: 1
m_Value: {x: 1, y: 1, z: 1, w: 0}
gain:
m_OverrideState: 1
m_Value: {x: 1, y: 1, z: 1, w: 0}
--- !u!114 &8956553736762908615
MonoBehaviour:
m_ObjectHideFlags: 3
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: 0b2db86121404754db890f4c8dfe81b2, type: 3}
m_Name: Bloom
m_EditorClassIdentifier:
active: 1
skipIterations:
m_OverrideState: 1
m_Value: 1
threshold:
m_OverrideState: 1
m_Value: 0.9
intensity:
m_OverrideState: 1
m_Value: 0
scatter:
m_OverrideState: 1
m_Value: 0.7
clamp:
m_OverrideState: 1
m_Value: 65472
tint:
m_OverrideState: 1
m_Value: {r: 1, g: 1, b: 1, a: 1}
highQualityFiltering:
m_OverrideState: 1
m_Value: 0
downscale:
m_OverrideState: 1
m_Value: 0
maxIterations:
m_OverrideState: 1
m_Value: 6
dirtTexture:
m_OverrideState: 1
m_Value: {fileID: 0}
dimension: 1
dirtIntensity:
m_OverrideState: 1
m_Value: 0
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 510e8398012bc4d68aaba4f1c44f85d1
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,33 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
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: 194d2f2eb25c64ec0af5c323c74eb518, type: 3}
m_Name: NanoMonitorProjectSettings
m_EditorClassIdentifier:
m_NanoMonitorEnabled: 1
m_BootSceneNameRegex: .*
m_DevelopmentBuildOnly: 0
m_EnabledInEditor: 1
m_AlwaysIncludeAssembly: 0
m_InstantiateOnLoad: 1
m_Prefab: {fileID: 4567906826058368312, guid: 7cebff2d255b9433cbe23b243c193329, type: 3}
m_Interval: 0.5
m_Anchor: 1
m_Width: 800
m_HelpUrl: https://github.com/mob-sakai/Coffee.Internal
m_CustomMonitorItems:
- m_Format: Screen:{0}x{1}
m_Arg0:
m_Path: UnityEngine.Screen, UnityEngine.CoreModule;width
m_Arg1:
m_Path: UnityEngine.Screen, UnityEngine.CoreModule;height
m_Arg2:
m_Path:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 57c4b35330c8049c78d3a71e8a8dc18a
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,136 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
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: bf2edee5c58d82540a51f03df9d42094, type: 3}
m_Name: New Universal Render Pipeline Asset
m_EditorClassIdentifier:
k_AssetVersion: 12
k_AssetPreviousVersion: 12
m_RendererType: 1
m_RendererData: {fileID: 0}
m_RendererDataList:
- {fileID: 11400000, guid: e49029e3eccdb4aa0ab6839e520f161d, type: 2}
m_DefaultRendererIndex: 0
m_RequireDepthTexture: 0
m_RequireOpaqueTexture: 0
m_OpaqueDownsampling: 1
m_SupportsTerrainHoles: 1
m_SupportsHDR: 1
m_HDRColorBufferPrecision: 0
m_MSAA: 1
m_RenderScale: 1
m_UpscalingFilter: 0
m_FsrOverrideSharpness: 0
m_FsrSharpness: 0.92
m_EnableLODCrossFade: 1
m_LODCrossFadeDitheringType: 1
m_ShEvalMode: 0
m_LightProbeSystem: 0
m_ProbeVolumeMemoryBudget: 1024
m_ProbeVolumeBlendingMemoryBudget: 256
m_SupportProbeVolumeGPUStreaming: 0
m_SupportProbeVolumeDiskStreaming: 0
m_SupportProbeVolumeScenarios: 0
m_SupportProbeVolumeScenarioBlending: 0
m_ProbeVolumeSHBands: 1
m_MainLightRenderingMode: 1
m_MainLightShadowsSupported: 1
m_MainLightShadowmapResolution: 2048
m_AdditionalLightsRenderingMode: 1
m_AdditionalLightsPerObjectLimit: 4
m_AdditionalLightShadowsSupported: 0
m_AdditionalLightsShadowmapResolution: 2048
m_AdditionalLightsShadowResolutionTierLow: 256
m_AdditionalLightsShadowResolutionTierMedium: 512
m_AdditionalLightsShadowResolutionTierHigh: 1024
m_ReflectionProbeBlending: 0
m_ReflectionProbeBoxProjection: 0
m_ShadowDistance: 50
m_ShadowCascadeCount: 1
m_Cascade2Split: 0.25
m_Cascade3Split: {x: 0.1, y: 0.3}
m_Cascade4Split: {x: 0.067, y: 0.2, z: 0.467}
m_CascadeBorder: 0.2
m_ShadowDepthBias: 1
m_ShadowNormalBias: 1
m_AnyShadowsSupported: 1
m_SoftShadowsSupported: 0
m_ConservativeEnclosingSphere: 1
m_NumIterationsEnclosingSphere: 64
m_SoftShadowQuality: 2
m_AdditionalLightsCookieResolution: 2048
m_AdditionalLightsCookieFormat: 3
m_UseSRPBatcher: 1
m_SupportsDynamicBatching: 0
m_MixedLightingSupported: 1
m_SupportsLightCookies: 1
m_SupportsLightLayers: 0
m_DebugLevel: 0
m_StoreActionsOptimization: 0
m_UseAdaptivePerformance: 1
m_ColorGradingMode: 0
m_ColorGradingLutSize: 32
m_AllowPostProcessAlphaOutput: 0
m_UseFastSRGBLinearConversion: 0
m_SupportDataDrivenLensFlare: 1
m_SupportScreenSpaceLensFlare: 1
m_GPUResidentDrawerMode: 0
m_SmallMeshScreenPercentage: 0
m_GPUResidentDrawerEnableOcclusionCullingInCameras: 0
m_ShadowType: 1
m_LocalShadowsSupported: 0
m_LocalShadowsAtlasResolution: 256
m_MaxPixelLights: 0
m_ShadowAtlasResolution: 256
m_VolumeFrameworkUpdateMode: 0
m_VolumeProfile: {fileID: 0}
apvScenesData:
obsoleteSceneBounds:
m_Keys: []
m_Values: []
obsoleteHasProbeVolumes:
m_Keys: []
m_Values:
m_PrefilteringModeMainLightShadows: 3
m_PrefilteringModeAdditionalLight: 3
m_PrefilteringModeAdditionalLightShadows: 0
m_PrefilterXRKeywords: 1
m_PrefilteringModeForwardPlus: 0
m_PrefilteringModeDeferredRendering: 0
m_PrefilteringModeScreenSpaceOcclusion: 0
m_PrefilterDebugKeywords: 1
m_PrefilterWriteRenderingLayers: 1
m_PrefilterHDROutput: 1
m_PrefilterAlphaOutput: 1
m_PrefilterSSAODepthNormals: 1
m_PrefilterSSAOSourceDepthLow: 1
m_PrefilterSSAOSourceDepthMedium: 1
m_PrefilterSSAOSourceDepthHigh: 1
m_PrefilterSSAOInterleaved: 1
m_PrefilterSSAOBlueNoise: 1
m_PrefilterSSAOSampleCountLow: 1
m_PrefilterSSAOSampleCountMedium: 1
m_PrefilterSSAOSampleCountHigh: 1
m_PrefilterDBufferMRT1: 1
m_PrefilterDBufferMRT2: 1
m_PrefilterDBufferMRT3: 1
m_PrefilterSoftShadowsQualityLow: 1
m_PrefilterSoftShadowsQualityMedium: 1
m_PrefilterSoftShadowsQualityHigh: 1
m_PrefilterSoftShadows: 0
m_PrefilterScreenCoord: 1
m_PrefilterNativeRenderPass: 1
m_PrefilterUseLegacyLightmaps: 0
m_ShaderVariantLogLevel: 0
m_ShadowCascades: 0
m_Textures:
blueNoise64LTex: {fileID: 2800000, guid: e3d24661c1e055f45a7560c033dbb837, type: 3}
bayerMatrixTex: {fileID: 2800000, guid: f9ee4ed84c1d10c49aabb9b210b0fc44, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9957cc42fcbc8492a939e023d535f94d
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,52 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
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: de640fe3d0db1804a85f9fc8f5cadab6, type: 3}
m_Name: New Universal Render Pipeline Asset_Renderer
m_EditorClassIdentifier:
debugShaders:
debugReplacementPS: {fileID: 4800000, guid: cf852408f2e174538bcd9b7fda1c5ae7, type: 3}
hdrDebugViewPS: {fileID: 4800000, guid: 573620ae32aec764abd4d728906d2587, type: 3}
probeVolumeSamplingDebugComputeShader: {fileID: 7200000, guid: 53626a513ea68ce47b59dc1299fe3959, type: 3}
probeVolumeResources:
probeVolumeDebugShader: {fileID: 0}
probeVolumeFragmentationDebugShader: {fileID: 0}
probeVolumeOffsetDebugShader: {fileID: 0}
probeVolumeSamplingDebugShader: {fileID: 0}
probeSamplingDebugMesh: {fileID: 0}
probeSamplingDebugTexture: {fileID: 0}
probeVolumeBlendStatesCS: {fileID: 0}
m_RendererFeatures: []
m_RendererFeatureMap:
m_UseNativeRenderPass: 0
postProcessData: {fileID: 11400000, guid: 41439944d30ece34e96484bdb6645b55, type: 2}
m_AssetVersion: 2
m_OpaqueLayerMask:
serializedVersion: 2
m_Bits: 4294967295
m_TransparentLayerMask:
serializedVersion: 2
m_Bits: 4294967295
m_DefaultStencilState:
overrideStencilState: 0
stencilReference: 0
stencilCompareFunction: 8
passOperation: 2
failOperation: 0
zFailOperation: 0
m_ShadowTransparentReceive: 1
m_RenderingMode: 0
m_DepthPrimingMode: 0
m_CopyDepthMode: 1
m_DepthAttachmentFormat: 0
m_DepthTextureFormat: 0
m_AccurateGbufferNormals: 0
m_IntermediateTextureMode: 1
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e49029e3eccdb4aa0ab6839e520f161d
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,357 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!200 &-7225376290180000660
ShaderVariantCollection:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: ShaderVariants
m_Shaders:
- first: {fileID: -6465566751694194690, guid: 2da9d5515fb3241beb8b1aedff6ade6f, type: 3}
second:
variants:
- keywords: COLOR_ADDITIVE TONE_GRAYSCALE
passType: 0
- keywords: COLOR_MULTIPLY SAMPLING_BLUR_FAST TONE_GRAYSCALE
passType: 0
- keywords: COLOR_MULTIPLY SAMPLING_PIXELATION TONE_GRAYSCALE
passType: 0
- keywords: COLOR_MULTIPLY TONE_GRAYSCALE
passType: 0
- keywords: COLOR_REPLACE TONE_GRAYSCALE
passType: 0
- keywords: TONE_GRAYSCALE
passType: 0
- first: {fileID: 4800000, guid: 96246b1ead49a4c5a996fd477bc5a117, type: 3}
second:
variants:
- keywords:
passType: 0
- keywords: COLOR_ADDITIVE
passType: 0
- keywords: COLOR_CONTRAST
passType: 0
- keywords: COLOR_HSV_MODIFIER
passType: 0
- keywords: COLOR_HSV_MODIFIER TARGET_HUE
passType: 0
- keywords: COLOR_HSV_MODIFIER TARGET_LUMINANCE
passType: 0
- keywords: COLOR_MULTIPLY
passType: 0
- keywords: COLOR_MULTIPLY SAMPLING_BLUR_FAST TONE_GRAYSCALE
passType: 0
- keywords: COLOR_MULTIPLY SHADOW_COLOR_REPLACE
passType: 0
- keywords: COLOR_MULTIPLY_ADDITIVE
passType: 0
- keywords: COLOR_MULTIPLY_LUMINANCE
passType: 0
- keywords: COLOR_REPLACE
passType: 0
- keywords: COLOR_SUBTRACTIVE
passType: 0
- keywords: DETAIL_ADDITIVE
passType: 0
- keywords: DETAIL_MASKING
passType: 0
- keywords: DETAIL_MULTIPLY
passType: 0
- keywords: DETAIL_MULTIPLY_ADDITIVE
passType: 0
- keywords: DETAIL_REPLACE
passType: 0
- keywords: EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_PLAIN
passType: 0
- keywords: EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_SHINY
passType: 0
- keywords: GRADATION_COLOR2
passType: 0
- keywords: GRADATION_COLOR4
passType: 0
- keywords: GRADATION_GRADIENT
passType: 0
- keywords: GRADATION_RADIAL
passType: 0
- keywords: SAMPLING_BLUR_DETAIL
passType: 0
- keywords: SAMPLING_BLUR_FAST
passType: 0
- keywords: SAMPLING_BLUR_FAST SHADOW_COLOR_REPLACE
passType: 0
- keywords: SAMPLING_BLUR_MEDIUM
passType: 0
- keywords: SAMPLING_EDGE_ALPHA
passType: 0
- keywords: SAMPLING_EDGE_LUMINANCE
passType: 0
- keywords: SAMPLING_PIXELATION
passType: 0
- keywords: SAMPLING_RGB_SHIFT
passType: 0
- keywords: SHADOW_COLOR_REPLACE
passType: 0
- keywords: SHADOW_COLOR_REPLACE TRANSITION_COLOR_REPLACE TRANSITION_MELT
passType: 0
- keywords: TONE_GRAYSCALE
passType: 0
- keywords: TONE_NEGATIVE
passType: 0
- keywords: TONE_POSTERIZE
passType: 0
- keywords: TONE_RETRO
passType: 0
- keywords: TONE_SEPIA
passType: 0
- keywords: TRANSITION_BURN TRANSITION_COLOR_MULTIPLY_ADDITIVE
passType: 0
- keywords: TRANSITION_COLOR_MULTIPLY TRANSITION_PATTERN
passType: 0
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_DISSOLVE
passType: 0
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_MASK
passType: 0
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_SHINY
passType: 0
- keywords: TRANSITION_COLOR_REPLACE TRANSITION_MELT
passType: 0
- keywords: TRANSITION_CUTOFF
passType: 0
- keywords: TRANSITION_FADE
passType: 0
- first: {fileID: -6465566751694194690, guid: e5b632cdcfc38478ebc1424ae9371f99, type: 3}
second:
variants:
- keywords:
passType: 0
- keywords: COLOR_ADDITIVE
passType: 0
- keywords: COLOR_CONTRAST
passType: 0
- keywords: COLOR_HSV_MODIFIER
passType: 0
- keywords: COLOR_HSV_MODIFIER TARGET_HUE
passType: 0
- keywords: COLOR_HSV_MODIFIER TARGET_LUMINANCE
passType: 0
- keywords: COLOR_MULTIPLY
passType: 0
- keywords: COLOR_MULTIPLY SAMPLING_BLUR_FAST TONE_GRAYSCALE
passType: 0
- keywords: COLOR_MULTIPLY SHADOW_COLOR_REPLACE
passType: 0
- keywords: COLOR_MULTIPLY_ADDITIVE
passType: 0
- keywords: COLOR_MULTIPLY_LUMINANCE
passType: 0
- keywords: COLOR_REPLACE
passType: 0
- keywords: COLOR_SUBTRACTIVE
passType: 0
- keywords: DETAIL_ADDITIVE
passType: 0
- keywords: DETAIL_MASKING
passType: 0
- keywords: DETAIL_MULTIPLY
passType: 0
- keywords: DETAIL_MULTIPLY_ADDITIVE
passType: 0
- keywords: DETAIL_REPLACE
passType: 0
- keywords: EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_PLAIN
passType: 0
- keywords: EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_SHINY
passType: 0
- keywords: GRADATION_COLOR2
passType: 0
- keywords: GRADATION_COLOR4
passType: 0
- keywords: GRADATION_GRADIENT
passType: 0
- keywords: GRADATION_RADIAL
passType: 0
- keywords: SAMPLING_BLUR_DETAIL
passType: 0
- keywords: SAMPLING_BLUR_FAST
passType: 0
- keywords: SAMPLING_BLUR_FAST SHADOW_COLOR_REPLACE
passType: 0
- keywords: SAMPLING_BLUR_MEDIUM
passType: 0
- keywords: SAMPLING_EDGE_ALPHA
passType: 0
- keywords: SAMPLING_EDGE_LUMINANCE
passType: 0
- keywords: SAMPLING_PIXELATION
passType: 0
- keywords: SAMPLING_RGB_SHIFT
passType: 0
- keywords: SHADOW_COLOR_REPLACE
passType: 0
- keywords: SHADOW_COLOR_REPLACE TRANSITION_COLOR_REPLACE TRANSITION_MELT
passType: 0
- keywords: TONE_GRAYSCALE
passType: 0
- keywords: TONE_NEGATIVE
passType: 0
- keywords: TONE_POSTERIZE
passType: 0
- keywords: TONE_RETRO
passType: 0
- keywords: TONE_SEPIA
passType: 0
- keywords: TRANSITION_BURN TRANSITION_COLOR_MULTIPLY_ADDITIVE
passType: 0
- keywords: TRANSITION_COLOR_MULTIPLY TRANSITION_PATTERN
passType: 0
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_DISSOLVE
passType: 0
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_MASK
passType: 0
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_SHINY
passType: 0
- keywords: TRANSITION_COLOR_REPLACE TRANSITION_MELT
passType: 0
- keywords: TRANSITION_CUTOFF
passType: 0
- keywords: TRANSITION_FADE
passType: 0
- first: {fileID: -6465566751694194690, guid: c4b99d7494b704b7c885015e0153163b, type: 3}
second:
variants:
- keywords:
passType: 0
- keywords: COLOR_ADDITIVE
passType: 0
- keywords: COLOR_CONTRAST
passType: 0
- keywords: COLOR_HSV_MODIFIER
passType: 0
- keywords: COLOR_HSV_MODIFIER TARGET_HUE
passType: 0
- keywords: COLOR_HSV_MODIFIER TARGET_LUMINANCE
passType: 0
- keywords: COLOR_MULTIPLY
passType: 0
- keywords: COLOR_MULTIPLY SHADOW_COLOR_REPLACE
passType: 0
- keywords: COLOR_MULTIPLY_ADDITIVE
passType: 0
- keywords: COLOR_MULTIPLY_LUMINANCE
passType: 0
- keywords: COLOR_REPLACE
passType: 0
- keywords: COLOR_SUBTRACTIVE
passType: 0
- keywords: DETAIL_ADDITIVE
passType: 0
- keywords: DETAIL_MASKING
passType: 0
- keywords: DETAIL_MULTIPLY
passType: 0
- keywords: DETAIL_MULTIPLY_ADDITIVE
passType: 0
- keywords: DETAIL_REPLACE
passType: 0
- keywords: EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_PLAIN
passType: 0
- keywords: EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_SHINY
passType: 0
- keywords: GRADATION_COLOR2
passType: 0
- keywords: GRADATION_COLOR4
passType: 0
- keywords: GRADATION_GRADIENT
passType: 0
- keywords: GRADATION_RADIAL
passType: 0
- keywords: SAMPLING_BLUR_DETAIL
passType: 0
- keywords: SAMPLING_BLUR_FAST
passType: 0
- keywords: SAMPLING_BLUR_FAST SHADOW_COLOR_REPLACE
passType: 0
- keywords: SAMPLING_BLUR_MEDIUM
passType: 0
- keywords: SAMPLING_EDGE_ALPHA
passType: 0
- keywords: SAMPLING_EDGE_LUMINANCE
passType: 0
- keywords: SAMPLING_PIXELATION
passType: 0
- keywords: SAMPLING_RGB_SHIFT
passType: 0
- keywords: SHADOW_COLOR_REPLACE
passType: 0
- keywords: SHADOW_COLOR_REPLACE TRANSITION_COLOR_REPLACE TRANSITION_MELT
passType: 0
- keywords: TONE_GRAYSCALE
passType: 0
- keywords: TONE_NEGATIVE
passType: 0
- keywords: TONE_POSTERIZE
passType: 0
- keywords: TONE_RETRO
passType: 0
- keywords: TONE_SEPIA
passType: 0
- keywords: TRANSITION_BURN TRANSITION_COLOR_MULTIPLY_ADDITIVE
passType: 0
- keywords: TRANSITION_COLOR_MULTIPLY TRANSITION_PATTERN
passType: 0
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_DISSOLVE
passType: 0
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_MASK
passType: 0
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_SHINY
passType: 0
- keywords: TRANSITION_COLOR_REPLACE TRANSITION_MELT
passType: 0
- keywords: TRANSITION_CUTOFF
passType: 0
- keywords: TRANSITION_FADE
passType: 0
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
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: 7d43f626d9b5f4d729097092ded48bdb, type: 3}
m_Name: UIEffectProjectSettings
m_EditorClassIdentifier:
m_TransformSensitivity: 1
m_RuntimePresets:
- {fileID: 1645081683573595507, guid: 3b09ad143990c4c8795c6e93760e132a, type: 3}
- {fileID: 1645081683573595507, guid: 4f70ff0f1e25b4388b9bcb38d619f7bf, type: 3}
m_UseHDRColorPicker: 1
m_ShaderVariantCollection: {fileID: 0}
m_ShaderVariantRegistry:
m_OptionalShaders:
- key: Hidden/UI/Default (SoftMaskable)
value: Hidden/UI/Default (UIEffect)
- key: Hidden/TextMeshPro/Bitmap (SoftMaskable)
value: Hidden/TextMeshPro/Bitmap (UIEffect)
- key: Hidden/TextMeshPro/Distance Field (SoftMaskable)
value: Hidden/TextMeshPro/Distance Field (UIEffect)
- key: Hidden/TextMeshPro/Distance Field Overlay (SoftMaskable)
value: Hidden/TextMeshPro/Distance Field Overlay (UIEffect)
- key: Hidden/TextMeshPro/Distance Field SSD (SoftMaskable)
value: Hidden/TextMeshPro/Distance Field SSD (UIEffect)
- key: Hidden/TextMeshPro/Mobile/Bitmap (SoftMaskable)
value: Hidden/TextMeshPro/Mobile/Bitmap (UIEffect)
- key: Hidden/TextMeshPro/Mobile/Distance Field (SoftMaskable)
value: Hidden/TextMeshPro/Mobile/Distance Field (UIEffect)
- key: Hidden/TextMeshPro/Mobile/Distance Field Overlay (SoftMaskable)
value: Hidden/TextMeshPro/Mobile/Distance Field Overlay (UIEffect)
- key: Hidden/TextMeshPro/Mobile/Distance Field SSD (SoftMaskable)
value: Hidden/TextMeshPro/Mobile/Distance Field SSD (UIEffect)
- key: Shader Graphs/UISample (UIEffect)
value: Shader Graphs/UISample (UIEffect)
m_Asset: {fileID: -7225376290180000660}
m_ErrorOnUnregisteredVariant: 0
m_UnregisteredVariants: []
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 91a4d4816ffae45c988dc657cab6411a
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,264 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
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: 2ec995e51a6e251468d2a3fd8a686257, type: 3}
m_Name: UniversalRenderPipelineGlobalSettings
m_EditorClassIdentifier:
m_ShaderStrippingSetting:
m_Version: 0
m_ExportShaderVariants: 1
m_ShaderVariantLogLevel: 0
m_StripRuntimeDebugShaders: 1
m_URPShaderStrippingSetting:
m_Version: 0
m_StripUnusedPostProcessingVariants: 0
m_StripUnusedVariants: 1
m_StripScreenCoordOverrideVariants: 1
m_ShaderVariantLogLevel: 0
m_ExportShaderVariants: 1
m_StripDebugVariants: 1
m_StripUnusedPostProcessingVariants: 0
m_StripUnusedVariants: 1
m_StripScreenCoordOverrideVariants: 1
supportRuntimeDebugDisplay: 0
m_EnableRenderGraph: 0
m_Settings:
m_SettingsList:
m_List:
- rid: 5414127343351365632
- rid: 5414127343351365633
- rid: 5414127343351365634
- rid: 5414127343351365635
- rid: 5414127343351365636
- rid: 5414127343351365637
- rid: 5414127343351365638
- rid: 5414127343351365639
- rid: 5414127343351365640
- rid: 5414127343351365641
- rid: 5414127343351365642
- rid: 5414127343351365643
- rid: 5414127343351365644
- rid: 5414127343351365645
- rid: 5414127343351365646
- rid: 5414127343351365647
- rid: 5414127343351365648
- rid: 5414127343351365649
- rid: 5414127343351365650
- rid: 5414127343351365651
- rid: 5414127343351365652
- rid: 5414127343351365653
m_RuntimeSettings:
m_List:
- rid: 5414127343351365634
- rid: 5414127343351365636
- rid: 5414127343351365638
- rid: 5414127343351365639
- rid: 5414127343351365640
- rid: 5414127343351365641
- rid: 5414127343351365643
- rid: 5414127343351365645
- rid: 5414127343351365649
- rid: 5414127343351365652
m_AssetVersion: 8
m_ObsoleteDefaultVolumeProfile: {fileID: 0}
m_RenderingLayerNames:
- Default
m_ValidRenderingLayers: 0
lightLayerName0:
lightLayerName1:
lightLayerName2:
lightLayerName3:
lightLayerName4:
lightLayerName5:
lightLayerName6:
lightLayerName7:
apvScenesData:
obsoleteSceneBounds:
m_Keys: []
m_Values: []
obsoleteHasProbeVolumes:
m_Keys: []
m_Values:
references:
version: 2
RefIds:
- rid: 5414127343351365632
type: {class: UniversalRenderPipelineEditorMaterials, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
data:
m_DefaultMaterial: {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2}
m_DefaultParticleMaterial: {fileID: 2100000, guid: e823cd5b5d27c0f4b8256e7c12ee3e6d, type: 2}
m_DefaultLineMaterial: {fileID: 2100000, guid: e823cd5b5d27c0f4b8256e7c12ee3e6d, type: 2}
m_DefaultTerrainMaterial: {fileID: 2100000, guid: 594ea882c5a793440b60ff72d896021e, type: 2}
m_DefaultDecalMaterial: {fileID: 2100000, guid: 31d0dcc6f2dd4e4408d18036a2c93862, type: 2}
m_DefaultSpriteMaterial: {fileID: 2100000, guid: 9dfc825aed78fcd4ba02077103263b40, type: 2}
- rid: 5414127343351365633
type: {class: UniversalRenderPipelineEditorShaders, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
data:
m_AutodeskInteractive: {fileID: 4800000, guid: 0e9d5a909a1f7e84882a534d0d11e49f, type: 3}
m_AutodeskInteractiveTransparent: {fileID: 4800000, guid: 5c81372d981403744adbdda4433c9c11, type: 3}
m_AutodeskInteractiveMasked: {fileID: 4800000, guid: 80aa867ac363ac043847b06ad71604cd, type: 3}
m_TerrainDetailLit: {fileID: 4800000, guid: f6783ab646d374f94b199774402a5144, type: 3}
m_TerrainDetailGrassBillboard: {fileID: 4800000, guid: 29868e73b638e48ca99a19ea58c48d90, type: 3}
m_TerrainDetailGrass: {fileID: 4800000, guid: e507fdfead5ca47e8b9a768b51c291a1, type: 3}
m_DefaultSpeedTree7Shader: {fileID: 4800000, guid: 0f4122b9a743b744abe2fb6a0a88868b, type: 3}
m_DefaultSpeedTree8Shader: {fileID: -6465566751694194690, guid: 9920c1f1781549a46ba081a2a15a16ec, type: 3}
m_DefaultSpeedTree9Shader: {fileID: -6465566751694194690, guid: cbd3e1cc4ae141c42a30e33b4d666a61, type: 3}
- rid: 5414127343351365634
type: {class: UniversalRenderPipelineRuntimeXRResources, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
data:
m_xrOcclusionMeshPS: {fileID: 4800000, guid: 4431b1f1f743fbf4eb310a967890cbea, type: 3}
m_xrMirrorViewPS: {fileID: 4800000, guid: d5a307c014552314b9f560906d708772, type: 3}
m_xrMotionVector: {fileID: 4800000, guid: f89aac1e4f84468418fe30e611dff395, type: 3}
- rid: 5414127343351365635
type: {class: Renderer2DResources, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
data:
m_Version: 0
m_LightShader: {fileID: 4800000, guid: 3f6c848ca3d7bca4bbe846546ac701a1, type: 3}
m_ProjectedShadowShader: {fileID: 4800000, guid: ce09d4a80b88c5a4eb9768fab4f1ee00, type: 3}
m_SpriteShadowShader: {fileID: 4800000, guid: 44fc62292b65ab04eabcf310e799ccf6, type: 3}
m_SpriteUnshadowShader: {fileID: 4800000, guid: de02b375720b5c445afe83cd483bedf3, type: 3}
m_GeometryShadowShader: {fileID: 4800000, guid: 19349a0f9a7ed4c48a27445bcf92e5e1, type: 3}
m_GeometryUnshadowShader: {fileID: 4800000, guid: 77774d9009bb81447b048c907d4c6273, type: 3}
m_FallOffLookup: {fileID: 2800000, guid: 5688ab254e4c0634f8d6c8e0792331ca, type: 3}
m_CopyDepthPS: {fileID: 4800000, guid: d6dae50ee9e1bfa4db75f19f99355220, type: 3}
m_DefaultLitMaterial: {fileID: 2100000, guid: a97c105638bdf8b4a8650670310a4cd3, type: 2}
m_DefaultUnlitMaterial: {fileID: 2100000, guid: 9dfc825aed78fcd4ba02077103263b40, type: 2}
m_DefaultMaskMaterial: {fileID: 2100000, guid: 15d0c3709176029428a0da2f8cecf0b5, type: 2}
- rid: 5414127343351365636
type: {class: RenderGraphSettings, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
data:
m_Version: 0
m_EnableRenderCompatibilityMode: 0
- rid: 5414127343351365637
type: {class: UniversalRenderPipelineEditorAssets, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
data:
m_DefaultSettingsVolumeProfile: {fileID: 11400000, guid: eda47df5b85f4f249abf7abd73db2cb2, type: 2}
- rid: 5414127343351365638
type: {class: UniversalRenderPipelineRuntimeTextures, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
data:
m_Version: 1
m_BlueNoise64LTex: {fileID: 2800000, guid: e3d24661c1e055f45a7560c033dbb837, type: 3}
m_BayerMatrixTex: {fileID: 2800000, guid: f9ee4ed84c1d10c49aabb9b210b0fc44, type: 3}
m_DebugFontTex: {fileID: 2800000, guid: 26a413214480ef144b2915d6ff4d0beb, type: 3}
- rid: 5414127343351365639
type: {class: UniversalRenderPipelineRuntimeShaders, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
data:
m_Version: 0
m_FallbackErrorShader: {fileID: 4800000, guid: e6e9a19c3678ded42a3bc431ebef7dbd, type: 3}
m_BlitHDROverlay: {fileID: 4800000, guid: a89bee29cffa951418fc1e2da94d1959, type: 3}
m_CoreBlitPS: {fileID: 4800000, guid: 93446b5c5339d4f00b85c159e1159b7c, type: 3}
m_CoreBlitColorAndDepthPS: {fileID: 4800000, guid: d104b2fc1ca6445babb8e90b0758136b, type: 3}
m_SamplingPS: {fileID: 4800000, guid: 04c410c9937594faa893a11dceb85f7e, type: 3}
- rid: 5414127343351365640
type: {class: URPDefaultVolumeProfileSettings, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
data:
m_Version: 0
m_VolumeProfile: {fileID: 11400000, guid: 510e8398012bc4d68aaba4f1c44f85d1, type: 2}
- rid: 5414127343351365641
type: {class: UniversalRenderPipelineDebugShaders, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
data:
m_DebugReplacementPS: {fileID: 4800000, guid: cf852408f2e174538bcd9b7fda1c5ae7, type: 3}
m_HdrDebugViewPS: {fileID: 4800000, guid: 573620ae32aec764abd4d728906d2587, type: 3}
m_ProbeVolumeSamplingDebugComputeShader: {fileID: 7200000, guid: 53626a513ea68ce47b59dc1299fe3959, type: 3}
- rid: 5414127343351365642
type: {class: URPShaderStrippingSetting, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
data:
m_Version: 0
m_StripUnusedPostProcessingVariants: 0
m_StripUnusedVariants: 1
m_StripScreenCoordOverrideVariants: 1
- rid: 5414127343351365643
type: {class: UniversalRendererResources, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
data:
m_Version: 0
m_CopyDepthPS: {fileID: 4800000, guid: d6dae50ee9e1bfa4db75f19f99355220, type: 3}
m_CameraMotionVector: {fileID: 4800000, guid: c56b7e0d4c7cb484e959caeeedae9bbf, type: 3}
m_StencilDeferredPS: {fileID: 4800000, guid: e9155b26e1bc55942a41e518703fe304, type: 3}
m_DBufferClear: {fileID: 4800000, guid: f056d8bd2a1c7e44e9729144b4c70395, type: 3}
- rid: 5414127343351365644
type: {class: GPUResidentDrawerResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.GPUDriven.Runtime}
data:
m_Version: 0
m_InstanceDataBufferCopyKernels: {fileID: 7200000, guid: f984aeb540ded8b4fbb8a2047ab5b2e2, type: 3}
m_InstanceDataBufferUploadKernels: {fileID: 7200000, guid: 53864816eb00f2343b60e1a2c5a262ef, type: 3}
m_TransformUpdaterKernels: {fileID: 7200000, guid: 2a567b9b2733f8d47a700c3c85bed75b, type: 3}
m_WindDataUpdaterKernels: {fileID: 7200000, guid: fde76746e4fd0ed418c224f6b4084114, type: 3}
m_OccluderDepthPyramidKernels: {fileID: 7200000, guid: 08b2b5fb307b0d249860612774a987da, type: 3}
m_InstanceOcclusionCullingKernels: {fileID: 7200000, guid: f6d223acabc2f974795a5a7864b50e6c, type: 3}
m_OcclusionCullingDebugKernels: {fileID: 7200000, guid: b23e766bcf50ca4438ef186b174557df, type: 3}
m_DebugOcclusionTestPS: {fileID: 4800000, guid: d3f0849180c2d0944bc71060693df100, type: 3}
m_DebugOccluderPS: {fileID: 4800000, guid: b3c92426a88625841ab15ca6a7917248, type: 3}
- rid: 5414127343351365645
type: {class: RenderGraphGlobalSettings, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
data:
m_version: 0
m_EnableCompilationCaching: 1
m_EnableValidityChecks: 1
- rid: 5414127343351365646
type: {class: ProbeVolumeRuntimeResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
data:
m_Version: 1
probeVolumeBlendStatesCS: {fileID: 7200000, guid: a3f7b8c99de28a94684cb1daebeccf5d, type: 3}
probeVolumeUploadDataCS: {fileID: 7200000, guid: 0951de5992461754fa73650732c4954c, type: 3}
probeVolumeUploadDataL2CS: {fileID: 7200000, guid: 6196f34ed825db14b81fb3eb0ea8d931, type: 3}
- rid: 5414127343351365647
type: {class: IncludeAdditionalRPAssets, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
data:
m_version: 0
m_IncludeReferencedInScenes: 0
m_IncludeAssetsByLabel: 0
m_LabelToInclude:
- rid: 5414127343351365648
type: {class: ProbeVolumeBakingResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
data:
m_Version: 1
dilationShader: {fileID: 7200000, guid: 6bb382f7de370af41b775f54182e491d, type: 3}
subdivideSceneCS: {fileID: 7200000, guid: bb86f1f0af829fd45b2ebddda1245c22, type: 3}
voxelizeSceneShader: {fileID: 4800000, guid: c8b6a681c7b4e2e4785ffab093907f9e, type: 3}
traceVirtualOffsetCS: {fileID: -6772857160820960102, guid: ff2cbab5da58bf04d82c5f34037ed123, type: 3}
traceVirtualOffsetRT: {fileID: -5126288278712620388, guid: ff2cbab5da58bf04d82c5f34037ed123, type: 3}
skyOcclusionCS: {fileID: -6772857160820960102, guid: 5a2a534753fbdb44e96c3c78b5a6999d, type: 3}
skyOcclusionRT: {fileID: -5126288278712620388, guid: 5a2a534753fbdb44e96c3c78b5a6999d, type: 3}
renderingLayerCS: {fileID: -6772857160820960102, guid: 94a070d33e408384bafc1dea4a565df9, type: 3}
renderingLayerRT: {fileID: -5126288278712620388, guid: 94a070d33e408384bafc1dea4a565df9, type: 3}
- rid: 5414127343351365649
type: {class: RenderGraphUtilsResources, ns: UnityEngine.Rendering.RenderGraphModule.Util, asm: Unity.RenderPipelines.Core.Runtime}
data:
m_Version: 0
m_CoreCopyPS: {fileID: 4800000, guid: 12dc59547ea167a4ab435097dd0f9add, type: 3}
- rid: 5414127343351365650
type: {class: ProbeVolumeDebugResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
data:
m_Version: 1
probeVolumeDebugShader: {fileID: 4800000, guid: 3b21275fd12d65f49babb5286f040f2d, type: 3}
probeVolumeFragmentationDebugShader: {fileID: 4800000, guid: 3a80877c579b9144ebdcc6d923bca303, type: 3}
probeVolumeSamplingDebugShader: {fileID: 4800000, guid: bf54e6528c79a224e96346799064c393, type: 3}
probeVolumeOffsetDebugShader: {fileID: 4800000, guid: db8bd7436dc2c5f4c92655307d198381, type: 3}
probeSamplingDebugMesh: {fileID: -3555484719484374845, guid: 20be25aac4e22ee49a7db76fb3df6de2, type: 3}
numbersDisplayTex: {fileID: 2800000, guid: 73fe53b428c5b3440b7e87ee830b608a, type: 3}
- rid: 5414127343351365651
type: {class: ProbeVolumeGlobalSettings, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
data:
m_Version: 1
m_ProbeVolumeDisableStreamingAssets: 0
- rid: 5414127343351365652
type: {class: ShaderStrippingSetting, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
data:
m_Version: 0
m_ExportShaderVariants: 1
m_ShaderVariantLogLevel: 0
m_StripRuntimeDebugShaders: 1
- rid: 5414127343351365653
type: {class: STP/RuntimeResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
data:
m_setupCS: {fileID: 7200000, guid: 33be2e9a5506b2843bdb2bdff9cad5e1, type: 3}
m_preTaaCS: {fileID: 7200000, guid: a679dba8ec4d9ce45884a270b0e22dda, type: 3}
m_taaCS: {fileID: 7200000, guid: 3923900e2b41b5e47bc25bfdcbcdc9e6, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ed5e3b09a0b374ca7bc2b2760b373802
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

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