This is just massive housekeeping. Ready for 10.0.

This commit is contained in:
BluWizard10 committed 2026-09-14 23:26:06 -07:00
1 parent daede88edb
commit 60d924cb18
1107 files changed
+786825 -1382660

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
# EditorConfig helps maintain consistent coding styles across different editors and IDEs
# editorconfig.org
root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
# Unity shader files
[*.{shader,cginc,hlsl,compute}]
indent_style = tab
indent_size = 4
# C# files
[*.cs]
indent_style = tab
indent_size = 4
# Template files
[*.{poiTemplate,poiTemplateCollection}]
indent_style = tab
indent_size = 4
# Config files
[*.{json,yaml,yml}]
indent_style = tab
indent_size = 4
# Markdown files
[*.md]
trim_trailing_whitespace = false
+55
View File
@@ -1,3 +1,58 @@
# Auto detect text files and perform LF normalization
* text=auto
# Unity files
*.cs text eol=lf
*.shader text eol=lf
*.cginc text eol=lf
*.hlsl text eol=lf
*.compute text eol=lf
*.txt text eol=lf
*.md text eol=lf
*.json text eol=lf
*.xml text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.asmdef text eol=lf
*.asset text eol=lf
*.mat text eol=lf
*.meta text eol=lf
*.prefab text eol=lf
*.controller text eol=lf
*.anim text eol=lf
*.poiTemplateCollection text eol=lf
*.poiTemplate text eol=lf
*.uxml text eol=lf
*.uss text eol=lf
# Git files
.gitignore text eol=lf
.gitattributes text eol=lf
# Ensure binary files are not modified
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.exr binary
*.tga binary
*.psd binary
*.tif binary
*.tiff binary
*.fbx binary
*.blend binary
*.obj binary
*.max binary
*.zip binary
*.rar binary
*.7z binary
*.dll binary
*.exe binary
*.ttf binary
*.otf binary
*.pdf binary
# Overrides for GitHub's Linguist language detection (https://github.com/github/linguist/blob/master/docs/overrides.md)
*.shader linguist-language=ShaderLab
*.cginc linguist-language=HLSL
+13
View File
@@ -0,0 +1,13 @@
ModularShader/Editor/Poi_Passes_And_Programs/TODO.txt
/.vs
_PoiyomiShaders/Scripts/ThryEditor
_PoiyomiShaders/Scripts/ThryEditor.meta
.claude/
# ide (VSCode template tooling)
.ide/node_modules/
.ide/out/
.ide/*.vsix
+3
View File
@@ -0,0 +1,3 @@
[submodule "_PoiyomiShaders/Scripts/ThryEditor"]
path = _PoiyomiShaders/Scripts/ThryEditor
url = https://github.com/poiyomi/ThryEditor.git
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2026 Poiyomi Labs
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 2890881ff43963543aeec93698887a19
guid: 9f7197d3d2a03754c9f60b78fb49d0bc
DefaultImporter:
externalObjects: {}
userData:
+12 -15
View File
@@ -52,8 +52,8 @@ If **distributing** an avatar or other asset that uses Poiyomi shaders, **do not
🪙 Patreon (exclusive features!)
</a>
•
<a href="https://poiyomi.com/">
📖 Documentation (WIP!)
<a href="https://www.poiyomi.com/">
📖 Documentation
</a>
</h3>
</div>
@@ -71,23 +71,20 @@ If **distributing** an avatar or other asset that uses Poiyomi shaders, **do not
## Versions
Poiyomi Shaders include multiple released versions for backwards compatibility. The latest version is always the most up-to-date, and is recommended for use in new projects. Older versions are provided for compatibility with older models - we include the last release for each minor version (e.g. 8.0.426 for v8.0, 7.3.050 for v7.3).
Poiyomi Shaders include multiple released versions for backwards compatibility. The latest version is always the most up-to-date, and is recommended for use in new projects.
Currently, Poiyomi v7 is included for backwards compatibility with older models, and is no longer being updated. **It's not recommended to use v7 for new projects.** In the future, older versions may be removed without prior warning in order to ensure compatibility with newer pipelines, so it's highly advised to use the latest version available!
When matching a version to a model, generally, the major and minor versions must match, but the patch version can be newer. Poiyomi Shaders are forgiving with various patch versions. For example, if a model specifies 9.3.15, one can use 9.3.67 (included in the latest release) without issue. For v7, generally, 7.3.050 is the last version, and should be used for all v7 models.
Currently, the latest publicly-accessible version contains versions 9.3 thru 10.0.
## Pro Shader
[Poiyomi Pro](https://patreon.com/poiyomi) offers additional features and functionality, and always has the latest developments. It contains everything in the free version, plus features like:
- Grabpass shading effects, like Refraction and Blur
- Fur Shader, supporting all of the main shader's feature plus fluffy fur
- Tessellation and Geometry Shader effects, like a geometric dissolve
- Modular shader system support, for installing third-party shader modules
- TPS (8.1+)
- DPS Support (7.3, 8.2+)
- Fur Shader, supporting all of the main shader's feature plus fluffy fur.
- Tessellation and Geometry Shader effects, like a Geometric Dissolve.
- TPS
- SSAO
- Contact Shadows
- Squish
- Early, unreleased features
- and more!
To get access to Poiyomi Pro, [support Poiyomi on Patreon](https://patreon.com/poiyomi) at the $10 tier or higher, then use the VCC package `Poiyomi Pro` to authenticate with your Patreon account to download and install Poiyomi Pro into your project. Optionally, you can install Poiyomi Pro manually by accessing the downloads on our [Poiyomi Pro Website](https://pro.poiyomi.com/) by logging in with your Patreon account. For more information, refer to our Documentation [here](https://www.poiyomi.com/download#poiyomi-pro).
@@ -98,13 +95,13 @@ To get access to Poiyomi Pro, [support Poiyomi on Patreon](https://patreon.com/p
## ThryEditor
Poiyomi relies on [ThryEditor](https://github.com/poiyomi/ThryEditor) to display its inspector properly and lock the shader to ensure optimal performance. ThryEditor is provided as a separate VCC Package available in the same repository notated above and will be auto-installed when adding Poiyomi Toon Shader to your project via VCC.
Poiyomi relies on [ThryEditor](https://github.com/poiyomi/ThryEditor) to display its inspector properly and lock the shader to ensure optimal performance. ThryEditor is provided as a separate VCC Package available in the same repository notated above and will be auto-installed when adding Poiyomi Toon to your project via VCC.
## Compatibility
Poiyomi Shaders are designed for use with the **Built-In Render Pipeline (BIRP)** on **DirectX 11**. We target VRChat's [currently supported Unity version](https://docs.vrchat.com/docs/current-unity-version), **2022.3.22f1** at time of writing. Higher Unity versions have been tested and are known to work, but we primarily target the latest Unity version that VRChat supports.
Poiyomi Shaders are designed for use with the **Built-In Render Pipeline (BIRP)** on **DX11**. We target VRChat's [currently supported Unity version](https://docs.vrchat.com/docs/current-unity-version), **2022.3.22f1** at time of writing. Higher Unity versions have been tested and are known to work, but we primarily target the latest Unity version that VRChat supports.
Compatibility with the Universal Rendering Pipeline is currently limited, but available. For more information, joing the [Discord](https://discord.gg/poiyomi).
Compatibility with the Universal Rendering Pipeline (URP) is currently limited, but available. For more information, join the [Discord](https://discord.gg/poiyomi).
Poiyomi Shaders are currently **not compatible** with Unity's Scriptable Rendering Pipelines (HDRP, SRP). Non-DirectX 11 platforms (e.g. OpenGL, Metal, Vulkan, etc.) are not guaranteed to work either.
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: dae5ac45fee29074da13e49791e7b6f9
guid: 724a9cd6d562cf645b84be676a878cf7
folderAsset: yes
DefaultImporter:
externalObjects: {}
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 7ef672f9cf9e2ff4e816febc559a75de
guid: 09d07bc95aa5c5e4f88d3b1d6e4529b5
folderAsset: yes
DefaultImporter:
externalObjects: {}
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: adef60d2bcaf34f45912898fa1436ecb
guid: 83ee041d1426f9346bf3790af372c534
folderAsset: yes
DefaultImporter:
externalObjects: {}
@@ -0,0 +1,90 @@
%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: 03c172d6a1e743b59108df4a85a6766d, type: 3}
m_Name: ModuleCollectionFree
m_EditorClassIdentifier:
Id: ModuleCollectionFree
Name: ModuleCollection Free
Version:
Author:
Description:
AllowDuplicates: 0
ForceDuplicateLogic: 0
EnableProperties: []
Properties: []
ModuleDependencies: []
IncompatibleWith: []
Templates: []
Functions: []
AdditionalSerializedData:
Modules:
- {fileID: 11400000, guid: 53fd1e815b3256844adbf6f294bcc534, type: 2}
- {fileID: 11400000, guid: e4e815c3e8fde7f4f9044ac4e5c811be, type: 2}
- {fileID: 11400000, guid: a500e18ef22aa3f438fb7f1a4b34ac5f, type: 2}
- {fileID: 11400000, guid: b31e45db8cd95d14da3f7883f0c503bf, type: 2}
- {fileID: 11400000, guid: 5b74769abf3a4f840970029f5136c298, type: 2}
- {fileID: 11400000, guid: eca31a3b9b86b4b4d8ff5cff9f135f36, type: 2}
- {fileID: 11400000, guid: 9517bd1cad1457744acd511156823aff, type: 2}
- {fileID: 11400000, guid: 043008fa06fb38b4992021bf79cbf726, type: 2}
- {fileID: 11400000, guid: 87ca4a92adfc6d24f8f9bef432acf14a, type: 2}
- {fileID: 11400000, guid: 2bc9a6f3110c97941a79c0f76a712bae, type: 2}
- {fileID: 11400000, guid: 883f6564ee1d11544ab7c82b2438e3d5, type: 2}
- {fileID: 11400000, guid: 026aae78de33b444185dc631aad07608, type: 2}
- {fileID: 11400000, guid: 24577e7ddd2003a4dad2c8994d4d66a2, type: 2}
- {fileID: 11400000, guid: 3ee97f22176dc0b468053938196a9b0e, type: 2}
- {fileID: 11400000, guid: 4ee7e9ca2445a9943818297c16031dc3, type: 2}
- {fileID: 11400000, guid: 46d26a8c9dad68343ad2ffb93dd42d0e, type: 2}
- {fileID: 11400000, guid: 2b39ca163cdc5544793d775714022874, type: 2}
- {fileID: 11400000, guid: 4a4ba4e31a5f2294289339f643c597ec, type: 2}
- {fileID: 11400000, guid: 1e5f5acfca7186c42ad0956d45397b4f, type: 2}
- {fileID: 11400000, guid: 5d4c7f67c175e0f4ea39ab2469736a5f, type: 2}
- {fileID: 11400000, guid: bc1e9f74ebdbaaf439f73301d59c16aa, type: 2}
- {fileID: 11400000, guid: a8fd22f54e96edd478df063aebadd55f, type: 2}
- {fileID: 11400000, guid: 15d0dbfc16740a6458f40abedce1e247, type: 2}
- {fileID: 11400000, guid: 15d0dbfc16740a6458f40abedce1e247, type: 2}
- {fileID: 11400000, guid: 15d0dbfc16740a6458f40abedce1e247, type: 2}
- {fileID: 11400000, guid: 15d0dbfc16740a6458f40abedce1e247, type: 2}
- {fileID: 11400000, guid: 7c64362992ed75347a83d003eed92e0f, type: 2}
- {fileID: 11400000, guid: 7a72b1acd760c1848b31ff719e6d6e6d, type: 2}
- {fileID: 11400000, guid: 3f43a4e8f8b031949b76535ca295e1c2, type: 2}
- {fileID: 11400000, guid: b7107bd37b2093f499c145a305820813, type: 2}
- {fileID: 11400000, guid: 383407afc98e84c41ab2156f362de87c, type: 2}
- {fileID: 11400000, guid: ba8ca7621544dc74f813f9664afd8b7e, type: 2}
- {fileID: 11400000, guid: fa6a8182af062384f8a7269b3b977701, type: 2}
- {fileID: 11400000, guid: fa6a8182af062384f8a7269b3b977701, type: 2}
- {fileID: 11400000, guid: 13aeab2df0d8ca648a80161f45bd33e7, type: 2}
- {fileID: 11400000, guid: 13aeab2df0d8ca648a80161f45bd33e7, type: 2}
- {fileID: 11400000, guid: 13aeab2df0d8ca648a80161f45bd33e7, type: 2}
- {fileID: 11400000, guid: 13aeab2df0d8ca648a80161f45bd33e7, type: 2}
- {fileID: 11400000, guid: cc0df58e896264c4ba4596bdcbe5bc4f, type: 2}
- {fileID: 11400000, guid: f89d06203af8e16489bd8bc5a48643f4, type: 2}
- {fileID: 11400000, guid: 4064ea730840a5d478e92b13b02cc0aa, type: 2}
- {fileID: 11400000, guid: c4fdd443c7b16f54e8a16680c09d467c, type: 2}
- {fileID: 11400000, guid: c023dffc58a8dce41948529003e1d1e6, type: 2}
- {fileID: 11400000, guid: 323595f0f7b6edf4cb15bb2efb502b1e, type: 2}
- {fileID: 11400000, guid: 5f9bd413584522542a784451a29f24e8, type: 2}
- {fileID: 11400000, guid: 72833ee6f6673a74591288f51c29a1a5, type: 2}
- {fileID: 11400000, guid: c32b683e3283a8b4f988b0e9a73227d4, type: 2}
- {fileID: 11400000, guid: c5fe86ecf8c4b374fa356e6fa5b843f7, type: 2}
- {fileID: 11400000, guid: fb4c0730864e62847b82733d27c68e77, type: 2}
- {fileID: 11400000, guid: 30935ff7d770ce64089fad5d256845d2, type: 2}
- {fileID: 11400000, guid: 22a2f2c5201a35a4b8de4655a6b2a49e, type: 2}
- {fileID: 11400000, guid: 9474e8294d5143c41943a89f4bda71fd, type: 2}
- {fileID: 11400000, guid: 38117acd601e0a04f8526bda9342b594, type: 2}
- {fileID: 11400000, guid: 0d6b81a017d50284b9874a8d5da6e81f, type: 2}
- {fileID: 11400000, guid: 39a772a68824e5842955ec40afcb7e79, type: 2}
- {fileID: 11400000, guid: eef7be30d866ea6488f9d1a3ea96ab7d, type: 2}
- {fileID: 11400000, guid: a91ad61d74db3d4469cade1646abcad6, type: 2}
- {fileID: 11400000, guid: 2ca66876a62414e43b9b15693a23537e, type: 2}
- {fileID: 11400000, guid: c4fd319e47cec1c45a221ca15c8291fe, type: 2}
- {fileID: 11400000, guid: 9f5d5c06a71a8854087b064c54928fb6, type: 2}
ModulesEnabled: 010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: b9cefdcde770a6c4088902049ab1db49
guid: 496d9ada176c1a64c8d6e75b0ae824c1
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
@@ -0,0 +1,59 @@
%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: f8aa43eb5c662824699f2379805fb2c0, type: 3}
m_Name: PoiyomiFree
m_EditorClassIdentifier:
Id: PoiyomiToon
Name: Poiyomi Toon
Version: 1.0
Author: Poiyomi
Description:
UseTemplatesForProperties: 1
ShaderPropertiesTemplate: {fileID: 0}
ShaderPath: .poiyomi/Poiyomi Toon
ShaderTemplate: {fileID: -544282384758852595, guid: 86b30dc8b6cc0114bbe585ac21b04e85, type: 3}
CustomEditor: Thry.ShaderEditor
Properties:
- Name: shader_master_label
DisplayName: <color=#E75898ff>Poiyomi Pro V8a</color>
Type: Float
DefaultValue: 0
DefaultTextureAsset: {fileID: 0}
Attributes: []
BaseModules:
- {fileID: 11400000, guid: f884f5452edbe324eb6bd0e34a6b5844, type: 2}
- {fileID: 11400000, guid: fb5d93d50bc5c03498f9832d8bcb7074, type: 2}
- {fileID: 11400000, guid: d45da686e102bac429193ef033901fd7, type: 2}
- {fileID: 11400000, guid: 75ca0f2f7ed2c7547bd0d5854d812032, type: 2}
- {fileID: 11400000, guid: 66e5c71ed6c5bc049bab5e637f5e2d03, type: 2}
- {fileID: 11400000, guid: 3b8dccda61c2d524284df1a3dc84ed47, type: 2}
- {fileID: 11400000, guid: 59c561ebcc77ee641a7652c6d27885b9, type: 2}
- {fileID: 11400000, guid: 4ca7dd01d6e441646b7d85807a433978, type: 2}
- {fileID: 11400000, guid: e78abfe8a923d484f8e0f8457ca10e79, type: 2}
- {fileID: 11400000, guid: ce2c432cabb314445bfb56e4ffbc9d4e, type: 2}
- {fileID: 11400000, guid: 960307fac71087b4da10b4dc423d4e3a, type: 2}
- {fileID: 11400000, guid: 09d6c45f314e36940b6ac7d42852b9ea, type: 2}
- {fileID: 11400000, guid: cda6385aa13bbb847b8e00f80b822a55, type: 2}
- {fileID: 11400000, guid: eb7c90cddc3d52e458018ea6af8844a7, type: 2}
- {fileID: 11400000, guid: ef02ca9f4b55f1b49b322197143b1152, type: 2}
- {fileID: 11400000, guid: 54756ad751c582c469f3b3638e3427a7, type: 2}
- {fileID: 11400000, guid: c4ea6b952ecdc0c40b07a6cc27e2ed67, type: 2}
- {fileID: 11400000, guid: d579766a4789fda4cb17f70f66ba2087, type: 2}
- {fileID: 11400000, guid: e1ac0430d20d06645af4f4e9f7ef5a68, type: 2}
- {fileID: 11400000, guid: 691861f6a28e64048b4d465b44e7dae2, type: 2}
- {fileID: 11400000, guid: 496d9ada176c1a64c8d6e75b0ae824c1, type: 2}
BaseModulesEnabled: 010101010101010101010101010101010101010101
AdditionalModules: []
LockBaseModules: 0
LastGeneratedShaders:
- {fileID: 4800000, guid: 7ab7440864c32de42a3ed158d052d097, type: 3}
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b3c20a702f933ad479a4a4d0fef9df83
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,61 @@
%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: f8aa43eb5c662824699f2379805fb2c0, type: 3}
m_Name: PoiyomiFreeGrabPass
m_EditorClassIdentifier:
Id: PoiyomiToonGrabPass
Name: Poiyomi Toon Grab Pass
Version: 1.0
Author: Poiyomi
Description:
UseTemplatesForProperties: 1
ShaderPropertiesTemplate: {fileID: 0}
ShaderPath: .poiyomi/Poiyomi Toon Grab Pass
ShaderTemplate: {fileID: -544282384758852595, guid: 86b30dc8b6cc0114bbe585ac21b04e85, type: 3}
CustomEditor: Thry.ShaderEditor
Properties:
- Name: shader_master_label
DisplayName: <color=#E75898ff>Poiyomi Pro V8a</color>
Type: Float
DefaultValue: 0
DefaultTextureAsset: {fileID: 0}
Attributes: []
BaseModules:
- {fileID: 11400000, guid: d20096736bb30de4087d554d59dc0eea, type: 2}
- {fileID: 11400000, guid: 6bcededc07248644e8ef373a48e0e68b, type: 2}
- {fileID: 11400000, guid: d45da686e102bac429193ef033901fd7, type: 2}
- {fileID: 11400000, guid: 75ca0f2f7ed2c7547bd0d5854d812032, type: 2}
- {fileID: 11400000, guid: 116970539aec41b4fba9ef90ce6ba5f7, type: 2}
- {fileID: 11400000, guid: 66e5c71ed6c5bc049bab5e637f5e2d03, type: 2}
- {fileID: 11400000, guid: 3b8dccda61c2d524284df1a3dc84ed47, type: 2}
- {fileID: 11400000, guid: 59c561ebcc77ee641a7652c6d27885b9, type: 2}
- {fileID: 11400000, guid: 4ca7dd01d6e441646b7d85807a433978, type: 2}
- {fileID: 11400000, guid: e78abfe8a923d484f8e0f8457ca10e79, type: 2}
- {fileID: 11400000, guid: ce2c432cabb314445bfb56e4ffbc9d4e, type: 2}
- {fileID: 11400000, guid: aee9852cb25bd94488dda489521bc6c2, type: 2}
- {fileID: 11400000, guid: 09d6c45f314e36940b6ac7d42852b9ea, type: 2}
- {fileID: 11400000, guid: cda6385aa13bbb847b8e00f80b822a55, type: 2}
- {fileID: 11400000, guid: eb7c90cddc3d52e458018ea6af8844a7, type: 2}
- {fileID: 11400000, guid: ef02ca9f4b55f1b49b322197143b1152, type: 2}
- {fileID: 11400000, guid: 54756ad751c582c469f3b3638e3427a7, type: 2}
- {fileID: 11400000, guid: c4ea6b952ecdc0c40b07a6cc27e2ed67, type: 2}
- {fileID: 11400000, guid: d579766a4789fda4cb17f70f66ba2087, type: 2}
- {fileID: 11400000, guid: e1ac0430d20d06645af4f4e9f7ef5a68, type: 2}
- {fileID: 11400000, guid: 691861f6a28e64048b4d465b44e7dae2, type: 2}
- {fileID: 11400000, guid: 496d9ada176c1a64c8d6e75b0ae824c1, type: 2}
- {fileID: 11400000, guid: a5119f130ff4a2b41bdebe9457caceb3, type: 2}
BaseModulesEnabled: 0101010101010101010101010101010101010101010101
AdditionalModules: []
LockBaseModules: 0
LastGeneratedShaders:
- {fileID: 4800000, guid: d187eff5ff5976547bba7ed19a15be50, type: 3}
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1bc209f1574045541ba798e0a33ff495
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,59 @@
%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: f8aa43eb5c662824699f2379805fb2c0, type: 3}
m_Name: PoiyomiFreeOutlineEarly
m_EditorClassIdentifier:
Id: PoiyomiToonEarlyOutline
Name: Poiyomi Toon Early Outline
Version: 1.0
Author: Poiyomi
Description:
UseTemplatesForProperties: 1
ShaderPropertiesTemplate: {fileID: 0}
ShaderPath: .poiyomi/Poiyomi Toon Outline Early
ShaderTemplate: {fileID: -544282384758852595, guid: 86b30dc8b6cc0114bbe585ac21b04e85, type: 3}
CustomEditor: Thry.ShaderEditor
Properties:
- Name: shader_master_label
DisplayName: <color=#E75898ff>Poiyomi Pro V8a</color>
Type: Float
DefaultValue: 0
DefaultTextureAsset: {fileID: 0}
Attributes: []
BaseModules:
- {fileID: 11400000, guid: f884f5452edbe324eb6bd0e34a6b5844, type: 2}
- {fileID: 11400000, guid: fb5d93d50bc5c03498f9832d8bcb7074, type: 2}
- {fileID: 11400000, guid: d45da686e102bac429193ef033901fd7, type: 2}
- {fileID: 11400000, guid: 3dc633d34ec0e1848a06891c014e408b, type: 2}
- {fileID: 11400000, guid: 75ca0f2f7ed2c7547bd0d5854d812032, type: 2}
- {fileID: 11400000, guid: 66e5c71ed6c5bc049bab5e637f5e2d03, type: 2}
- {fileID: 11400000, guid: 59c561ebcc77ee641a7652c6d27885b9, type: 2}
- {fileID: 11400000, guid: 4ca7dd01d6e441646b7d85807a433978, type: 2}
- {fileID: 11400000, guid: e78abfe8a923d484f8e0f8457ca10e79, type: 2}
- {fileID: 11400000, guid: ce2c432cabb314445bfb56e4ffbc9d4e, type: 2}
- {fileID: 11400000, guid: 960307fac71087b4da10b4dc423d4e3a, type: 2}
- {fileID: 11400000, guid: 09d6c45f314e36940b6ac7d42852b9ea, type: 2}
- {fileID: 11400000, guid: cda6385aa13bbb847b8e00f80b822a55, type: 2}
- {fileID: 11400000, guid: eb7c90cddc3d52e458018ea6af8844a7, type: 2}
- {fileID: 11400000, guid: ef02ca9f4b55f1b49b322197143b1152, type: 2}
- {fileID: 11400000, guid: 54756ad751c582c469f3b3638e3427a7, type: 2}
- {fileID: 11400000, guid: c4ea6b952ecdc0c40b07a6cc27e2ed67, type: 2}
- {fileID: 11400000, guid: d579766a4789fda4cb17f70f66ba2087, type: 2}
- {fileID: 11400000, guid: e1ac0430d20d06645af4f4e9f7ef5a68, type: 2}
- {fileID: 11400000, guid: 691861f6a28e64048b4d465b44e7dae2, type: 2}
- {fileID: 11400000, guid: 496d9ada176c1a64c8d6e75b0ae824c1, type: 2}
BaseModulesEnabled: 010101010101010101010101010101010101010101
AdditionalModules: []
LockBaseModules: 0
LastGeneratedShaders:
- {fileID: 4800000, guid: aa7e588ee69e46f429e3daa4b3068311, type: 3}
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a9aa85acdaa8983468f32f72657e3646
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,64 @@
%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: f8aa43eb5c662824699f2379805fb2c0, type: 3}
m_Name: PoiyomiFreeTwoPass
m_EditorClassIdentifier:
Id: PoiyomiToonTwoPass
Name: Poiyomi Toon Two Pass
Version: 1.0
Author: Poiyomi
Description:
UseTemplatesForProperties: 1
ShaderPropertiesTemplate: {fileID: 0}
ShaderPath: .poiyomi/Poiyomi Toon Two Pass
ShaderTemplate: {fileID: -544282384758852595, guid: 86b30dc8b6cc0114bbe585ac21b04e85, type: 3}
CustomEditor: Thry.ShaderEditor
Properties:
- Name: shader_master_label
DisplayName: <color=#E75898ff>Poiyomi Pro V8a</color>
Type: Float
DefaultValue: 0
DefaultTextureAsset: {fileID: 0}
Attributes: []
BaseModules:
- {fileID: 11400000, guid: f884f5452edbe324eb6bd0e34a6b5844, type: 2}
- {fileID: 11400000, guid: fb5d93d50bc5c03498f9832d8bcb7074, type: 2}
- {fileID: 11400000, guid: d45da686e102bac429193ef033901fd7, type: 2}
- {fileID: 11400000, guid: f15b5de338b93d246901588a3e78a1a1, type: 2}
- {fileID: 11400000, guid: 75ca0f2f7ed2c7547bd0d5854d812032, type: 2}
- {fileID: 11400000, guid: 66e5c71ed6c5bc049bab5e637f5e2d03, type: 2}
- {fileID: 11400000, guid: 0ec941420759c8e4da9d9b1498bc5010, type: 2}
- {fileID: 11400000, guid: 3b8dccda61c2d524284df1a3dc84ed47, type: 2}
- {fileID: 11400000, guid: 59c561ebcc77ee641a7652c6d27885b9, type: 2}
- {fileID: 11400000, guid: d4063613e42c2aa439e98333f4f1ae1c, type: 2}
- {fileID: 11400000, guid: ab8268b68ca64b54799e3c08e3b03794, type: 2}
- {fileID: 11400000, guid: 4ca7dd01d6e441646b7d85807a433978, type: 2}
- {fileID: 11400000, guid: e78abfe8a923d484f8e0f8457ca10e79, type: 2}
- {fileID: 11400000, guid: ce2c432cabb314445bfb56e4ffbc9d4e, type: 2}
- {fileID: 11400000, guid: 960307fac71087b4da10b4dc423d4e3a, type: 2}
- {fileID: 11400000, guid: 09d6c45f314e36940b6ac7d42852b9ea, type: 2}
- {fileID: 11400000, guid: cda6385aa13bbb847b8e00f80b822a55, type: 2}
- {fileID: 11400000, guid: eb7c90cddc3d52e458018ea6af8844a7, type: 2}
- {fileID: 11400000, guid: ef02ca9f4b55f1b49b322197143b1152, type: 2}
- {fileID: 11400000, guid: 54756ad751c582c469f3b3638e3427a7, type: 2}
- {fileID: 11400000, guid: c4ea6b952ecdc0c40b07a6cc27e2ed67, type: 2}
- {fileID: 11400000, guid: d579766a4789fda4cb17f70f66ba2087, type: 2}
- {fileID: 11400000, guid: e1ac0430d20d06645af4f4e9f7ef5a68, type: 2}
- {fileID: 11400000, guid: 691861f6a28e64048b4d465b44e7dae2, type: 2}
- {fileID: 11400000, guid: 496d9ada176c1a64c8d6e75b0ae824c1, type: 2}
- {fileID: 11400000, guid: afa4a3f7fc217604282f663ad250108b, type: 2}
BaseModulesEnabled: 0101010101010101010101010101010101010101010101010101
AdditionalModules: []
LockBaseModules: 0
LastGeneratedShaders:
- {fileID: 4800000, guid: 73da03e2cd0afa940968d9c487e2474d, type: 3}
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d40441e5d4d1e634e93c70f7acd28519
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,59 @@
%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: f8aa43eb5c662824699f2379805fb2c0, type: 3}
m_Name: PoiyomiFreeWorld
m_EditorClassIdentifier:
Id: PoiyomiToonWorld
Name: Poiyomi Toon World
Version: 1.0
Author: Poiyomi
Description:
UseTemplatesForProperties: 1
ShaderPropertiesTemplate: {fileID: 0}
ShaderPath: .poiyomi/Poiyomi Toon World
ShaderTemplate: {fileID: -544282384758852595, guid: 86b30dc8b6cc0114bbe585ac21b04e85, type: 3}
CustomEditor: Thry.ShaderEditor
Properties:
- Name: shader_master_label
DisplayName: <color=#E75898ff>Poiyomi Pro V8a</color>
Type: Float
DefaultValue: 0
DefaultTextureAsset: {fileID: 0}
Attributes: []
BaseModules:
- {fileID: 11400000, guid: f884f5452edbe324eb6bd0e34a6b5844, type: 2}
- {fileID: 11400000, guid: fb5d93d50bc5c03498f9832d8bcb7074, type: 2}
- {fileID: 11400000, guid: d45da686e102bac429193ef033901fd7, type: 2}
- {fileID: 11400000, guid: 66e5c71ed6c5bc049bab5e637f5e2d03, type: 2}
- {fileID: 11400000, guid: 3b8dccda61c2d524284df1a3dc84ed47, type: 2}
- {fileID: 11400000, guid: 59c561ebcc77ee641a7652c6d27885b9, type: 2}
- {fileID: 11400000, guid: 4ca7dd01d6e441646b7d85807a433978, type: 2}
- {fileID: 11400000, guid: d4af36b335889ad4db37b260b98bd489, type: 2}
- {fileID: 11400000, guid: e78abfe8a923d484f8e0f8457ca10e79, type: 2}
- {fileID: 11400000, guid: ce2c432cabb314445bfb56e4ffbc9d4e, type: 2}
- {fileID: 11400000, guid: 960307fac71087b4da10b4dc423d4e3a, type: 2}
- {fileID: 11400000, guid: 09d6c45f314e36940b6ac7d42852b9ea, type: 2}
- {fileID: 11400000, guid: cda6385aa13bbb847b8e00f80b822a55, type: 2}
- {fileID: 11400000, guid: eb7c90cddc3d52e458018ea6af8844a7, type: 2}
- {fileID: 11400000, guid: 54756ad751c582c469f3b3638e3427a7, type: 2}
- {fileID: 11400000, guid: c4ea6b952ecdc0c40b07a6cc27e2ed67, type: 2}
- {fileID: 11400000, guid: d579766a4789fda4cb17f70f66ba2087, type: 2}
- {fileID: 11400000, guid: e1ac0430d20d06645af4f4e9f7ef5a68, type: 2}
- {fileID: 11400000, guid: 691861f6a28e64048b4d465b44e7dae2, type: 2}
- {fileID: 11400000, guid: c7fdeca17ae8f58418d156e34e162e70, type: 2}
- {fileID: 11400000, guid: 496d9ada176c1a64c8d6e75b0ae824c1, type: 2}
BaseModulesEnabled: 010101010101010101010101010101010101010101
AdditionalModules: []
LockBaseModules: 0
LastGeneratedShaders:
- {fileID: 4800000, guid: 68d4032c05798c44eafe02f272e6895c, type: 3}
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 66447ae0720d89142a501a4502054761
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,63 @@
%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: f8aa43eb5c662824699f2379805fb2c0, type: 3}
m_Name: PoiyomiFreelilFur
m_EditorClassIdentifier:
Id: PoiyomiToonlilFur
Name: Poiyomi Toon Lil Fur
Version: 1.0
Author: Poiyomi
Description:
UseTemplatesForProperties: 1
ShaderPropertiesTemplate: {fileID: 0}
ShaderPath: .poiyomi/Poiyomi Toon + Lil Fur
ShaderTemplate: {fileID: -544282384758852595, guid: 86b30dc8b6cc0114bbe585ac21b04e85, type: 3}
CustomEditor: Thry.ShaderEditor
Properties:
- Name: shader_master_label
DisplayName: <color=#E75898ff>Poiyomi Pro V8a</color>
Type: Float
DefaultValue: 0
DefaultTextureAsset: {fileID: 0}
Attributes: []
BaseModules:
- {fileID: 11400000, guid: f884f5452edbe324eb6bd0e34a6b5844, type: 2}
- {fileID: 11400000, guid: fb5d93d50bc5c03498f9832d8bcb7074, type: 2}
- {fileID: 11400000, guid: d45da686e102bac429193ef033901fd7, type: 2}
- {fileID: 11400000, guid: 75ca0f2f7ed2c7547bd0d5854d812032, type: 2}
- {fileID: 11400000, guid: 66e5c71ed6c5bc049bab5e637f5e2d03, type: 2}
- {fileID: 11400000, guid: 59c561ebcc77ee641a7652c6d27885b9, type: 2}
- {fileID: 11400000, guid: 3b8dccda61c2d524284df1a3dc84ed47, type: 2}
- {fileID: 11400000, guid: a33760ef5d1d9a84cb7fc5d23bb16597, type: 2}
- {fileID: 11400000, guid: 95cd8d2e03f5ce64393cf8c15f0c06cf, type: 2}
- {fileID: 11400000, guid: 4ca7dd01d6e441646b7d85807a433978, type: 2}
- {fileID: 11400000, guid: e78abfe8a923d484f8e0f8457ca10e79, type: 2}
- {fileID: 11400000, guid: 0486664385d95084682318207871f233, type: 2}
- {fileID: 11400000, guid: 960307fac71087b4da10b4dc423d4e3a, type: 2}
- {fileID: 11400000, guid: 09d6c45f314e36940b6ac7d42852b9ea, type: 2}
- {fileID: 11400000, guid: f86899e1fc320fc4f87a2b45be9cdd82, type: 2}
- {fileID: 11400000, guid: cda6385aa13bbb847b8e00f80b822a55, type: 2}
- {fileID: 11400000, guid: eb7c90cddc3d52e458018ea6af8844a7, type: 2}
- {fileID: 11400000, guid: ef02ca9f4b55f1b49b322197143b1152, type: 2}
- {fileID: 11400000, guid: 54756ad751c582c469f3b3638e3427a7, type: 2}
- {fileID: 11400000, guid: c4ea6b952ecdc0c40b07a6cc27e2ed67, type: 2}
- {fileID: 11400000, guid: d579766a4789fda4cb17f70f66ba2087, type: 2}
- {fileID: 11400000, guid: e1ac0430d20d06645af4f4e9f7ef5a68, type: 2}
- {fileID: 11400000, guid: 691861f6a28e64048b4d465b44e7dae2, type: 2}
- {fileID: 11400000, guid: c86609afa3592c84f9e64ff8f8eb9160, type: 2}
- {fileID: 11400000, guid: 496d9ada176c1a64c8d6e75b0ae824c1, type: 2}
BaseModulesEnabled: 01010101010101010101010101010101010101010101010101
AdditionalModules: []
LockBaseModules: 0
LastGeneratedShaders:
- {fileID: 4800000, guid: 9ea5d2df175e6f84785d5fffd69809a5, type: 3}
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b40949861598bc84c98f63e147d9bf8e
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,66 @@
%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: f8aa43eb5c662824699f2379805fb2c0, type: 3}
m_Name: PoiyomiFreelilFurTwoPass
m_EditorClassIdentifier:
Id: PoiyomiToonlilFurTwoPass
Name: Poiyomi Toon Lil Fur Two Pass
Version: 1.0
Author: Poiyomi
Description:
UseTemplatesForProperties: 1
ShaderPropertiesTemplate: {fileID: 0}
ShaderPath: .poiyomi/Poiyomi Toon + Lil Fur Two Pass
ShaderTemplate: {fileID: -544282384758852595, guid: 86b30dc8b6cc0114bbe585ac21b04e85, type: 3}
CustomEditor: Thry.ShaderEditor
Properties:
- Name: shader_master_label
DisplayName: <color=#E75898ff>Poiyomi Pro V8a</color>
Type: Float
DefaultValue: 0
DefaultTextureAsset: {fileID: 0}
Attributes: []
BaseModules:
- {fileID: 11400000, guid: f884f5452edbe324eb6bd0e34a6b5844, type: 2}
- {fileID: 11400000, guid: fb5d93d50bc5c03498f9832d8bcb7074, type: 2}
- {fileID: 11400000, guid: d45da686e102bac429193ef033901fd7, type: 2}
- {fileID: 11400000, guid: 75ca0f2f7ed2c7547bd0d5854d812032, type: 2}
- {fileID: 11400000, guid: 66e5c71ed6c5bc049bab5e637f5e2d03, type: 2}
- {fileID: 11400000, guid: 59c561ebcc77ee641a7652c6d27885b9, type: 2}
- {fileID: 11400000, guid: 3b8dccda61c2d524284df1a3dc84ed47, type: 2}
- {fileID: 11400000, guid: 9ec0591ce986fdb49bf75c5591ba730e, type: 2}
- {fileID: 11400000, guid: 652e9ff05ae49d84c9db9f16a0e1cfe1, type: 2}
- {fileID: 11400000, guid: a33760ef5d1d9a84cb7fc5d23bb16597, type: 2}
- {fileID: 11400000, guid: 95cd8d2e03f5ce64393cf8c15f0c06cf, type: 2}
- {fileID: 11400000, guid: 4ca7dd01d6e441646b7d85807a433978, type: 2}
- {fileID: 11400000, guid: e78abfe8a923d484f8e0f8457ca10e79, type: 2}
- {fileID: 11400000, guid: 0486664385d95084682318207871f233, type: 2}
- {fileID: 11400000, guid: 960307fac71087b4da10b4dc423d4e3a, type: 2}
- {fileID: 11400000, guid: 09d6c45f314e36940b6ac7d42852b9ea, type: 2}
- {fileID: 11400000, guid: f86899e1fc320fc4f87a2b45be9cdd82, type: 2}
- {fileID: 11400000, guid: cda6385aa13bbb847b8e00f80b822a55, type: 2}
- {fileID: 11400000, guid: eb7c90cddc3d52e458018ea6af8844a7, type: 2}
- {fileID: 11400000, guid: ef02ca9f4b55f1b49b322197143b1152, type: 2}
- {fileID: 11400000, guid: 54756ad751c582c469f3b3638e3427a7, type: 2}
- {fileID: 11400000, guid: c4ea6b952ecdc0c40b07a6cc27e2ed67, type: 2}
- {fileID: 11400000, guid: d579766a4789fda4cb17f70f66ba2087, type: 2}
- {fileID: 11400000, guid: e1ac0430d20d06645af4f4e9f7ef5a68, type: 2}
- {fileID: 11400000, guid: 691861f6a28e64048b4d465b44e7dae2, type: 2}
- {fileID: 11400000, guid: c86609afa3592c84f9e64ff8f8eb9160, type: 2}
- {fileID: 11400000, guid: ab970eb6489c557489ce2af4886a40cf, type: 2}
- {fileID: 11400000, guid: 496d9ada176c1a64c8d6e75b0ae824c1, type: 2}
BaseModulesEnabled: 01010101010101010101010101010101010101010101010101010101
AdditionalModules: []
LockBaseModules: 0
LastGeneratedShaders:
- {fileID: 4800000, guid: b9c5451c2fa96c84aad1dda82b057b66, type: 3}
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 38701617f3c9ca249a716e3672e7ada1
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,61 @@
%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: f8aa43eb5c662824699f2379805fb2c0, type: 3}
m_Name: PoiyomiURPFree
m_EditorClassIdentifier:
Id: PoiyomiToon
Name: Poiyomi Toon URP
Version: 1.0
Author: Poiyomi
Description:
UseTemplatesForProperties: 1
ShaderPropertiesTemplate: {fileID: 0}
ShaderPath: .poiyomi/Poiyomi Toon URP
ShaderTemplate: {fileID: -544282384758852595, guid: aae7864a6dafe5b4598869c194de7bd4, type: 3}
CustomEditor: Thry.ShaderEditor
Properties:
- Name: shader_master_label
DisplayName: <color=#E75898ff>Poiyomi Pro V8a</color>
Type: Float
DefaultValue: 0
DefaultTextureAsset: {fileID: 0}
Attributes: []
BaseModules:
- {fileID: 11400000, guid: 9b804387778967748835ca2eadcc7e20, type: 2}
- {fileID: 11400000, guid: fb5d93d50bc5c03498f9832d8bcb7074, type: 2}
- {fileID: 11400000, guid: d45da686e102bac429193ef033901fd7, type: 2}
- {fileID: 11400000, guid: ea08cf35a87c8d3408b1b796dfe1bde1, type: 2}
- {fileID: 11400000, guid: 3fb59045011d96a4a8ed82e7841dce5e, type: 2}
- {fileID: 11400000, guid: 40dbee5c6344ee948805987b0aac7f0f, type: 2}
- {fileID: 11400000, guid: bb795d14417a0004ca298527a48a780f, type: 2}
- {fileID: 11400000, guid: f00f1098d03c87048a415d1c40ba52e6, type: 2}
- {fileID: 11400000, guid: cf43416d29103f445810e6e753e82dc9, type: 2}
- {fileID: 11400000, guid: 1899682493cff8e48a48ffdb10643c56, type: 2}
- {fileID: 11400000, guid: a8c1608b867832a4ebc3e10ec8de150d, type: 2}
- {fileID: 11400000, guid: ce2c432cabb314445bfb56e4ffbc9d4e, type: 2}
- {fileID: 11400000, guid: d982f0d32e8ddb340bab646559373844, type: 2}
- {fileID: 11400000, guid: 09d6c45f314e36940b6ac7d42852b9ea, type: 2}
- {fileID: 11400000, guid: cda6385aa13bbb847b8e00f80b822a55, type: 2}
- {fileID: 11400000, guid: eb7c90cddc3d52e458018ea6af8844a7, type: 2}
- {fileID: 11400000, guid: ef02ca9f4b55f1b49b322197143b1152, type: 2}
- {fileID: 11400000, guid: 54756ad751c582c469f3b3638e3427a7, type: 2}
- {fileID: 11400000, guid: c4ea6b952ecdc0c40b07a6cc27e2ed67, type: 2}
- {fileID: 11400000, guid: d579766a4789fda4cb17f70f66ba2087, type: 2}
- {fileID: 11400000, guid: e1ac0430d20d06645af4f4e9f7ef5a68, type: 2}
- {fileID: 11400000, guid: 691861f6a28e64048b4d465b44e7dae2, type: 2}
- {fileID: 11400000, guid: 496d9ada176c1a64c8d6e75b0ae824c1, type: 2}
BaseModulesEnabled: 0101010101010101010101010101010101010101010101
AdditionalModules: []
LockBaseModules: 0
LastGeneratedShaders:
- {fileID: 4800000, guid: 748928d1166844c439fff99dfe913fa6, type: 3}
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c9c68c1e7a480f94f88d7a5c49c97da3
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,62 @@
%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: f8aa43eb5c662824699f2379805fb2c0, type: 3}
m_Name: PoiyomiURPFreeGrabPass
m_EditorClassIdentifier:
Id: PoiyomiToonGrabPass
Name: Poiyomi Toon URP Grab Pass
Version: 1.0
Author: Poiyomi
Description:
UseTemplatesForProperties: 1
ShaderPropertiesTemplate: {fileID: 0}
ShaderPath: .poiyomi/Poiyomi Toon URP Grab Pass
ShaderTemplate: {fileID: -544282384758852595, guid: aae7864a6dafe5b4598869c194de7bd4, type: 3}
CustomEditor: Thry.ShaderEditor
Properties:
- Name: shader_master_label
DisplayName: <color=#E75898ff>Poiyomi Pro V8a</color>
Type: Float
DefaultValue: 0
DefaultTextureAsset: {fileID: 0}
Attributes: []
BaseModules:
- {fileID: 11400000, guid: d5b6cf02aa165d546991764c28a740da, type: 2}
- {fileID: 11400000, guid: 6bcededc07248644e8ef373a48e0e68b, type: 2}
- {fileID: 11400000, guid: d45da686e102bac429193ef033901fd7, type: 2}
- {fileID: 11400000, guid: ea08cf35a87c8d3408b1b796dfe1bde1, type: 2}
- {fileID: 11400000, guid: 3fb59045011d96a4a8ed82e7841dce5e, type: 2}
- {fileID: 11400000, guid: 40dbee5c6344ee948805987b0aac7f0f, type: 2}
- {fileID: 11400000, guid: bb795d14417a0004ca298527a48a780f, type: 2}
- {fileID: 11400000, guid: f00f1098d03c87048a415d1c40ba52e6, type: 2}
- {fileID: 11400000, guid: cf43416d29103f445810e6e753e82dc9, type: 2}
- {fileID: 11400000, guid: 1899682493cff8e48a48ffdb10643c56, type: 2}
- {fileID: 11400000, guid: a8c1608b867832a4ebc3e10ec8de150d, type: 2}
- {fileID: 11400000, guid: ce2c432cabb314445bfb56e4ffbc9d4e, type: 2}
- {fileID: 11400000, guid: aee9852cb25bd94488dda489521bc6c2, type: 2}
- {fileID: 11400000, guid: 09d6c45f314e36940b6ac7d42852b9ea, type: 2}
- {fileID: 11400000, guid: cda6385aa13bbb847b8e00f80b822a55, type: 2}
- {fileID: 11400000, guid: eb7c90cddc3d52e458018ea6af8844a7, type: 2}
- {fileID: 11400000, guid: ef02ca9f4b55f1b49b322197143b1152, type: 2}
- {fileID: 11400000, guid: 54756ad751c582c469f3b3638e3427a7, type: 2}
- {fileID: 11400000, guid: c4ea6b952ecdc0c40b07a6cc27e2ed67, type: 2}
- {fileID: 11400000, guid: d579766a4789fda4cb17f70f66ba2087, type: 2}
- {fileID: 11400000, guid: e1ac0430d20d06645af4f4e9f7ef5a68, type: 2}
- {fileID: 11400000, guid: 691861f6a28e64048b4d465b44e7dae2, type: 2}
- {fileID: 11400000, guid: 496d9ada176c1a64c8d6e75b0ae824c1, type: 2}
- {fileID: 11400000, guid: a5119f130ff4a2b41bdebe9457caceb3, type: 2}
BaseModulesEnabled: 010101010101010101010101010101010101010101010101
AdditionalModules: []
LockBaseModules: 0
LastGeneratedShaders:
- {fileID: 4800000, guid: fa5ce487d7bf6154e858d8e721de6958, type: 3}
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6af0e23bec27a494396dba69b130ab8b
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,63 @@
%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: f8aa43eb5c662824699f2379805fb2c0, type: 3}
m_Name: PoiyomiURPFreeWorld
m_EditorClassIdentifier:
Id: PoiyomiToonWorld
Name: Poiyomi Toon URP World
Version: 1.0
Author: Poiyomi
Description:
UseTemplatesForProperties: 1
ShaderPropertiesTemplate: {fileID: 0}
ShaderPath: .poiyomi/Poiyomi Toon URP World
ShaderTemplate: {fileID: -544282384758852595, guid: aae7864a6dafe5b4598869c194de7bd4, type: 3}
CustomEditor: Thry.ShaderEditor
Properties:
- Name: shader_master_label
DisplayName: <color=#E75898ff>Poiyomi Pro V8a</color>
Type: Float
DefaultValue: 0
DefaultTextureAsset: {fileID: 0}
Attributes: []
BaseModules:
- {fileID: 11400000, guid: 9b804387778967748835ca2eadcc7e20, type: 2}
- {fileID: 11400000, guid: fb5d93d50bc5c03498f9832d8bcb7074, type: 2}
- {fileID: 11400000, guid: d45da686e102bac429193ef033901fd7, type: 2}
- {fileID: 11400000, guid: ea08cf35a87c8d3408b1b796dfe1bde1, type: 2}
- {fileID: 11400000, guid: 3fb59045011d96a4a8ed82e7841dce5e, type: 2}
- {fileID: 11400000, guid: 40dbee5c6344ee948805987b0aac7f0f, type: 2}
- {fileID: 11400000, guid: bb795d14417a0004ca298527a48a780f, type: 2}
- {fileID: 11400000, guid: f00f1098d03c87048a415d1c40ba52e6, type: 2}
- {fileID: 11400000, guid: cf43416d29103f445810e6e753e82dc9, type: 2}
- {fileID: 11400000, guid: 351314fae67c513469452ca174978a36, type: 2}
- {fileID: 11400000, guid: 1899682493cff8e48a48ffdb10643c56, type: 2}
- {fileID: 11400000, guid: a8c1608b867832a4ebc3e10ec8de150d, type: 2}
- {fileID: 11400000, guid: ce2c432cabb314445bfb56e4ffbc9d4e, type: 2}
- {fileID: 11400000, guid: d982f0d32e8ddb340bab646559373844, type: 2}
- {fileID: 11400000, guid: cda6385aa13bbb847b8e00f80b822a55, type: 2}
- {fileID: 11400000, guid: 09d6c45f314e36940b6ac7d42852b9ea, type: 2}
- {fileID: 11400000, guid: eb7c90cddc3d52e458018ea6af8844a7, type: 2}
- {fileID: 11400000, guid: ef02ca9f4b55f1b49b322197143b1152, type: 2}
- {fileID: 11400000, guid: 54756ad751c582c469f3b3638e3427a7, type: 2}
- {fileID: 11400000, guid: c4ea6b952ecdc0c40b07a6cc27e2ed67, type: 2}
- {fileID: 11400000, guid: d579766a4789fda4cb17f70f66ba2087, type: 2}
- {fileID: 11400000, guid: e1ac0430d20d06645af4f4e9f7ef5a68, type: 2}
- {fileID: 11400000, guid: 691861f6a28e64048b4d465b44e7dae2, type: 2}
- {fileID: 11400000, guid: c7fdeca17ae8f58418d156e34e162e70, type: 2}
- {fileID: 11400000, guid: 496d9ada176c1a64c8d6e75b0ae824c1, type: 2}
BaseModulesEnabled: 01010101010101010101010101010101010101010101010101
AdditionalModules: []
LockBaseModules: 0
LastGeneratedShaders:
- {fileID: 4800000, guid: ee4a35d4ac84b834ab49959e377e4808, type: 3}
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3f822fc4f8f813c4fa9d3b4ad34d46be
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,63 @@
%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: f8aa43eb5c662824699f2379805fb2c0, type: 3}
m_Name: PoiyomiURPFreelilFur
m_EditorClassIdentifier:
Id: PoiyomiToonlilFur
Name: Poiyomi Toon URP Lil Fur
Version: 1.0
Author: Poiyomi
Description:
UseTemplatesForProperties: 1
ShaderPropertiesTemplate: {fileID: 0}
ShaderPath: .poiyomi/Poiyomi Toon URP + Lil Fur
ShaderTemplate: {fileID: -544282384758852595, guid: aae7864a6dafe5b4598869c194de7bd4, type: 3}
CustomEditor: Thry.ShaderEditor
Properties:
- Name: shader_master_label
DisplayName: <color=#E75898ff>Poiyomi Pro V8a</color>
Type: Float
DefaultValue: 0
DefaultTextureAsset: {fileID: 0}
Attributes: []
BaseModules:
- {fileID: 11400000, guid: 9b804387778967748835ca2eadcc7e20, type: 2}
- {fileID: 11400000, guid: fb5d93d50bc5c03498f9832d8bcb7074, type: 2}
- {fileID: 11400000, guid: d45da686e102bac429193ef033901fd7, type: 2}
- {fileID: 11400000, guid: f00f1098d03c87048a415d1c40ba52e6, type: 2}
- {fileID: 11400000, guid: cf43416d29103f445810e6e753e82dc9, type: 2}
- {fileID: 11400000, guid: 40dbee5c6344ee948805987b0aac7f0f, type: 2}
- {fileID: 11400000, guid: ea08cf35a87c8d3408b1b796dfe1bde1, type: 2}
- {fileID: 11400000, guid: e7ca7297b5910bd4096baab1d9a931d4, type: 2}
- {fileID: 11400000, guid: bb795d14417a0004ca298527a48a780f, type: 2}
- {fileID: 11400000, guid: 1899682493cff8e48a48ffdb10643c56, type: 2}
- {fileID: 11400000, guid: a8c1608b867832a4ebc3e10ec8de150d, type: 2}
- {fileID: 11400000, guid: 0486664385d95084682318207871f233, type: 2}
- {fileID: 11400000, guid: d982f0d32e8ddb340bab646559373844, type: 2}
- {fileID: 11400000, guid: 09d6c45f314e36940b6ac7d42852b9ea, type: 2}
- {fileID: 11400000, guid: f86899e1fc320fc4f87a2b45be9cdd82, type: 2}
- {fileID: 11400000, guid: cda6385aa13bbb847b8e00f80b822a55, type: 2}
- {fileID: 11400000, guid: eb7c90cddc3d52e458018ea6af8844a7, type: 2}
- {fileID: 11400000, guid: ef02ca9f4b55f1b49b322197143b1152, type: 2}
- {fileID: 11400000, guid: 54756ad751c582c469f3b3638e3427a7, type: 2}
- {fileID: 11400000, guid: c4ea6b952ecdc0c40b07a6cc27e2ed67, type: 2}
- {fileID: 11400000, guid: d579766a4789fda4cb17f70f66ba2087, type: 2}
- {fileID: 11400000, guid: e1ac0430d20d06645af4f4e9f7ef5a68, type: 2}
- {fileID: 11400000, guid: 691861f6a28e64048b4d465b44e7dae2, type: 2}
- {fileID: 11400000, guid: c86609afa3592c84f9e64ff8f8eb9160, type: 2}
- {fileID: 11400000, guid: 496d9ada176c1a64c8d6e75b0ae824c1, type: 2}
BaseModulesEnabled: 0101010101010101010101010101010101010101010101
AdditionalModules: []
LockBaseModules: 0
LastGeneratedShaders:
- {fileID: 4800000, guid: ddeee41fdcb9c164b919d39d5d45fa19, type: 3}
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 28f2636e404207a428e734249bb47033
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: eeae0ca416db06a47ae55a8fc2e33fb2
guid: 725562e23e5f1ad45b625de09fd8a5bd
folderAsset: yes
DefaultImporter:
externalObjects: {}
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: e43b11c30acca4f41a8125173e026ef3
guid: d0dc0d96bf73e4040a59cee252b3acb6
folderAsset: yes
DefaultImporter:
externalObjects: {}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 386150abf0c2cc14ab663c90ebf85c95
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b8b923a20e7942c48b6c8f65145c6c02
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,73 @@
%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: 1039f25740a92fc4292bb1d94d07ad19, type: 3}
m_Name: VRLM_PoiALDecals
m_EditorClassIdentifier:
Id: PoiALDecal
Name: PoiALDecal
Version: 1.0
Author: Poiyomi
Description:
AllowDuplicates: 0
ForceDuplicateLogic: 0
EnableProperties: []
Properties: []
ModuleDependencies: []
IncompatibleWith: []
Templates:
- Template: {fileID: -1600654798350694673, guid: 70efb560537f5b545813faaf4d6f8428, type: 3}
Keywords:
- AUDIOLINK_PROPERTIES
NeedsVariant: 0
Queue: 100
- Template: {fileID: -4820396145866010957, guid: 70efb560537f5b545813faaf4d6f8428, type: 3}
Keywords:
- BASE_PASS_KEYWORDS
- ADD_PASS_KEYWORDS
- META_PASS_KEYWORDS
- LILFUR_PASS_KEYWORDS
NeedsVariant: 0
Queue: 100
- Template: {fileID: 522983997937746048, guid: 70efb560537f5b545813faaf4d6f8428, type: 3}
Keywords:
- BASE_PROPERTY_VARIABLES
- ADD_PROPERTY_VARIABLES
- META_PROPERTY_VARIABLES
- LILFUR_PROPERTY_VARIABLES
NeedsVariant: 0
Queue: 100
- Template: {fileID: 8677926011694333233, guid: 70efb560537f5b545813faaf4d6f8428, type: 3}
Keywords:
- BASE_PROPERTY_VARIABLES_EXPOSED
- ADD_PROPERTY_VARIABLES_EXPOSED
- META_PROPERTY_VARIABLES_EXPOSED
- LILFUR_PROPERTY_VARIABLES_EXPOSED
NeedsVariant: 0
Queue: 100
- Template: {fileID: 1333774844789713128, guid: 70efb560537f5b545813faaf4d6f8428, type: 3}
Keywords:
- FRAGMENT_BASE_FUNCTIONS
- FRAGMENT_ADD_FUNCTIONS
- FRAGMENT_META_FUNCTIONS
- FRAGMENT_LILFUR_FUNCTIONS
NeedsVariant: 0
Queue: 100
- Template: {fileID: 7476105749771648410, guid: 70efb560537f5b545813faaf4d6f8428, type: 3}
Keywords:
- FRAGMENT_BASE_COLOR
- FRAGMENT_ADD_COLOR
- FRAGMENT_META_COLOR
- FRAGMENT_LILFUR_COLOR
NeedsVariant: 0
Queue: 100
Functions: []
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 383407afc98e84c41ab2156f362de87c
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,449 @@
#T#PoiALDecalsProperties
//ifex _EnableALDecal==0
[HideInInspector] m_start_ALDecalSpectrum (" AL ♫ Spectrum--{ reference_property:_EnableALDecal, button_help:{text:Tutorial,action:{type:URL,data:https://www.poiyomi.com/audio-link/spectrum},hover:Documentation}}", Float) = 0
[HideInInspector][ThryToggle(POI_AL_DECAL)]_EnableALDecal ("Enable AL Decal", Float) = 0
[HideInInspector] s_start_ALDecalPositioning ("Positioning--{persistent_expand:true,default_expand:true}", Float) = 1
[Helpbox(1, 2, 1)] _ALDecalPositioningHelp ("To apply Positioning using Raycast, edit this Material directly from your Mesh in the Scene. Click for video tutorial.--{onClick:{type:URL,data:https://www.poiyomi.com/audio-link/spectrum#positioning}}", Int) = 0
[ThryDecalPositioning(_ALDecalColorMask, _ALDecalUV, _ALDecalPosition, _ALDecalRotation, _ALDecalScale, _ALDecalSideOffset)]
[ThryWideEnum(UV0, 0, UV1, 1, UV2, 2, UV3, 3, Panosphere, 4, World Pos, 5, Local Pos, 8, Polar UV, 6, Distorted UV, 7, Matcap, 9, Screen Space, 10)] _ALDecalUV ("UV", Int) = 0
[Vector2]_ALDecalPosition ("Position", Vector) = (.5, .5, 0, 0)
_ALDecalRotation ("Rotation", Range(0, 360)) = 0
_ALDecalRotationSpeed ("Rotation Speed", Float) = 0
[VectorLabel(X, Y, link)]_ALDecalScale ("Scale", Vector) = (1, 1, 1, 0)
[VectorLabel(L, R, D, U)]_ALDecalSideOffset ("Side Offset", Vector) = (0, 0, 0, 0)
[ThryWideEnum(Off, 0, Flip, 1, Left Only, 2, Right Only, 3, Flip Right Only, 4)] _ALDecalMirroredUVMode ("Mirrored UV Mode", Int) = 0
[ThryWideEnum(Off, 0, Symmetry, 1, Flipped, 2)] _ALDecalSymmetryMode ("Symmetry Mode", Int) = 0
[ToggleUI]_ALDecalTiled ("Tiled", Float) = 0
[HideInInspector] s_end_ALDecalPositioning ("Positioning", Float) = 0
[HideInInspector] s_start_ALDecalSpectrumOptions ("Spectrum--{persistent_expand:true,default_expand:true}", Float) = 1
[Enum(Normal, 0, Circle, 1)] _ALDecalUVMode ("UV Mode", Float) = 0
_ALDecaldCircleDimensions ("Circle Dimensions--{ condition_showS:_ALDecalUVMode==1}", Vector) = (0, 1, 0, 1)
_ALDecalLineWidth ("Line Width", Range(0, 1)) = 1.0
[ToggleUI]_ALDecalBilateral ("Bilateral Mode", Float) = 0
[Enum(Off, 0, Mirror, 1, Mirror Flipped, 2)] _ALDecalMirrorBand ("Mirror Spectrum", Int) = 0
_ALDecalBandRange ("Band Range", Range(0.01, 1)) = 0.5
[HideInInspector] s_end_ALDecalSpectrumOptions ("Spectrum", Float) = 0
[HideInInspector] s_start_ALDecalAudioModsOptions ("Audio Mods--{persistent_expand:true,default_expand:true}", Float) = 1
_ALDecalVolume ("Volume", Range(0, 2)) = 1.0
_ALDecalBaseBoost ("Bass Boost", Float) = 1.0
_ALDecalTrebleBoost ("Treble Boost", Float) = 1.0
[HideInInspector] s_end_ALDecalAudioModsOptions ("Audio Mods", Float) = 0
[HideInInspector] s_start_ALDecalClippingOptions ("Clipping--{persistent_expand:true,default_expand:true}", Float) = 1
_ALDecalVolumeStep ("Volume Step (0 = Off)", Float) = 0.0
_ALDecalVolumeClipMin ("Volume Clip Min", Range(0, 1)) = 0.0
_ALDecalVolumeClipMax ("Volume Clip Max", Range(0, 1)) = 1.0
_ALDecalBandStep ("Band Step (0 = Off)", Float) = 0.0
_ALDecalBandClipMin ("Band Clip Min", Range(0, 1)) = 0.0
_ALDecalBandClipMax ("Band Clip Max", Range(0, 1)) = 1.0
[ToggleUI]_ALDecalShapeClip ("Shape Clip", Float) = 0
_ALDecalShapeClipVolumeWidth ("Shape Clip Volume Width--{ condition_showS:_ALDecalShapeClip==1}", Range(0, 1)) = 0.5
_ALDecalShapeClipBandWidth ("Shape Clip Band Width--{ condition_showS:_ALDecalShapeClip==1}", Range(0, 1)) = 0.5
[HideInInspector] s_end_ALDecalClippingOptions ("Clipping", Float) = 0
[HideInInspector] s_start_ALDecalColorsBlendingOptions ("Colors and Blending--{persistent_expand:true,default_expand:true}", Float) = 1
[Enum(Gradient, 0, ColorChord, 1)] _ALDecalColorMode ("Color Mode", Int) = 0
[sRGBWarning(true)][ThryRGBAPacker(RGB Color, A Mask, sRGB, false)]_ALDecalColorMask ("Color & Mask--{reference_properties:[_ALDecalColorMaskPan, _ALDecalColorMaskUV]}", 2D) = "white" { }
[ThryHideInInspector][Vector2]_ALDecalColorMaskPan ("Panning", Vector) = (0, 0, 0, 0)
[ThryHideInInspector][ThryWideEnum(UV0, 0, UV1, 1, UV2, 2, UV3, 3, Panosphere, 4, World Pos, 5, Local Pos, 8, Polar UV, 6, Distorted UV, 7, Matcap, 9, Screen Space, 10)] _ALDecalColorMaskUV ("UV", Int) = 0
_ALDecalColorChordEmission ("ColorChord Emission--{ condition_showS:_ALDecalColorMode==1}", Range(0, 20)) = 0
[Enum(UVX, 0, UVY, 1, Volume, 2)] _ALDecalVolumeColorSource ("Source--{ condition_showS:_ALDecalColorMode==0}", Int) = 1
_ALDecalVolumeColorLow ("Volume Color Low--{reference_property:_ALDecalVolumeColorLowThemeIndex, condition_showS:_ALDecalColorMode==0}", Color) = (0, 0, 1)
[ThryHideInInspector][ThryWideEnum(Off, 0, Theme Color 0, 1, Theme Color 1, 2, Theme Color 2, 3, Theme Color 3, 4, ColorChord 0, 5, ColorChord 1, 6, ColorChord 2, 7, ColorChord 3, 8, AL Theme 0, 9, AL Theme 1, 10, AL Theme 2, 11, AL Theme 3, 12)] _ALDecalVolumeColorLowThemeIndex ("", Int) = 0
_ALDecalLowEmission ("Low Emission--{ condition_showS:_ALDecalColorMode==0}", Range(0, 20)) = 0
_ALDecalVolumeColorMid ("Volume Color Mid--{reference_property:_ALDecalVolumeColorMidThemeIndex, condition_showS:_ALDecalColorMode==0}", Color) = (0, 1, 0)
[ThryHideInInspector][ThryWideEnum(Off, 0, Theme Color 0, 1, Theme Color 1, 2, Theme Color 2, 3, Theme Color 3, 4, ColorChord 0, 5, ColorChord 1, 6, ColorChord 2, 7, ColorChord 3, 8, AL Theme 0, 9, AL Theme 1, 10, AL Theme 2, 11, AL Theme 3, 12)] _ALDecalVolumeColorMidThemeIndex ("", Int) = 0
_ALDecalMidEmission ("Mid Emission--{ condition_showS:_ALDecalColorMode==0}", Range(0, 20)) = 0
_ALDecalVolumeColorHigh ("Volume Color High--{reference_property:_ALDecalVolumeColorHighThemeIndex, condition_showS:_ALDecalColorMode==0}", Color) = (1, 0, 0)
[ThryHideInInspector][ThryWideEnum(Off, 0, Theme Color 0, 1, Theme Color 1, 2, Theme Color 2, 3, Theme Color 3, 4, ColorChord 0, 5, ColorChord 1, 6, ColorChord 2, 7, ColorChord 3, 8, AL Theme 0, 9, AL Theme 1, 10, AL Theme 2, 11, AL Theme 3, 12)] _ALDecalVolumeColorHighThemeIndex ("", Int) = 0
_ALDecalHighEmission ("High Emission--{ condition_showS:_ALDecalColorMode==0}", Range(0, 20)) = 0
[ThryWideEnum(Replace, 0, Darken, 1, Multiply, 2, Lighten, 5, Screen, 6, Subtract, 7, Add, 8, Overlay, 9, Mixed, 20)]_ALDecalBlendType ("Blend Type", Int) = 0
_ALDecalBlendAlpha ("Alpha", Range(0, 1)) = 1
_ALDecalControlsAlpha ("Override Alpha", Range(0, 1)) = 0
[ToggleUI] _ALDecalUseVideoEffects ("Apply Video Effects--{condition_showS:(_VideoEffectsEnable==1)}", Float) = 0
[ThryWideEnum(Off, 0, 1R, 1, 1G, 2, 1B, 3, 1A, 4, 2R, 5, 2G, 6, 2B, 7, 2A, 8, 3R, 9, 3G, 10, 3B, 11, 3A, 12, 4R, 13, 4G, 14, 4B, 15, 4A, 16)] _ALDecalGlobalMask ("Global Mask--{reference_property:_ALDecalGlobalMaskBlendType}", Int) = 0
[ThryHideInInspector][ThryWideEnum(Add, 7, Subtract, 1, Multiply, 2, Divide, 3, Min, 4, Max, 5, Average, 6, Replace, 0)] _ALDecalGlobalMaskBlendType ("Blending", Int) = 2
[HideInInspector] s_end_ALDecalColorsBlendingOptions ("Colors and Blending", Float) = 0
[ToggleUI]_ALDecalDebug ("Debug", Float) = 0
_ALDecalDebugBorderWidth ("Debug Border Width--{ condition_showS:_ALDecalDebug==1}", Range(0.005, 0.1)) = 0.02
[HideInInspector] m_end_ALDecalSpectrum ("AL ♫ Spectrum", Float) = 0
//endex
#T#PoiALDecalsKeywords
//ifex _EnableALDecal==0
#pragma shader_feature_local_fragment POI_AL_DECAL
//endex
#T#PoiALDecalsVariablesExposed
//ifex _EnableALDecal==0
#ifdef POI_AUDIOLINK
#ifdef POI_AL_DECAL
float _ALDecalUV;
float2 _ALDecalPosition;
float _ALDecalRotation;
float _ALDecalRotationSpeed;
float2 _ALDecalScale;
float4 _ALDecalSideOffset;
float _ALDecalMirroredUVMode;
float _ALDecalSymmetryMode;
float _ALDecalTiled;
float4 _ALDecaldCircleDimensions;
float _ALDecalUVMode;
float _ALDecalBilateral;
float _ALDecalMirrorBand;
half _ALDecalBandRange;
float _ALDecalColorMode;
half _ALDecalColorChordEmission;
float _ALDecalVolumeStep;
half _ALDecalVolumeClipMin;
half _ALDecalVolumeClipMax;
float _ALDecalBandStep;
half _ALDecalBandClipMin;
half _ALDecalBandClipMax;
float _ALDecalShapeClip;
half _ALDecalShapeClipVolumeWidth;
half _ALDecalShapeClipBandWidth;
#if defined(PROP_ALDECALCOLORMASK) || !defined(OPTIMIZER_ENABLED)
float4 _ALDecalColorMask_ST;
float2 _ALDecalColorMaskPan;
float _ALDecalColorMaskUV;
#endif
half _ALDecalVolume;
half _ALDecalBaseBoost;
half _ALDecalTrebleBoost;
half _ALDecalLineWidth;
half _ALDecalVolumeColorSource;
half3 _ALDecalVolumeColorLow;
float _ALDecalVolumeColorLowThemeIndex;
half3 _ALDecalVolumeColorMid;
float _ALDecalVolumeColorMidThemeIndex;
half3 _ALDecalVolumeColorHigh;
float _ALDecalVolumeColorHighThemeIndex;
half _ALDecalLowEmission;
half _ALDecalMidEmission;
half _ALDecalHighEmission;
float _ALDecalBlendType;
half _ALDecalBlendAlpha;
half _ALDecalControlsAlpha;
float _ALDecalUseVideoEffects;
half _ALDecalGlobalMask;
float _ALDecalGlobalMaskBlendType;
float _ALDecalDebug;
half _ALDecalDebugBorderWidth;
#endif
#endif
//endex
#T#PoiALDecalsVariables
//ifex _EnableALDecal==0
#ifdef POI_AUDIOLINK
#ifdef POI_AL_DECAL
#if defined(PROP_ALDECALCOLORMASK) || !defined(OPTIMIZER_ENABLED)
Texture2D _ALDecalColorMask;
#endif
#endif
#endif
//endex
#T#PoiALDecalsFunctions
//ifex _EnableALDecal==0
#ifdef POI_AUDIOLINK
#ifdef POI_AL_DECAL
void ApplyAudioLinkDecal(in PoiMesh poiMesh, in PoiCam poiCam, inout PoiFragData poiFragData, in PoiMods poiMods)
{
half4 colorAndMask = float4(1, 1, 1, 1);
#if defined(PROP_ALDECALCOLORMASK) || !defined(OPTIMIZER_ENABLED)
colorAndMask = POI2D_SAMPLER_PAN(_ALDecalColorMask, _MainTex, poiUV(poiMesh.uv[_ALDecalColorMaskUV], _ALDecalColorMask_ST), _ALDecalColorMaskPan);
#endif
if (_ALDecalGlobalMask > 0)
{
colorAndMask.a = customBlend(colorAndMask.a, poiMods.globalMask[_ALDecalGlobalMask-1], _ALDecalGlobalMaskBlendType);
}
float4 scaleOffset = float4(-_ALDecalSideOffset.x, _ALDecalSideOffset.y, -_ALDecalSideOffset.z, _ALDecalSideOffset.w);
float2 centerOffset = float2((scaleOffset.x + scaleOffset.y) / 2, (scaleOffset.z + scaleOffset.w) / 2);
float2 uv = poiMesh.uv[_ALDecalUV];
float tilingClip = 1;
// Symmetry
if (_ALDecalSymmetryMode == 1) uv.x = abs(uv.x - 0.5) + 0.5;
if (_ALDecalSymmetryMode == 2 && uv.x < 0.5) uv.x = uv.x + 0.5;
// Mirrored UV
if ((_ALDecalMirroredUVMode == 1 || _ALDecalMirroredUVMode == 4) && poiMesh.isRightHand) uv.x = 1.0 - uv.x;
if (_ALDecalMirroredUVMode == 2 && poiMesh.isRightHand) tilingClip = 0;
if ((_ALDecalMirroredUVMode == 3 || _ALDecalMirroredUVMode == 4) && !poiMesh.isRightHand) tilingClip = 0;
float2 decalCenter = _ALDecalPosition + centerOffset;
float theta = radians(_ALDecalRotation + POI_TIME.z * _ALDecalRotationSpeed);
float cs = cos(theta);
float sn = sin(theta);
uv = float2((uv.x - decalCenter.x) * cs - (uv.y - decalCenter.y) * sn + decalCenter.x, (uv.x - decalCenter.x) * sn + (uv.y - decalCenter.y) * cs + decalCenter.y);
uv = remap(uv, float2(0, 0) - _ALDecalScale / 2 + _ALDecalPosition + scaleOffset.xz, _ALDecalScale / 2 + _ALDecalPosition + scaleOffset.yw, float2(0, 0), float2(1, 1));
// Tiling Clip
if (_ALDecalTiled < 0.5)
{
if (uv.x > 1 || uv.y > 1 || uv.x < 0 || uv.y < 0)
{
tilingClip = 0;
}
}
uv = tilingClip > 0 ? frac(uv) : uv;
// Mask
half3 audioLinkMask = 1.0;
// UV
float2 aluv = uv;
half maskY = aluv.y;
half maskX = aluv.x;
if (_ALDecalUVMode == 1)
{
float2 uvdir = uv * 2 - 1;
aluv.x = frac(atan2(uvdir.y, uvdir.x) * UNITY_INV_TWO_PI);
aluv.y = length(uvdir);
maskY = remap(aluv.y, _ALDecaldCircleDimensions.x, _ALDecaldCircleDimensions.y, 0, 1);
maskX = remap(aluv.x, _ALDecaldCircleDimensions.z, _ALDecaldCircleDimensions.w, 0, 1);
}
half maskVolume = _ALDecalVolumeStep != 0.0 ? floor(maskY * _ALDecalVolumeStep + 1e-4) / _ALDecalVolumeStep : maskY;
half maskBand = _ALDecalBandStep != 0.0 ? floor(maskX * _ALDecalBandStep + 1e-4) / _ALDecalBandStep : maskX;
// Mirror band axis (0->1->0 or 1->0->1)
if (_ALDecalMirrorBand == 1)
{
maskBand = 1.0 - abs(maskBand * 2.0 - 1.0);
}
else if (_ALDecalMirrorBand == 2)
{
maskBand = abs(maskBand * 2.0 - 1.0);
}
// Copy
audioLinkMask.r = maskVolume;
audioLinkMask.g = maskBand;
// Clip
audioLinkMask.b = maskVolume < _ALDecalVolumeClipMin || maskVolume > _ALDecalVolumeClipMax ? 0.0 : audioLinkMask.b;
audioLinkMask.b = maskBand < _ALDecalBandClipMin || maskBand > _ALDecalBandClipMax ? 0.0 : audioLinkMask.b;
// Shape Clip (analytical filtered pulse for proper AA on all edges)
if (_ALDecalShapeClip >= 0.5)
{
if (_ALDecalVolumeStep != 0.0)
{
float vw = _ALDecalShapeClipVolumeWidth;
float gw = 1.0 - vw;
// Center the bar in each step so the gap straddles the step boundary
float volInput = maskY * _ALDecalVolumeStep - gw * 0.5;
float vdx = max(fwidth(volInput), 0.0001);
float vx0 = volInput - vdx * 0.5;
float vx1 = volInput + vdx * 0.5;
float vI0 = floor(vx0) * vw + min(frac(vx0), vw);
float vI1 = floor(vx1) * vw + min(frac(vx1), vw);
audioLinkMask.b *= saturate((vI1 - vI0) / vdx);
}
float bandwidth = _ALDecalUVMode == 1 ? _ALDecalShapeClipBandWidth / aluv.y : _ALDecalShapeClipBandWidth;
float bandth = 1.0 - bandwidth;
if (_ALDecalBandStep != 0.0)
{
float bandInput = maskX * _ALDecalBandStep + bandth * 0.5;
float bdx = max(fwidth(bandInput), 0.0001);
float bx0 = bandInput - bdx * 0.5;
float bx1 = bandInput + bdx * 0.5;
float bI0 = floor(bx0) * bandth + min(frac(bx0), bandth);
float bI1 = floor(bx1) * bandth + min(frac(bx1), bandth);
audioLinkMask.b *= 1.0 - saturate((bI1 - bI0) / bdx);
}
}
// Bilateral Mode
float bilateralVolume = maskVolume;
if (_ALDecalBilateral >= 0.5)
{
bilateralVolume = abs(maskVolume - 0.5) * 2.0;
}
// AudioLink
float bandScale = 4.0 * _ALDecalBandRange;
float alBandIndex = min(floor(audioLinkMask.g * bandScale), 3.0);
float2 audioLinkUV = float2(frac(audioLinkMask.g * bandScale), (4.5 + alBandIndex) / 64.0);
float audioVal;
if (_ALDecalDebug >= 0.5)
{
float bandPos = maskBand;
float bandHash = frac(sin(floor(bandPos * 128.0) * 43.7585) * 2847.15);
half bassWeight = saturate(1.0 - bandPos * 2.0);
half trebWeight = saturate(bandPos * 2.0 - 1.0);
half midWeight = 1.0 - bassWeight - trebWeight;
float speed = lerp(1.5, 6.0, bandPos);
float t = POI_TIME.y;
half pulse = saturate(sin(t * speed + bandHash * 6.283) * 0.7 + 0.3);
pulse *= saturate(sin(t * speed * 0.37 + bandHash * 3.14) + 0.5);
float beat = pow(saturate(sin(t * 1.8 + bandHash * 2.0) * 0.5 + 0.5), 2.0);
audioVal = lerp(pulse, beat, bassWeight) * lerp(0.8, 0.3, trebWeight);
audioVal *= _ALDecalVolume * lerp(_ALDecalBaseBoost, _ALDecalTrebleBoost, audioLinkMask.g);
}
else
{
float4 audioTexture = _AudioTexture.Sample(sampler_linear_clamp, audioLinkUV);
audioVal = audioTexture.b * _ALDecalVolume * lerp(_ALDecalBaseBoost, _ALDecalTrebleBoost, audioLinkMask.g);
}
audioVal = tanh(audioVal);
float audioLinkValue;
if (_ALDecalLineWidth < 1.0 && _ALDecalVolumeStep != 0.0)
{
// Step percentage mode: lineWidth = percentage of total steps shown from top down (min 1 step)
float stepSize = 1.0 / _ALDecalVolumeStep;
float threshold = audioVal - max(_ALDecalLineWidth, stepSize);
audioLinkValue = (audioVal > bilateralVolume && bilateralVolume >= threshold) ? 1.0 : 0.0;
}
else if (_ALDecalLineWidth < 1.0)
{
// Line mode (no steps active)
float pixelSize = max(length(float2(ddx(bilateralVolume), ddy(bilateralVolume))), 0.0001);
float thickness = _ALDecalLineWidth * 64.0;
float marginUV = (thickness + 1.0) * pixelSize;
float remappedAudio = lerp(marginUV, 1.0 - marginUV, audioVal);
float d = abs(remappedAudio - bilateralVolume);
float pixelDist = d / pixelSize;
audioLinkValue = smoothstep(thickness + 1.0, thickness, pixelDist);
}
else
{
audioLinkValue = audioVal > bilateralVolume ? 1.0 : 0.0;
}
audioLinkValue = saturate(audioLinkValue) * audioLinkMask.b * tilingClip;
//clip(audioLinkValue - .5);
audioLinkValue *= colorAndMask.a;
if (_ALDecalDebug < 0.5 && !poiMods.audioLinkAvailable)
{
audioLinkValue = 0;
}
// Debug: draw perimeter border
float debugBorder = 0;
if (_ALDecalDebug >= 0.5 && tilingClip > 0)
{
float bw = _ALDecalDebugBorderWidth;
if (uv.x < bw || uv.x > 1 - bw || uv.y < bw || uv.y > 1 - bw)
{
debugBorder = 1;
}
}
half3 alColorChord = float3(0, 0, 0);
if (_ALDecalColorMode == 1)
{
if (_ALDecalDebug >= 0.5)
{
alColorChord = float3(
saturate(sin(POI_TIME.y * 2.1 + maskBand * 13.0) * 0.5 + 0.5),
saturate(sin(POI_TIME.y * 3.3 + maskBand * 7.7) * 0.5 + 0.5),
saturate(sin(POI_TIME.y * 4.7 + maskBand * 19.1) * 0.5 + 0.5)
);
}
else
{
alColorChord = _AudioTexture.Sample(sampler_linear_clamp, float2(maskBand, 24.5 / 64.0)).rgb;
}
}
half volumeColorSrc = audioLinkMask.g;
if (_ALDecalVolumeColorSource == 1) volumeColorSrc = bilateralVolume;
if (_ALDecalVolumeColorSource == 2) volumeColorSrc = audioVal;
half3 volumeColor = float3(0, 0, 0);
half3 emissionColor = float3(0, 0, 0);
if (_ALDecalColorMode == 1)
{
volumeColor = alColorChord;
emissionColor = alColorChord * _ALDecalColorChordEmission;
}
else
{
half3 lowColor = poiThemeColor(poiMods, _ALDecalVolumeColorLow.rgb, _ALDecalVolumeColorLowThemeIndex);
half3 midColor = poiThemeColor(poiMods, _ALDecalVolumeColorMid.rgb, _ALDecalVolumeColorMidThemeIndex);
half3 highColor = poiThemeColor(poiMods, _ALDecalVolumeColorHigh.rgb, _ALDecalVolumeColorHighThemeIndex);
volumeColor = lerp(lowColor, midColor, saturate(volumeColorSrc * 2));
volumeColor = lerp(volumeColor, highColor, saturate(volumeColorSrc * 2 - 1));
emissionColor = lerp(lowColor * _ALDecalLowEmission, midColor * _ALDecalMidEmission, saturate(volumeColorSrc * 2));
emissionColor = lerp(emissionColor, highColor * _ALDecalHighEmission, saturate(volumeColorSrc * 2 - 1));
}
//poiFragData.baseColor = lerp(poiFragData.baseColor, volumeColor, audioLinkValue);
half3 alColor = volumeColor * colorAndMask.rgb;
half alCoverage = saturate(_ALDecalBlendAlpha * audioLinkValue);
// --- Video Effects screen look (shared poiApplyScreenEffect helper) ---
bool alScreenActive = false;
half3 alScreenEmission = 0;
#if defined(POI_VIDEO_EFFECTS) && (defined(POI_PASS_BASE) || defined(POI_PASS_ADD) || defined(POI_PASS_META))
if (_ALDecalUseVideoEffects >= 0.5 && _VideoEffectsEnable >= 0.5)
{
PoiScreenEffect se;
se.type = _VideoType;
se.backlight = _VideoBacklight;
se.contrast = _VideoContrast;
se.saturation = _VideoSaturation;
se.resolution = _VideoResolution;
se.crtRefreshRate = _VideoCRTRefreshRate;
se.crtPixelEnergizedTime = _VideoCRTPixelEnergizedTime;
half3 pixels = 1.0h;
#if defined(PROP_VIDEOPIXELTEXTURE) || !defined(OPTIMIZER_ENABLED)
pixels = POI2D_SAMPLER(_VideoPixelTexture, _MainTex, poiUV(poiMesh.uv[_VideoPixelTextureUV], _VideoPixelTexture_ST) * se.resolution);
#endif
float2 screenUV = poiUV(poiMesh.uv[_MainTexUV], _MainTex_ST) + POI_TIME.x * _MainTexPan;
half4 screenColor = float4(alColor, 1);
poiApplyScreenEffect(screenColor, se, pixels, screenUV, poiCam, poiMesh);
alColor = screenColor.rgb;
alScreenActive = true;
alScreenEmission = _VideoEmissionEnabled ? screenColor.rgb : (float3)0;
}
#endif
// A screen occludes the emission already on the surface (incl. the main Video Effects glow)
// so the spectrum reads as a solid screen; otherwise keep the original additive emission.
if (alScreenActive)
poiFragData.emission = lerp(poiFragData.emission, alScreenEmission, alCoverage);
else
poiFragData.emission += emissionColor * audioLinkValue;
poiFragData.baseColor.rgb = lerp(poiFragData.baseColor, customBlend(poiFragData.baseColor, alColor, _ALDecalBlendType), alCoverage);
if (debugBorder)
{
poiFragData.baseColor.rgb = float3(0, 1, 0);
poiFragData.emission += float3(0, 1, 0);
}
poiFragData.alpha = lerp(poiFragData.alpha, poiFragData.alpha * audioLinkValue, _ALDecalControlsAlpha);
}
#endif
#endif
//endex
#T#PoiALDecalsFunctionCalls
//ifex _EnableALDecal==0
#ifdef POI_AUDIOLINK
#if defined(POI_AL_DECAL) && (defined(POI_PASS_BASE) || defined(POI_PASS_ADD) || defined(POI_PASS_META))
ApplyAudioLinkDecal(poiMesh, poiCam, poiFragData, poiMods);
#K#AUDIOLINK_DECAL_HOOK
#endif
#endif
//endex
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 70efb560537f5b545813faaf4d6f8428
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: b8e1b7bf6f1d9674dbe75fe157540c41, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 363dfe216107eaf4f86b81f07b2380f4
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,61 @@
%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: 1039f25740a92fc4292bb1d94d07ad19, type: 3}
m_Name: VRLM_PoiALVolumeColor
m_EditorClassIdentifier:
Id: PoiALVolumeColor
Name: PoiALVolumeColor
Version: 1.0
Author: Poiyomi
Description:
AllowDuplicates: 0
ForceDuplicateLogic: 0
EnableProperties: []
Properties: []
ModuleDependencies: []
IncompatibleWith: []
Templates:
- Template: {fileID: -4432645273540307082, guid: 64dc3c69662940d4b9ed9100e21beea8, type: 3}
Keywords:
- AUDIOLINK_PROPERTIES
NeedsVariant: 0
Queue: 100
- Template: {fileID: 6346029674210517224, guid: 64dc3c69662940d4b9ed9100e21beea8, type: 3}
Keywords:
- BASE_PASS_KEYWORDS
- META_PASS_KEYWORDS
- LILFUR_PASS_KEYWORDS
NeedsVariant: 0
Queue: 100
- Template: {fileID: -6309791261029026687, guid: 64dc3c69662940d4b9ed9100e21beea8, type: 3}
Keywords:
- BASE_PROPERTY_VARIABLES_EXPOSED
- META_PROPERTY_VARIABLES_EXPOSED
- LILFUR_PROPERTY_VARIABLES_EXPOSED
NeedsVariant: 0
Queue: 100
- Template: {fileID: 8219168899949994472, guid: 64dc3c69662940d4b9ed9100e21beea8, type: 3}
Keywords:
- FRAGMENT_BASE_FUNCTIONS
- FRAGMENT_META_FUNCTIONS
- FRAGMENT_LILFUR_FUNCTIONS
NeedsVariant: 0
Queue: 100
- Template: {fileID: -6389303596870294039, guid: 64dc3c69662940d4b9ed9100e21beea8, type: 3}
Keywords:
- FRAGMENT_BASE_COLOR
- FRAGMENT_META_COLOR
- FRAGMENT_LILFUR_COLOR
NeedsVariant: 0
Queue: 100
Functions: []
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ba8ca7621544dc74f813f9664afd8b7e
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,82 @@
#T#PoiVolumeColorProperties
//ifex _EnableVolumeColor==0
[HideInInspector] m_start_ALVolumeColor (" AL ♫ Volume Color--{reference_property:_EnableVolumeColor, button_help:{text:Tutorial,action:{type:URL,data:https://www.poiyomi.com/audio-link/volume-color},hover:Documentation}}", Float) = 0
[HideInInspector][ThryToggle(POI_AL_VOLUMECOLOR)]_EnableVolumeColor ("Enable AL Volume Color", Float) = 0
[Enum(UV0, 0, UV1, 1, UV2, 2, UV3, 3)] _ALVolumeColorUV ("UV", Int) = 0
[Enum(X, 0, Y, 1)] _ALVolumeColorDirection ("UV Direction", Int) = 0
[HideInInspector] s_start_ALVolumeColorsAndBlending ("Colors and Blending--{persistent_expand:true, default_expand:true}", Float) = 1
_ALVolumeColorLow ("Volume Color Low--{reference_property:_ALVolumeColorLowThemeIndex}", Color) = (0, 0, 1)
[ThryHideInInspector][ThryWideEnum(Off, 0, Theme Color 0, 1, Theme Color 1, 2, Theme Color 2, 3, Theme Color 3, 4, ColorChord 0, 5, ColorChord 1, 6, ColorChord 2, 7, ColorChord 3, 8, AL Theme 0, 9, AL Theme 1, 10, AL Theme 2, 11, AL Theme 3, 12)] _ALVolumeColorLowThemeIndex ("", Int) = 0
_ALLowEmission ("Low Emission", Range(0, 20)) = 0
_ALVolumeColorMid ("Volume Color Mid--{reference_property:_ALVolumeColorMidThemeIndex}", Color) = (0, 1, 0)
[ThryHideInInspector][ThryWideEnum(Off, 0, Theme Color 0, 1, Theme Color 1, 2, Theme Color 2, 3, Theme Color 3, 4, ColorChord 0, 5, ColorChord 1, 6, ColorChord 2, 7, ColorChord 3, 8, AL Theme 0, 9, AL Theme 1, 10, AL Theme 2, 11, AL Theme 3, 12)] _ALVolumeColorMidThemeIndex ("", Int) = 0
_ALMidEmission ("Mid Emission", Range(0, 20)) = 0
_ALVolumeColorHigh ("Volume Color High--{reference_property:_ALVolumeColorHighThemeIndex}", Color) = (1, 0, 0)
[ThryHideInInspector][ThryWideEnum(Off, 0, Theme Color 0, 1, Theme Color 1, 2, Theme Color 2, 3, Theme Color 3, 4, ColorChord 0, 5, ColorChord 1, 6, ColorChord 2, 7, ColorChord 3, 8, AL Theme 0, 9, AL Theme 1, 10, AL Theme 2, 11, AL Theme 3, 12)] _ALVolumeColorHighThemeIndex ("", Int) = 0
_ALHighEmission ("High Emission", Range(0, 20)) = 0
[ThryWideEnum(Replace, 0, Darken, 1, Multiply, 2, Lighten, 5, Screen, 6, Subtract, 7, Add, 8, Overlay, 9, Mixed, 20)]_ALVolumeColorBlendType ("Blend Type", Range(0, 1)) = 0
_ALVolumeColorBlendAlpha ("Alpha", Range(0,1)) = 1
[HideInInspector] s_end_ALVolumeColorsAndBlending ("Colors and Blending", Float) = 0
[HideInInspector] m_end_ALVolumeColor ("AL ♫ Volume Color", Float) = 0
//endex
#T#PoiVolumeColorKeywords
//ifex _EnableVolumeColor==0
#pragma shader_feature_local POI_AL_VOLUMECOLOR
//endex
#T#PoiVolumeColorVariablesExposed
//ifex _EnableVolumeColor==0
#ifdef POI_AUDIOLINK
#ifdef POI_AL_VOLUMECOLOR
float _ALVolumeColorUV;
float _ALVolumeColorDirection;
float _ALVolumeColorBlendType;
half _ALVolumeColorBlendAlpha;
half3 _ALVolumeColorLow;
float _ALVolumeColorLowThemeIndex;
half3 _ALVolumeColorMid;
float _ALVolumeColorMidThemeIndex;
half3 _ALVolumeColorHigh;
float _ALVolumeColorHighThemeIndex;
half _ALLowEmission;
half _ALMidEmission;
half _ALHighEmission;
#endif
#endif
//endex
#T#PoiVolumeColorFunctions
//ifex _EnableVolumeColor==0
#ifdef POI_AUDIOLINK
#ifdef POI_AL_VOLUMECOLOR
void ApplyAudioLinkVolumeColor(in PoiMesh poiMesh, inout PoiFragData poiFragData, in PoiMods poiMods)
{
float volume = AudioLinkLerpMultiline(ALPASS_DFT + float2(poiMesh.uv[_ALVolumeColorUV][_ALVolumeColorDirection] * AUDIOLINK_ETOTALBINS, 0.0)).b;
half3 lowColor = _ALVolumeColorLow.rgb * poiThemeColor(poiMods, _ALVolumeColorLow.rgb, _ALVolumeColorLowThemeIndex);
half3 midColor = _ALVolumeColorMid.rgb * poiThemeColor(poiMods, _ALVolumeColorMid.rgb, _ALVolumeColorMidThemeIndex);
half3 highColor = _ALVolumeColorHigh.rgb * poiThemeColor(poiMods, _ALVolumeColorHigh.rgb, _ALVolumeColorHighThemeIndex);
half3 volumeColor = lerp(lowColor, midColor, saturate(volume * 2));
volumeColor = lerp(volumeColor, highColor, saturate(volume * 2 - 1));
half3 emissionColor = lerp(lowColor * _ALLowEmission, midColor * _ALMidEmission, saturate(volume * 2));
emissionColor = lerp(emissionColor, highColor * _ALHighEmission, saturate(volume * 2 - 1));
poiFragData.emission += emissionColor * poiMods.audioLinkAvailable;
poiFragData.baseColor.rgb = lerp(poiFragData.baseColor, customBlend(poiFragData.baseColor, volumeColor, _ALVolumeColorBlendType), saturate(_ALVolumeColorBlendAlpha * poiMods.audioLinkAvailable));
}
#endif
#endif
//endex
#T#PoiVolumeColorFunctionCalls
//ifex _EnableVolumeColor==0
#ifdef POI_AUDIOLINK
#if defined(POI_AL_VOLUMECOLOR) && (defined(POI_PASS_BASE) || defined(POI_PASS_META))
ApplyAudioLinkVolumeColor(poiMesh, poiFragData, poiMods);
#K#AUDIOLINK_VOLUME_COLOR_HOOK
#endif
#endif
//endex
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 64dc3c69662940d4b9ed9100e21beea8
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: b8e1b7bf6f1d9674dbe75fe157540c41, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f35a7f2dea17745479e98526b21a9360
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,79 @@
%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: 1039f25740a92fc4292bb1d94d07ad19, type: 3}
m_Name: VRLM_PoiFeatureBS
m_EditorClassIdentifier:
Id: PoiFeatureBS
Name: Poi Beatsaber Support
Version: 1.0
Author: AlexxSeven
Description:
AllowDuplicates: 0
ForceDuplicateLogic: 0
EnableProperties: []
Properties: []
ModuleDependencies: []
IncompatibleWith: []
Templates:
- Template: {fileID: -3657888825884289717, guid: 823374490a688b341abb700356c28a3a, type: 3}
Keywords:
- THIRDPARTY_PROPERTIES
NeedsVariant: 0
Queue: 102
- Template: {fileID: 7580494150627181241, guid: 823374490a688b341abb700356c28a3a, type: 3}
Keywords:
- DEPTH_PASS_KEYWORDS
- OUTLINE_PASS_KEYWORDS
- BASE_PASS_KEYWORDS
- ADD_PASS_KEYWORDS
- META_PASS_KEYWORDS
- SHADOW_PASS_KEYWORDS
- LILFUR_PASS_KEYWORDS
NeedsVariant: 0
Queue: 100
- Template: {fileID: 6748318367325282331, guid: 823374490a688b341abb700356c28a3a, type: 3}
Keywords:
- BASE_PROPERTY_VARIABLES
- ADD_PROPERTY_VARIABLES
- SHADOW_PROPERTY_VARIABLES
- OUTLINE_PROPERTY_VARIABLES
- META_PROPERTY_VARIABLES
- DEPTH_PROPERTY_VARIABLES
- LILFUR_PROPERTY_VARIABLES
NeedsVariant: 0
Queue: 100
- Template: {fileID: 6842275873331601401, guid: 823374490a688b341abb700356c28a3a, type: 3}
Keywords:
- VERTEX_BASE_FUNCTIONS_EARLY
- VERTEX_ADD_FUNCTIONS_EARLY
- VERTEX_OUTLINE_FUNCTIONS_EARLY
- VERTEX_SHADOW_FUNCTIONS_EARLY
- VERTEX_META_FUNCTIONS_EARLY
- VERTEX_DEPTH_FUNCTIONS_EARLY
- VERTEX_LILFUR_FUNCTIONS_EARLY
NeedsVariant: 0
Queue: 100
- Template: {fileID: 1392161330846173143, guid: 823374490a688b341abb700356c28a3a, type: 3}
Keywords:
- VERTEX_MODS_PENETRATION
NeedsVariant: 0
Queue: 100
- Template: {fileID: 8098179717040799014, guid: 823374490a688b341abb700356c28a3a, type: 3}
Keywords:
- FRAGMENT_BASE_ALPHA_LATE
- FRAGMENT_ADD_ALPHA_LATE
- FRAGMENT_OUTLINE_ALPHA_LATE
- FRAGMENT_LILFUR_ALPHA_LATE
NeedsVariant: 0
Queue: 100
Functions: []
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a91ad61d74db3d4469cade1646abcad6
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,156 @@
#T#PoiBSProperties
//ifex _BSSEnabled!=1
[HideInInspector] m_start_BeatsaberOptions (" Beatsaber support--{reference_property:_BSSEnabled}", int) = 0
[ThryToggle(POIBS_ENABLE)][HideInInspector] _BSSEnabled ("Enable BeatSaber Module--{on_value_actions:[{value:1,actions:[{type:SET_PROPERTY,data:_BlendOpAlpha=0},{type:SET_PROPERTY,data:_SrcBlendAlpha=1},{type:SET_PROPERTY,data:_DstBlendAlpha=0}]}]}", int) = 0
[ThryRichLabel] _BSSSpacer1 ("<color=#ff0000ff>―――――――[IMPORTANT]―――――――</color>", int) = 0
[Helpbox(2, 2, 3)] _BSSHelpBox1("Toggling on BeatSaber support will set (Rendering > Blending > Advanced Alpha) to ''Add, One, Zero,'' as alpha blending operations cause visual issues.", int) = 0
[Helpbox(1, 2, 1)] _BSSHelpBox2 ("Glow is handled through the various emission options found in the shader!", int) = 0
[ThryRichLabel] _BSSSpacer2 ("<color=#ff0000ff>―――――――[IMPORTANT]―――――――</color>", int) = 0
[ThryRichLabel] _BSSSpacer3 ("", int) = 0
[HideInInspector]s_start_CCopt("Custom Colors:--{reference_property:_CustomColors}", int) = 1
[HideInInspector][MaterialToggle] _CustomColors ("", Float) = 0
[Helpbox(2, 2, 1)] _BSSHelpBox3 ("To properly support custom colors on assets like sabers when material locking. you MUST right click the ''Color & Alpha'' property at the top and tag it to ''Animated.''", int) = 0
[HideInInspector]s_end_CCopt("Custom Color Toggle:", int) = 1
//ifex _BSSBloomfog!=1
[HideInInspector] m_start_BeatsaberBloomFog ("Bloom & Height fog--{reference_property:_BSSBloomfog}", int) = 0
[ThryToggle(POIBS_BLOOMFOG)][HideInInspector] _BSSBloomfog ("Enable Bloomfog", int) = 0
[HideInInspector]s_start_fogOpt("Bloom fog settings:", int) = 1
_FogStartOffset ("Fog Start Offset:", Float) = 0
_FogScale ("Fog Scale:", Float) = 1
[HideInInspector]s_end_fogOpt("", int) = 1
[DoNotAnimate][ThryToggleUI(true)][HideInInspector] _BSSBloomfogType ("", int) = 1
//ifex _BSSBloomfogType!=1
[HideInInspector]s_start_heightFogOpt("Height fog settings:--{reference_property:_BSSBloomfogType}", int) = 1
_FogHeightOffset ("Height start offset:--{condition_enable:_BSSBloomfogType==1}", Float) = 0
_FogHeightScale ("Height Scale:--{condition_enable:_BSSBloomfogType==1}", Float) = 1
[HideInInspector]s_end_heightFogOpt("", int) = 1
//endex
[HideInInspector] m_end_BeatsaberBloomFog ("", int) = 0
//endex
[HideInInspector] m_end_BeatsaberOptions ("", Float) = 0
//endex
#T#PoiBSKeywords
//ifex _BSSEnabled!=1
#pragma shader_feature_local POIBS_ENABLE
//ifex _BSSBloomfog!=1
#pragma shader_feature_local POIBS_BLOOMFOG
//#pragma shader_feature_local BSSBLOOMFOGTYPE_HEIGHT
//endex
//endex
#T#PoiBSVariables
//ifex _BSSEnabled!=1
#ifdef POIBS_ENABLE
half _CustomColors;
//ifex _BSSBloomfog!=1
#ifdef POIBS_BLOOMFOG
float _FogStartOffset;
float _FogScale;
half _BSSBloomfogType;
//ifex _BSSBloomfogType!=1
float _FogHeightOffset;
float _FogHeightScale;
//endex
uniform float2 _CustomFogTextureToScreenRatio;
uniform float _StereoCameraEyeOffset;
uniform float _CustomFogOffset;
uniform float _CustomFogAttenuation;
uniform float _CustomFogHeightFogStartY;
uniform float _CustomFogHeightFogHeight;
uniform Texture2D _BloomPrePassTexture;
#endif
//endex
#endif
//endex
#T#PoiBSVertexReturn
//ifex _BSSEnabled!=1
#if defined(POIBS_ENABLE) && !defined(POI_PASS_MOTION_VECTORS)
//ifex _BSSBloomfog!=1
#ifdef POIBS_BLOOMFOG
o.bsFogScreenUV = GetFogCoord(PoiObjectToClipPos(v.vertex.rgb)).xy;
o.worldPos = mul(unity_ObjectToWorld, v.vertex);
#endif
//endex
#endif
//endex
#T#PoiBSVertexFunctions
//ifex _BSSEnabled!=1
#ifdef POIBS_ENABLE
//ifex _BSSBloomfog!=1
#ifdef POIBS_BLOOMFOG
inline float4 GetFogCoord(float4 clipPos)
{
float4 screenPos = ComputeNonStereoScreenPos(clipPos);
float2 screenPosNormalized = screenPos.xy / screenPos.w;
float eyeOffset = (unity_StereoEyeIndex * (_StereoCameraEyeOffset * 2)) + - _StereoCameraEyeOffset;
return float4(
((eyeOffset +screenPosNormalized.x) + - 0.5) * _CustomFogTextureToScreenRatio.x + 0.5,
(screenPosNormalized.y + - 0.5) * _CustomFogTextureToScreenRatio.y + 0.5
,clipPos.z,clipPos.w);
}
//ifex _BSSBloomfogType!=1
inline float GetHeightFogIntensity(float3 worldPos, float fogHeightOffset, float fogHeightScale)
{
half heightFogIntensity = _CustomFogHeightFogHeight + _CustomFogHeightFogStartY;
heightFogIntensity = ((worldPos.y * fogHeightScale) + fogHeightOffset) + - heightFogIntensity;
heightFogIntensity = heightFogIntensity / _CustomFogHeightFogHeight;
heightFogIntensity = clamp(heightFogIntensity, 0, 1);
return ((-heightFogIntensity * 2) + 3) * (heightFogIntensity * heightFogIntensity);
}
//endex
inline float GetFogIntensity(float3 distance, float fogStartOffset, float fogScale)
{
half fogIntensity = max(dot(distance, distance) + - fogStartOffset, 0);
fogIntensity = max((fogIntensity * fogScale) + - _CustomFogOffset, 0);
fogIntensity = 1 / ((fogIntensity * _CustomFogAttenuation) + 1);
return -fogIntensity;
}
#endif
//endex
#endif
//endex
#T#PoiBSAlphaRewrite
//ifex _BSSEnabled!=1
#ifdef POIBS_ENABLE
poiFragData.finalColor += poiFragData.emission * poiMods.globalEmission;
poiFragData.alpha = poiFragData.alpha * poiFragData.emission.z;
poiFragData.emission = 0;
//ifex _BSSBloomfog!=1
#ifdef POIBS_BLOOMFOG
float3 fogDistance = i.worldPos - getCameraPosition(false);
float4 fogCol = -float4(poiFragData.finalColor, 1) + POI2D_SAMPLER(_BloomPrePassTexture, _MainTex, i.bsFogScreenUV);
fogCol.a = -poiFragData.alpha;
//ifex _BSSBloomfogType!=1
UNITY_BRANCH
if (_BSSBloomfogType >= 0.5)
{
poiFragData.finalColor = poiFragData.finalColor + (((GetHeightFogIntensity(i.worldPos, _FogHeightOffset, _FogHeightScale) * GetFogIntensity(fogDistance, _FogStartOffset, _FogScale)) + 1) * fogCol.rgb);
poiFragData.alpha = poiFragData.alpha + (((GetHeightFogIntensity(i.worldPos, _FogHeightOffset, _FogHeightScale) * GetFogIntensity(fogDistance, _FogStartOffset, _FogScale)) + 1) * fogCol.a);
}
//endex
//ifex _BSSBloomfogType!=0
UNITY_BRANCH
if (_BSSBloomfogType < 0.5)
{
poiFragData.finalColor = poiFragData.finalColor + ((GetFogIntensity(fogDistance, _FogStartOffset, _FogScale) + 1) * fogCol.rgb);
poiFragData.alpha = poiFragData.alpha + ((GetFogIntensity(fogDistance, _FogStartOffset, _FogScale) + 1) * fogCol.a);
}
//endex
#endif
//endex
#endif
//endex
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 823374490a688b341abb700356c28a3a
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: b8e1b7bf6f1d9674dbe75fe157540c41, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b945b76295c0acf47ae03905a37bc00a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a2aa50240ba2e4643810af2d587a966b
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,73 @@
%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: 1039f25740a92fc4292bb1d94d07ad19, type: 3}
m_Name: VRLM_PoiTruchet
m_EditorClassIdentifier:
Id: PoiTruchet
Name:
Version: 1.0
Author: Poiyomi
Description:
AllowDuplicates: 0
ForceDuplicateLogic: 0
EnableProperties: []
Properties: []
ModuleDependencies: []
IncompatibleWith: []
Templates:
- Template: {fileID: 5324126284433022680, guid: e80027487f186264198feb58a73f8e1d, type: 3}
Keywords:
- SPECIALFX_PROPERTIES
NeedsVariant: 0
Queue: 100
- Template: {fileID: 1693693689188269537, guid: e80027487f186264198feb58a73f8e1d, type: 3}
Keywords:
- BASE_PASS_KEYWORDS
- ADD_PASS_KEYWORDS
- META_PASS_KEYWORDS
- LILFUR_PASS_KEYWORDS
NeedsVariant: 0
Queue: 100
- Template: {fileID: 1193241295435783745, guid: e80027487f186264198feb58a73f8e1d, type: 3}
Keywords:
- BASE_PROPERTY_VARIABLES
- ADD_PROPERTY_VARIABLES
- META_PROPERTY_VARIABLES
- LILFUR_PROPERTY_VARIABLES
NeedsVariant: 0
Queue: 100
- Template: {fileID: -2565709202980188124, guid: e80027487f186264198feb58a73f8e1d, type: 3}
Keywords:
- BASE_PROPERTY_VARIABLES_EXPOSED
- ADD_PROPERTY_VARIABLES_EXPOSED
- META_PROPERTY_VARIABLES_EXPOSED
- LILFUR_PROPERTY_VARIABLES_EXPOSED
NeedsVariant: 0
Queue: 100
- Template: {fileID: -8618466880914143172, guid: e80027487f186264198feb58a73f8e1d, type: 3}
Keywords:
- FRAGMENT_BASE_FUNCTIONS
- FRAGMENT_ADD_FUNCTIONS
- FRAGMENT_META_FUNCTIONS
- FRAGMENT_LILFUR_FUNCTIONS
NeedsVariant: 0
Queue: 100
- Template: {fileID: 6458864411352228851, guid: e80027487f186264198feb58a73f8e1d, type: 3}
Keywords:
- FRAGMENT_BASE_COLOR
- FRAGMENT_ADD_COLOR
- FRAGMENT_META_COLOR
- FRAGMENT_LILFUR_COLOR
NeedsVariant: 0
Queue: 100
Functions: []
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c4fd319e47cec1c45a221ca15c8291fe
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,265 @@
#T#PoiTruchetProperties
//ifex _EnableTruchet!=1
[HideInInspector] m_start_truchet (" Truchet--{reference_property:_EnableTruchet,button_help:{text:Tutorial,action:{type:URL,data:https://www.poiyomi.com/special-fx/truchet},hover:Documentation}}", Float) = 0
[HideInInspector][ThryToggle(POI_TRUCHET)] _EnableTruchet ("Enable Truchet", Float) = 0
[ThryWideEnum(UV0, 0, UV1, 1, UV2, 2, UV3, 3, Panosphere, 4, World Pos, 5, Local Pos, 8, Polar UV, 6, Distorted UV, 7, Matcap, 9, Screen Space, 10)] _TruchetUV ("UV", Int) = 0
[ThryWideEnum(Replace, 0, Darken, 1, Multiply, 2, Lighten, 5, Screen, 6, Subtract, 7, Add, 8, Overlay, 9, Mixed, 20)]_TruchetBlendType ("Blending", Range(0, 1)) = 0
_TruchetColor ("Color--{reference_property:_TruchetColorThemeIndex}", Color) = (1, 1, 1, 1)
[ThryHideInInspector][ThryWideEnum(Off, 0, Theme Color 0, 1, Theme Color 1, 2, Theme Color 2, 3, Theme Color 3, 4, ColorChord 0, 5, ColorChord 1, 6, ColorChord 2, 7, ColorChord 3, 8, AL Theme 0, 9, AL Theme 1, 10, AL Theme 2, 11, AL Theme 3, 12)] _TruchetColorThemeIndex ("", Int) = 0
[sRGBWarning(true)]_TruchetTex ("TruchetTex--{reference_properties:[_TruchetTexPan]}", 2D) = "white" { }
[ThryHideInInspector][Vector2]_TruchetTexPan ("Panning", Vector) = (0, 0, 0, 0)
_TruchetEmissionStrength ("Emission Strength", Range(0, 20)) = 0
[HideInInspector] s_start_TruchetPattern ("Pattern--{persistent_expand:true,default_expand:true}", Float) = 1
[VectorLabel(PanX, PanY, OffX, OffY)]_TruchetPanOffset ("Pan & Offset", Vector) = (0, 0, 0, 0)
_TruchetDensity ("Density", Float) = 10
_TruchetThiccness ("Thiccness", Range(0, .5)) = .1
_TruchetEdgeSharpness ("Edge Sharpness", Range(0, 1)) = 1
[HideInInspector] s_end_TruchetPattern ("", Float) = 0
[HideInInspector] s_start_TruchetAlpha ("Alpha--{persistent_expand:true,default_expand:true}", Float) = 1
_TruchetAlpha ("Alpha", Range(0, 1)) = 1
[ToggleUI]_TruchetOverrideAlpha ("Override Alpha", Float) = 0
[HideInInspector] s_end_TruchetAlpha ("", Float) = 0
[HideInInspector] s_start_TruchetMasking ("Masking--{persistent_expand:true,default_expand:false}", Float) = 0
[sRGBWarning]_TruchetMask ("Truchet Mask--{reference_properties:[_TruchetMaskPan, _TruchetMaskUV, _TruchetMaskChannel, _TruchetMaskInvert, _TruchetMaskIntensity, _TruchetMaskGlobalMask, _TruchetMaskGlobalMaskBlendType]}", 2D) = "white" { }
[ThryHideInInspector][Vector2]_TruchetMaskPan ("Panning", Vector) = (0, 0, 0, 0)
[ThryHideInInspector][ThryWideEnum(UV0, 0, UV1, 1, UV2, 2, UV3, 3, Panosphere, 4, World Pos, 5, Local Pos, 8, Polar UV, 6, Distorted UV, 7, Matcap, 9, Screen Space, 10)] _TruchetMaskUV ("UV", Int) = 0
[ThryHideInInspector][Enum(R, 0, G, 1, B, 2, A, 3)]_TruchetMaskChannel ("Channel", Float) = 0
[ThryHideInInspector][ToggleUI]_TruchetMaskInvert ("Invert", Float) = 0
[ThryHideInInspector][ThryWideEnum(Off, 0, 1R, 1, 1G, 2, 1B, 3, 1A, 4, 2R, 5, 2G, 6, 2B, 7, 2A, 8, 3R, 9, 3G, 10, 3B, 11, 3A, 12, 4R, 13, 4G, 14, 4B, 15, 4A, 16)] _TruchetMaskGlobalMask ("Global Mask--{reference_property:_TruchetMaskGlobalMaskBlendType}", Int) = 0
[ThryHideInInspector][ThryWideEnum(Add, 7, Subtract, 1, Multiply, 2, Divide, 3, Min, 4, Max, 5, Average, 6, Replace, 0)]_TruchetMaskGlobalMaskBlendType ("Blending", Range(0, 1)) = 2
[ThryHideInInspector]_TruchetMaskIntensity ("Intensity", Range(0, 1)) = 1
[HideInInspector] s_end_TruchetMasking ("", Float) = 0
[HideInInspector] s_start_TruchetAudioLink ("Audio Link ♫--{ condition_showS:_EnableAudioLink==1}", Float) = 0
[ToggleUI]_TruchetHideWhenNoAL ("Hide When No AL", Float) = 0
// AL Emission
[HideInInspector] ss_start_TruchetALEmission ("AL Emission--{reference_property:_TruchetALEmissionToggle,persistent_expand:true,default_expand:false}", Float) = 0
[ThryHideInInspector][ThryToggleUI(true)] _TruchetALEmissionToggle ("Toggle", Float) = 0
[Enum(Bass, 0, Low Mid, 1, High Mid, 2, Treble, 3, Volume, 4)] _TruchetALEmissionBand ("Emission Band", Int) = 0
[VectorLabel(Min, Max)] _TruchetALEmission ("Emission Add", Vector) = (0, 0, 0, 0)
[HideInInspector] ss_end_TruchetALEmission ("AL Emission", Float) = 0
// AL Alpha
[HideInInspector] ss_start_TruchetALAlpha ("AL Alpha--{reference_property:_TruchetALAlphaToggle,persistent_expand:true,default_expand:false}", Float) = 0
[ThryHideInInspector][ThryToggleUI(true)] _TruchetALAlphaToggle ("Toggle", Float) = 0
[Enum(Bass, 0, Low Mid, 1, High Mid, 2, Treble, 3, Volume, 4)] _TruchetALAlphaBand ("Alpha Band", Int) = 0
[VectorLabel(Min, Max)] _TruchetALAlpha ("Alpha Multiply", Vector) = (0, 0, 0, 0)
[HideInInspector] ss_end_TruchetALAlpha ("AL Alpha", Float) = 0
// Chrono Pan
[HideInInspector] ss_start_TruchetChronoPan ("Chrono Pan--{reference_property:_TruchetChronoPanToggle,persistent_expand:true,default_expand:false}", Float) = 0
[ThryHideInInspector][ThryToggleUI(true)] _TruchetChronoPanToggle ("Toggle", Float) = 0
[Enum(Bass, 0, Low Mid, 1, High Mid, 2, Treble, 3, Volume, 4)] _TruchetChronoPanBand ("Band", Int) = 0
[ThryWideEnum(Motion increases as intensity of band increases, 0, Above but Smooth, 1, Motion moves back and forth as a function of intensity, 2, Above but Smoooth, 3, Fixed speed increase when the band is dark Stationary when light, 4, Above but Smooooth, 5, Fixed speed increase when the band is dark Fixed speed decrease when light, 6, Above but Smoooooth, 7)]_TruchetChronoPanType ("Chrono Motion Type", Int) = 0
[Vector2]_TruchetChronoPanSpeed ("Pan Speed", Vector) = (0, 0, 0, 0)
[HideInInspector] ss_end_TruchetChronoPan ("Chrono Pan", Float) = 0
// Color Override
[HideInInspector] ss_start_TruchetColorOverride ("Color Override--{reference_property:_TruchetALColorOverrideEnabled,persistent_expand:true,default_expand:false}", Float) = 0
[ThryHideInInspector][ToggleUI] _TruchetALColorOverrideEnabled ("Toggle", Float) = 0
_TruchetALColorOverride ("Color", Color) = (1,1,1,1)
[ThryWideEnum(Off, 0, Theme Color 0, 1, Theme Color 1, 2, Theme Color 2, 3, Theme Color 3, 4, ColorChord 0, 5, ColorChord 1, 6, ColorChord 2, 7, ColorChord 3, 8, AL Theme 0, 9, AL Theme 1, 10, AL Theme 2, 11, AL Theme 3, 12)] _TruchetALColorOverrideThemeIndex ("Theme Color", Int) = 0
[Enum(Bass, 0, Low Mid, 1, High Mid, 2, Treble, 3, Volume, 4)] _TruchetALColorOverrideBand ("Color Override Band", Int) = 0
[Ramp4(normalized)]_TruchetALColorOverrideRamp ("Color Override Ramp", Vector) = (0, 1, 0, 1)
[HideInInspector] ss_end_TruchetColorOverride ("Color Override", Float) = 0
[HideInInspector] s_end_TruchetAudioLink ("Audio Link", Float) = 0
[HideInInspector] m_end_truchet ("", Float) = 0
//endex
#T#PoiTruchetKeywords
//ifex _EnableTruchet!=1
#pragma shader_feature_local_fragment POI_TRUCHET
//endex
#T#PoiTruchetVariablesExposed
//ifex _EnableTruchet!=1
#ifdef POI_TRUCHET
float _TruchetUV;
float _TruchetBlendType;
float _TruchetDensity;
half _TruchetThiccness;
half4 _TruchetColor;
float _TruchetColorThemeIndex;
float4 _TruchetTex_ST;
float4 _TruchetTexPan;
float4 _TruchetPanOffset;
half _TruchetAlpha;
half _TruchetEdgeSharpness;
half _TruchetEmissionStrength;
float _TruchetHideWhenNoAL;
float4 _TruchetMask_ST;
float4 _TruchetMaskPan;
float _TruchetMaskUV;
float _TruchetMaskChannel;
half _TruchetMaskInvert;
half _TruchetMaskGlobalMask;
float _TruchetMaskGlobalMaskBlendType;
half _TruchetMaskIntensity;
half _TruchetOverrideAlpha;
//ifex _EnableAudioLink==0
#ifdef POI_AUDIOLINK
half _TruchetALEmissionToggle;
float _TruchetALEmissionBand;
half4 _TruchetALEmission;
half _TruchetALAlphaToggle;
float _TruchetALAlphaBand;
half4 _TruchetALAlpha;
float _TruchetChronoPanToggle;
float _TruchetChronoPanType;
float4 _TruchetChronoPanSpeed;
float _TruchetChronoPanBand;
half _TruchetALColorOverrideEnabled;
half4 _TruchetALColorOverride;
float _TruchetALColorOverrideThemeIndex;
float _TruchetALColorOverrideBand;
half4 _TruchetALColorOverrideRamp;
#endif
//endex
#endif
//endex
#T#PoiTruchetVariables
//ifex _EnableTruchet!=1
#ifdef POI_TRUCHET
#if defined(PROP_TRUCHETTEX) || !defined(OPTIMIZER_ENABLED)
Texture2D _TruchetTex;
#endif
#if defined(PROP_TRUCHETMASK) || !defined(OPTIMIZER_ENABLED)
Texture2D _TruchetMask;
#endif
#endif
//endex
#T#PoiTruchetFunctions
//ifex _EnableTruchet!=1
#ifdef POI_TRUCHET
float Hash21(float2 value)
{
value = frac(value * float2(923.34, 567.345));
value += dot(value, value + 34.23);
return frac(value.x * value.y);
}
void applyTruchet(inout PoiFragData poiFragData, in PoiMesh poiMesh, in PoiMods poiMods)
{
float2 uv = poiMesh.uv[_TruchetUV] * _TruchetDensity + _TruchetPanOffset.xy * POI_TIME.x + _TruchetPanOffset.zw;
float2 gridUV = frac(uv) - .5;
float2 id = floor(uv);
float2 dx = ddx(uv);
float2 dy = ddy(uv);
// Random # 0-1
float randomID = Hash21(id);
if (randomID < .5)
{
gridUV.x *= -1;
}
half mask = 0;
float distance = 0;
float side = sign(gridUV.x + gridUV.y + .001);
float checker = glsl_mod(id.x + id.y, 2.0) * 2 - 1;
float2 pathUV = float2(0, 0);
pathUV = gridUV - side * 0.5;
distance = length(pathUV);
float fwidthDistance = fwidth(abs(distance - 0.5)) + 0.0001; // Add epsilon to prevent division by zero
mask = saturate((_TruchetThiccness - abs(distance - 0.5)) / fwidthDistance);
mask *= smoothstep(0, 1 - _TruchetEdgeSharpness, (_TruchetThiccness - abs(distance - 0.5)));
#if defined(PROP_TRUCHETMASK) || !defined(OPTIMIZER_ENABLED)
half maskTex = UNITY_SAMPLE_TEX2D_SAMPLER(_TruchetMask, _MainTex, poiUV(poiMesh.uv[_TruchetMaskUV], _TruchetMask_ST) + POI_TIME.x * _TruchetMaskPan)[_TruchetMaskChannel];
#else
half maskTex = 1;
#endif
maskTex = saturate(maskTex * _TruchetMaskIntensity);
if (_TruchetMaskInvert >= 0.5)
{
maskTex = 1 - maskTex;
}
if (_TruchetMaskGlobalMask > 0)
{
maskTex = maskBlend(maskTex, poiMods.globalMask[_TruchetMaskGlobalMask - 1], _TruchetMaskGlobalMaskBlendType);
}
mask *= maskTex;
// -pi to pi
float angle = atan2(pathUV.x, pathUV.y);
pathUV.x = checker * angle / 1.57;
pathUV.y = (distance - (.5 - _TruchetThiccness)) / (2 * _TruchetThiccness);
if (randomID < .5 ^ checker > 0)
{
pathUV.y = 1 - pathUV.y;
}
half emission = _TruchetEmissionStrength;
float2 uvOffset = float2(0, 0);
//ifex _EnableAudioLink==0
#ifdef POI_AUDIOLINK
if (poiMods.audioLinkAvailable)
{
if (_TruchetChronoPanToggle >= 0.5)
{
uvOffset = AudioLinkGetChronoTime(_TruchetChronoPanType, _TruchetChronoPanBand) * _TruchetChronoPanSpeed.xy;
}
if (_TruchetALEmissionToggle >= 0.5)
{
emission += lerp(_TruchetALEmission.x, _TruchetALEmission.y, poiMods.audioLink[_TruchetALEmissionBand]);
}
if (_TruchetALAlphaToggle >= 0.5)
{
mask = saturate(mask * lerp(_TruchetALAlpha.x, _TruchetALAlpha.y, poiMods.audioLink[_TruchetALAlphaBand]));
}
}
if (!poiMods.audioLinkAvailable && _TruchetHideWhenNoAL >= 0.5)
{
mask = 0;
}
#endif
//endex
#if defined(PROP_TRUCHETTEX) || !defined(OPTIMIZER_ENABLED)
float4 TruchetTex = POI2D_SAMPLER_PANGRAD(_TruchetTex, _MainTex, poiUV(pathUV, _TruchetTex_ST) + uvOffset, _TruchetTexPan.xy, dx, dy);
#else
float4 TruchetTex = 1;
#endif
half3 truchetColor = poiThemeColor(poiMods, _TruchetColor.rgb, _TruchetColorThemeIndex);
//ifex _EnableAudioLink==0
#ifdef POI_AUDIOLINK
if (poiMods.audioLinkAvailable && _TruchetALColorOverrideEnabled >= 0.5)
{
half alColorOverrideIntensity = poiMods.audioLink[_TruchetALColorOverrideBand];
half alColorOverrideBlend = evalRamp4(alColorOverrideIntensity, _TruchetALColorOverrideRamp);
if(alColorOverrideBlend > 0)
{
half3 alOverrideColor = _TruchetALColorOverride.rgb;
if(_TruchetALColorOverrideThemeIndex > 0)
{
alOverrideColor = poiThemeColor(poiMods, alOverrideColor, _TruchetALColorOverrideThemeIndex);
}
truchetColor = lerp(truchetColor, alOverrideColor, alColorOverrideBlend);
}
}
#endif
//endex
poiFragData.emission += lerp(0, TruchetTex.rgb * truchetColor, min(mask, TruchetTex.a) * emission * _TruchetAlpha);
poiFragData.baseColor.rgb = lerp(poiFragData.baseColor.rgb, customBlend(poiFragData.baseColor.rgb, TruchetTex.rgb * truchetColor, _TruchetBlendType), min(mask, TruchetTex.a) * _TruchetAlpha);
poiFragData.alpha *= lerp(1, min(mask, TruchetTex.a) * _TruchetAlpha, _TruchetOverrideAlpha);
}
#endif
//endex
#T#PoiTruchetFunctionCalls
//ifex _EnableTruchet!=1
#ifdef POI_TRUCHET
applyTruchet(poiFragData, poiMesh, poiMods);
#K#TRUCHET_HOOK
#endif
//endex
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: e80027487f186264198feb58a73f8e1d
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: b8e1b7bf6f1d9674dbe75fe157540c41, type: 3}
@@ -0,0 +1,32 @@
%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: 1039f25740a92fc4292bb1d94d07ad19, type: 3}
m_Name: VRLM_ExperimentalCategory
m_EditorClassIdentifier:
Id: PoiExperimentalCategory
Name: Poi Experimental Category
Version:
Author: poiyomi
Description:
EnableProperties: []
Properties: []
ModuleDependencies: []
IncompatibleWith: []
Templates:
- Template: {fileID: -544282384758852595, guid: 300b75a2c33f1ec4994e5d2922149142,
type: 3}
Keywords:
- EXTRAS_PROPERTIES
NeedsVariant: 0
Queue: 100
Functions: []
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5c017bba6471890428411520ae5d90f4
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,2 @@
[HideInInspector] m_experimentalCategory ("Experimental", Float) = 0
#K#PoiExperimentalProperties
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 300b75a2c33f1ec4994e5d2922149142
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 836627ab161102f4caef6d73aab2391d, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1786fc7b81351a7419e51b1e58501ff4
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,57 @@
%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: 1039f25740a92fc4292bb1d94d07ad19, type: 3}
m_Name: VRLM_LTCGI
m_EditorClassIdentifier:
Id: LTCGI
Name: LTCGI
Version: 1.0
Author: Poiyomi
Description:
AllowDuplicates: 0
ForceDuplicateLogic: 0
EnableProperties: []
Properties: []
ModuleDependencies: []
IncompatibleWith: []
Templates:
- Template: {fileID: 3286027707361779788, guid: 7df5bb510c95d184eb96a45d91613ad0, type: 3}
Keywords:
- LIGHTING_PROPERTIES
NeedsVariant: 0
Queue: 101
- Template: {fileID: 8820534607195182900, guid: 7df5bb510c95d184eb96a45d91613ad0, type: 3}
Keywords:
- BASE_PASS_KEYWORDS
- LILFUR_PASS_KEYWORDS
NeedsVariant: 0
Queue: 100
- Template: {fileID: -7468558919484791411, guid: 7df5bb510c95d184eb96a45d91613ad0, type: 3}
Keywords:
- BASE_PROPERTY_VARIABLES_EXPOSED
- LILFUR_PROPERTY_VARIABLES_EXPOSED
NeedsVariant: 0
Queue: 100
- Template: {fileID: -6202294694914249951, guid: 7df5bb510c95d184eb96a45d91613ad0, type: 3}
Keywords:
- FRAGMENT_BASE_FUNCTIONS
- FRAGMENT_LILFUR_FUNCTIONS
NeedsVariant: 0
Queue: 100
- Template: {fileID: 7344898688239203700, guid: 7df5bb510c95d184eb96a45d91613ad0, type: 3}
Keywords:
- FRAGMENT_BASE_LIGHTING
- FRAGMENT_LILFUR_LIGHTING
NeedsVariant: 0
Queue: 100
Functions: []
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: bc1e9f74ebdbaaf439f73301d59c16aa
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 7df5bb510c95d184eb96a45d91613ad0
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: b8e1b7bf6f1d9674dbe75fe157540c41, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: bab7340c9152ab34683a0d5100887f14
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,116 @@
%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: 1039f25740a92fc4292bb1d94d07ad19, type: 3}
m_Name: VRLM_AlphaOptions
m_EditorClassIdentifier:
Id: PoiAlphaOptions
Name: Alpha Options
Version: 1.0
Author: Poiyomi
Description:
AllowDuplicates: 0
ForceDuplicateLogic: 0
EnableProperties: []
Properties: []
ModuleDependencies: []
IncompatibleWith: []
Templates:
- Template: {fileID: 257055857157848321, guid: 6c6bcf2ea34623741a36552a6c678ea3, type: 3}
Keywords:
- MAIN_PROPERTIES
NeedsVariant: 0
Queue: 99
- Template: {fileID: 7896923665127700555, guid: 6c6bcf2ea34623741a36552a6c678ea3, type: 3}
Keywords:
- DEPTH_PASS_KEYWORDS
- OUTLINE_PASS_KEYWORDS
- BASE_PASS_KEYWORDS
- ADD_PASS_KEYWORDS
- META_PASS_KEYWORDS
- SHADOW_PASS_KEYWORDS
- LILFUR_PASS_KEYWORDS
NeedsVariant: 0
Queue: 0
- Template: {fileID: -1719228656036149803, guid: 6c6bcf2ea34623741a36552a6c678ea3, type: 3}
Keywords:
- BASE_PROPERTY_VARIABLES_EXPOSED
- ADD_PROPERTY_VARIABLES_EXPOSED
- SHADOW_PROPERTY_VARIABLES_EXPOSED
- META_PROPERTY_VARIABLES_EXPOSED
- OUTLINE_PROPERTY_VARIABLES_EXPOSED
- DEPTH_PROPERTY_VARIABLES_EXPOSED
- MOTION_VECTORS_PROPERTY_VARIABLES_EXPOSED
- LILFUR_PROPERTY_VARIABLES_EXPOSED
NeedsVariant: 0
Queue: 0
- Template: {fileID: 6382579130851865620, guid: 6c6bcf2ea34623741a36552a6c678ea3, type: 3}
Keywords:
- FRAGMENT_BASE_FUNCTIONS
- FRAGMENT_ADD_FUNCTIONS
- FRAGMENT_SHADOW_FUNCTIONS
- FRAGMENT_META_FUNCTIONS
- FRAGMENT_OUTLINE_FUNCTIONS
- FRAGMENT_DEPTH_FUNCTIONS
- FRAGMENT_MOTION_VECTORS_FUNCTIONS
- FRAGMENT_LILFUR_FUNCTIONS
NeedsVariant: 0
Queue: 0
- Template: {fileID: 7046177447067330403, guid: 6c6bcf2ea34623741a36552a6c678ea3, type: 3}
Keywords:
- FRAGMENT_BASE_COLOR
- FRAGMENT_ADD_COLOR
- FRAGMENT_SHADOW_COLOR
- FRAGMENT_META_COLOR
- FRAGMENT_OUTLINE_COLOR
- FRAGMENT_DEPTH_COLOR
- FRAGMENT_MOTION_VECTORS_COLOR
- FRAGMENT_LILFUR_COLOR
NeedsVariant: 0
Queue: 0
- Template: {fileID: -9026782082732213869, guid: 6c6bcf2ea34623741a36552a6c678ea3, type: 3}
Keywords:
- FRAGMENT_BASE_RETURN
- FRAGMENT_ADD_RETURN
- FRAGMENT_SHADOW_RETURN
- FRAGMENT_META_RETURN
- FRAGMENT_OUTLINE_RETURN
- FRAGMENT_DEPTH_RETURN
- FRAGMENT_MOTION_VECTORS_RETURN
- FRAGMENT_LILFUR_RETURN
NeedsVariant: 0
Queue: 0
- Template: {fileID: 4379745813462220173, guid: 6c6bcf2ea34623741a36552a6c678ea3, type: 3}
Keywords:
- FRAGMENT_BASE_RETURN
- FRAGMENT_ADD_RETURN
- FRAGMENT_SHADOW_RETURN
- FRAGMENT_META_RETURN
- FRAGMENT_OUTLINE_RETURN
- FRAGMENT_DEPTH_RETURN
- FRAGMENT_MOTION_VECTORS_RETURN
- FRAGMENT_LILFUR_RETURN
NeedsVariant: 0
Queue: 0
- Template: {fileID: 4466012173581799560, guid: 6c6bcf2ea34623741a36552a6c678ea3, type: 3}
Keywords:
- FRAGMENT_BASE_RETURN
- FRAGMENT_ADD_RETURN
- FRAGMENT_SHADOW_RETURN
- FRAGMENT_META_RETURN
- FRAGMENT_OUTLINE_RETURN
- FRAGMENT_DEPTH_RETURN
- FRAGMENT_MOTION_VECTORS_RETURN
- FRAGMENT_LILFUR_RETURN
NeedsVariant: 0
Queue: 0
Functions: []
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 691861f6a28e64048b4d465b44e7dae2
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,296 @@
#T#PoiAlphaOptionsProperties
[HideInInspector] m_start_Alpha ("Alpha Options--{button_help:{text:Tutorial,action:{type:URL,data:https://www.poiyomi.com/color-and-normals/alpha-options},hover:Documentation}}", Float) = 0
[ToggleUI]_AlphaForceOpaque ("Force Opaque", Float) = 1
_AlphaMod ("Alpha Mod", Range(-1, 1)) = 0.0
[ThryWideEnum(Off, 0, 1R, 1, 1G, 2, 1B, 3, 1A, 4, 2R, 5, 2G, 6, 2B, 7, 2A, 8, 3R, 9, 3G, 10, 3B, 11, 3A, 12, 4R, 13, 4G, 14, 4B, 15, 4A, 16)] _AlphaGlobalMask ("Global Mask--{reference_property:_AlphaGlobalMaskBlendType}", Int) = 0
[ThryHideInInspector][ThryWideEnum(Add, 7, Subtract, 1, Multiply, 2, Divide, 3, Min, 4, Max, 5, Average, 6, Replace, 0)] _AlphaGlobalMaskBlendType ("Blending", Int) = 2
//ifex _AlphaToCoverage==0 && isNotAnimated(_AlphaToCoverage) && isNotAnimated(_AlphaSharpenedA2C)
[HideInInspector] s_start_AlphaToCoverage ("Alpha To Coverage--{reference_property:_AlphaToCoverage,default_expand:false}", Float) = 0
[ThryHideInInspector][ToggleUI] _AlphaToCoverage ("A2CToggle", Float) = 0
[ToggleUI]_AlphaSharpenedA2C ("Sharpened A2C", Float) = 0
_AlphaMipScale ("Mip Level Alpha Scale", Range(0, 1)) = 0.25
[HideInInspector] s_end_AlphaToCoverage ("Alpha To Coverage", Float) = 0
//endex
//ifex _AlphaDithering==0 && isNotAnimated(_AlphaDithering)
[HideInInspector] s_start_AlphaDithering ("Dithering--{reference_property:_AlphaDithering,default_expand:false}", Float) = 0
[ThryHideInInspector][ToggleUI] _AlphaDithering ("Dithering", Float) = 0
_AlphaDitherGradient ("Dither Gradient", Range(0, 1)) = .1
_AlphaDitherBias ("Dither Bias", Range(0, 1)) = 0
[HideInInspector] s_end_AlphaDithering ("Alpha To Coverage", Float) = 0
//endex
//ifex _AlphaDistanceFade==0 && isNotAnimated(_AlphaDistanceFade)
[HideInInspector] s_start_AlphaDistanceFade ("Distance Alpha / Distance Fade--{reference_property:_AlphaDistanceFade,persistent_expand:true,default_expand:false}", Float) = 0
[ThryHideInInspector][ToggleUI] _AlphaDistanceFade ("Distance Alpha", Float) = 0
[Enum(Object Position, 0, Pixel Position, 1)] _AlphaDistanceFadeType ("Pos To Use", Int) = 1
_AlphaDistanceFadeMinAlpha ("Min Distance Alpha", Range(0, 1)) = 0
_AlphaDistanceFadeMaxAlpha ("Max Distance Alpha", Range(0, 1)) = 1
_AlphaDistanceFadeMin ("Min Distance", Float) = 0
_AlphaDistanceFadeMax ("Max Distance", Float) = 0
[ThryWideEnum(Off, 0, 1R, 1, 1G, 2, 1B, 3, 1A, 4, 2R, 5, 2G, 6, 2B, 7, 2A, 8, 3R, 9, 3G, 10, 3B, 11, 3A, 12, 4R, 13, 4G, 14, 4B, 15, 4A, 16)] _AlphaDistanceFadeGlobalMask ("Global Mask", Int) = 0
[HideInInspector] s_end_AlphaDistanceFade ("Distance Alpha / Distance Fade", Float) = 0
//endex
//ifex _AlphaFresnel==0 && isNotAnimated(_AlphaFresnel)
[HideInInspector] s_start_AlphaFresnel ("Fresnel Alpha--{reference_property:_AlphaFresnel,persistent_expand:true,default_expand:false}", Float) = 0
[ThryHideInInspector][ToggleUI] _AlphaFresnel ("Fresnel Alpha", Float) = 0
_AlphaFresnelAlpha ("Intensity", Range(0, 1)) = 0
_AlphaFresnelSharpness ("Sharpness", Range(0, 1)) = .5
_AlphaFresnelWidth ("Width", Range(0, 1)) = .5
[ToggleUI]_AlphaFresnelInvert ("Invert", Float) = 0
[ThryWideEnum(Off, 0, 1R, 1, 1G, 2, 1B, 3, 1A, 4, 2R, 5, 2G, 6, 2B, 7, 2A, 8, 3R, 9, 3G, 10, 3B, 11, 3A, 12, 4R, 13, 4G, 14, 4B, 15, 4A, 16)] _AlphaFresnelGlobalMask ("Global Mask", Int) = 0
[HideInInspector] s_end_AlphaFresnel ("Fresnel Alpha", Float) = 0
//endex
//ifex _AlphaAngular==0 && isNotAnimated(_AlphaAngular)
[HideInInspector] s_start_AlphaAngular ("Angular Alpha--{reference_property:_AlphaAngular,persistent_expand:true,default_expand:false}", Float) = 0
[ThryHideInInspector][ToggleUI] _AlphaAngular ("Angular Alpha", Float) = 0
[Enum(Camera Face Model, 0, Model Face Camera, 1, Face Each Other, 2)] _AngleType ("Angle Type", Int) = 0
[Enum(Model, 0, Vertex, 1)] _AngleCompareTo ("Model or Vert Positon", Int) = 0
[Vector3]_AngleForwardDirection ("Forward Direction", Vector) = (0, 0, 1)
_CameraAngleMin ("Camera Angle Min", Range(0, 180)) = 45
_CameraAngleMax ("Camera Angle Max", Range(0, 180)) = 90
_ModelAngleMin ("Model Angle Min", Range(0, 180)) = 45
_ModelAngleMax ("Model Angle Max", Range(0, 180)) = 90
_AngleMinAlpha ("Min Alpha", Range(0, 1)) = 0
[ThryWideEnum(Off, 0, 1R, 1, 1G, 2, 1B, 3, 1A, 4, 2R, 5, 2G, 6, 2B, 7, 2A, 8, 3R, 9, 3G, 10, 3B, 11, 3A, 12, 4R, 13, 4G, 14, 4B, 15, 4A, 16)] _AlphaAngularGlobalMask ("Global Mask", Int) = 0
[HideInInspector] s_end_AlphaAngular ("Name", Float) = 0
//endex
//ifex _AlphaAudioLinkEnabled==0 && isNotAnimated(_AlphaAudioLinkEnabled)
[HideInInspector] s_start_ALAlpha ("Alpha Audio Link ♫--{reference_property:_AlphaAudioLinkEnabled,persistent_expand:true,default_expand:false, condition_showS:(_EnableAudioLink==1)}", Float) = 0
[ThryHideInInspector][ToggleUI]_AlphaAudioLinkEnabled ("Alpha Audio Link", Float) = 0
[Enum(Bass, 0, Low Mid, 1, High Mid, 2, Treble, 3, Volume, 4)] _AlphaAudioLinkAddBand ("Add Band", Int) = 0
[VectorLabel(Min, Max)]_AlphaAudioLinkAddRange ("Add Range", Vector) = (0, 0, 0)
[HideInInspector] s_end_ALAlpha ("Alpha Audio Link", Float) = 0
//endex
[HideInInspector] s_start_AlphaAdvanced ("Advanced--{persistent_expand:true,default_expand:false}", Float) = 0
[ToggleUI]_AlphaPremultiply ("Alpha Premultiply", Float) = 0
_AlphaBoostFA ("Boost Transparency in ForwardAdd--{condition_showS:(_AddBlendOp==4)}", Range(1, 100)) = 10
[HideInInspector] s_end_AlphaAdvanced ("Advanced", Float) = 0
[HideInInspector] m_end_Alpha ("Alpha Options", Float) = 0
#T#PoiAlphaOptionsKeywords
//#pragma shader_feature KEYWORD
#T#PoiAlphaOptionsVariablesExposed
half _AlphaForceOpaque;
half _AlphaMod;
half _AlphaPremultiply;
half _AlphaBoostFA;
//ifex _AlphaToCoverage==0 && isNotAnimated(_AlphaToCoverage) && isNotAnimated(_AlphaSharpenedA2C)
half _AlphaToCoverage;
float _AlphaSharpenedA2C;
half _AlphaMipScale;
//endex
//ifex _AlphaDithering==0 && isNotAnimated(_AlphaDithering)
half _AlphaDithering;
half _AlphaDitherGradient;
half _AlphaDitherBias;
//endex
//ifex _AlphaDistanceFade==0 && isNotAnimated(_AlphaDistanceFade)
float _AlphaDistanceFade;
float _AlphaDistanceFadeType;
half _AlphaDistanceFadeMinAlpha;
half _AlphaDistanceFadeMaxAlpha;
float _AlphaDistanceFadeMin;
float _AlphaDistanceFadeMax;
float _AlphaDistanceFadeGlobalMask;
float _AlphaDistanceFadeGlobalMaskBlendType;
//endex
//ifex _AlphaFresnel==0 && isNotAnimated(_AlphaFresnel)
half _AlphaFresnel;
half _AlphaFresnelAlpha;
half _AlphaFresnelSharpness;
half _AlphaFresnelWidth;
half _AlphaFresnelInvert;
half _AlphaFresnelGlobalMask;
float _AlphaFresnelGlobalMaskBlendType;
//endex
//ifex _AlphaAngular==0 && isNotAnimated(_AlphaAngular)
half _AlphaAngular;
float _AngleType;
float _AngleCompareTo;
float3 _AngleForwardDirection;
float _CameraAngleMin;
float _CameraAngleMax;
float _ModelAngleMin;
float _ModelAngleMax;
half _AngleMinAlpha;
half _AlphaAngularGlobalMask;
float _AlphaAngularGlobalMaskBlendType;
//endex
//ifex _AlphaAudioLinkEnabled==0 && isNotAnimated(_AlphaAudioLinkEnabled)
half _AlphaAudioLinkEnabled;
half2 _AlphaAudioLinkAddRange;
float _AlphaAudioLinkAddBand;
//endex
half _AlphaGlobalMask;
float _AlphaGlobalMaskBlendType;
#T#PoiAlphaOptionsFunctions
void applyAlphaOptions(inout PoiFragData poiFragData, in PoiMesh poiMesh, in PoiCam poiCam, in PoiMods poiMods)
{
poiFragData.alpha = saturate(poiFragData.alpha + _AlphaMod);
if (_AlphaGlobalMask > 0)
{
poiFragData.alpha = maskBlend(poiFragData.alpha, poiMods.globalMask[_AlphaGlobalMask - 1], _AlphaGlobalMaskBlendType);
}
//ifex _AlphaDistanceFade==0 && isNotAnimated(_AlphaDistanceFade)
if (_AlphaDistanceFade >= 0.5)
{
float3 position = _AlphaDistanceFadeType ? poiMesh.worldPos : poiMesh.objectPosition;
float distanceFadeMultiplier = lerp(_AlphaDistanceFadeMinAlpha, _AlphaDistanceFadeMaxAlpha, smoothstep(_AlphaDistanceFadeMin, _AlphaDistanceFadeMax, distance(position, poiCam.worldPos)));
if (_AlphaDistanceFadeGlobalMask > 0)
{
distanceFadeMultiplier = lerp(1, distanceFadeMultiplier, poiMods.globalMask[_AlphaDistanceFadeGlobalMask - 1]);
}
poiFragData.alpha *= distanceFadeMultiplier;
}
//endex
//ifex _AlphaFresnel==0 && isNotAnimated(_AlphaFresnel)
if (_AlphaFresnel >= 0.5)
{
half holoRim = saturate(1 - smoothstep(min(_AlphaFresnelSharpness, _AlphaFresnelWidth), _AlphaFresnelWidth, (poiCam.vDotNCentered)));
holoRim = abs(lerp(1, holoRim, _AlphaFresnelAlpha));
holoRim = _AlphaFresnelInvert ? 1 - holoRim : holoRim;
if (_AlphaFresnelGlobalMask > 0)
{
holoRim = lerp(1, holoRim, poiMods.globalMask[_AlphaFresnelGlobalMask - 1]);
}
poiFragData.alpha *= holoRim;
}
//endex
//ifex _AlphaAngular==0 && isNotAnimated(_AlphaAngular)
if (_AlphaAngular >= 0.5)
{
half cameraAngleMin = _CameraAngleMin / 180;
half cameraAngleMax = _CameraAngleMax / 180;
half modelAngleMin = _ModelAngleMin / 180;
half modelAngleMax = _ModelAngleMax / 180;
float3 pos = _AngleCompareTo == 0 ? poiMesh.objectPosition : poiMesh.worldPos;
half3 cameraToModelDirection = normalize(pos - poiCam.worldPos);
half3 modelForwardDirection = normalize(mul((float3x3)unity_ObjectToWorld, normalize(_AngleForwardDirection.rgb)));
half cameraLookAtModel = remapClamped(cameraAngleMax, cameraAngleMin, .5 * dot(cameraToModelDirection, poiCam.forwardDir) + .5);
half modelLookAtCamera = remapClamped(modelAngleMax, modelAngleMin, .5 * dot(-cameraToModelDirection, modelForwardDirection) + .5);
half angularAlphaMod = 1;
if (_AngleType == 0)
{
angularAlphaMod = max(cameraLookAtModel, _AngleMinAlpha);
}
else if (_AngleType == 1)
{
angularAlphaMod = max(modelLookAtCamera, _AngleMinAlpha);
}
else if (_AngleType == 2)
{
angularAlphaMod = max(cameraLookAtModel * modelLookAtCamera, _AngleMinAlpha);
}
if (_AlphaAngularGlobalMask > 0)
{
angularAlphaMod = lerp(1, angularAlphaMod, poiMods.globalMask[_AlphaAngularGlobalMask - 1]);
}
poiFragData.alpha *= angularAlphaMod;
}
//endex
//ifex _AlphaAudioLinkEnabled==0 && isNotAnimated(_AlphaAudioLinkEnabled)
#ifdef POI_AUDIOLINK
if (poiMods.audioLinkAvailable && _AlphaAudioLinkEnabled >= 0.5)
{
poiFragData.alpha = saturate(poiFragData.alpha + lerp(_AlphaAudioLinkAddRange.x, _AlphaAudioLinkAddRange.y, poiMods.audioLink[_AlphaAudioLinkAddBand]));
}
#endif
//endex
}
//ifex _AlphaDithering==0 && isNotAnimated(_AlphaDithering)
inline half Dither8x8Bayer(int x, int y)
{
// Premultiplied by 1/64
const half dither[ 64 ] = {
0.015625, 0.765625, 0.203125, 0.953125, 0.06250, 0.81250, 0.25000, 1.00000,
0.515625, 0.265625, 0.703125, 0.453125, 0.56250, 0.31250, 0.75000, 0.50000,
0.140625, 0.890625, 0.078125, 0.828125, 0.18750, 0.93750, 0.12500, 0.87500,
0.640625, 0.390625, 0.578125, 0.328125, 0.68750, 0.43750, 0.62500, 0.37500,
0.046875, 0.796875, 0.234375, 0.984375, 0.03125, 0.78125, 0.21875, 0.96875,
0.546875, 0.296875, 0.734375, 0.484375, 0.53125, 0.28125, 0.71875, 0.46875,
0.171875, 0.921875, 0.109375, 0.859375, 0.15625, 0.90625, 0.09375, 0.84375,
0.671875, 0.421875, 0.609375, 0.359375, 0.65625, 0.40625, 0.59375, 0.34375
};
int r = y * 8 + x;
return dither[r];
}
half calcDither(half2 grabPos)
{
return Dither8x8Bayer(glsl_mod(grabPos.x, 8), glsl_mod(grabPos.y, 8));
}
void applyDithering(inout PoiFragData poiFragData, in PoiCam poiCam)
{
if (_AlphaDithering >= 0.5)
{
float dither = calcDither(poiCam.posScreenPixels) - _AlphaDitherBias;
poiFragData.alpha = saturate(poiFragData.alpha - (dither * (1 - poiFragData.alpha) * _AlphaDitherGradient));
}
}
//endex
//ifex _AlphaToCoverage==0 && isNotAnimated(_AlphaToCoverage) && isNotAnimated(_AlphaSharpenedA2C)
void ApplyAlphaToCoverage(inout PoiFragData poiFragData, in PoiMesh poiMesh)
{
// Force Model Opacity to 1 if desired
UNITY_BRANCH
if (_Mode == 1)
{
UNITY_BRANCH
if (_AlphaSharpenedA2C >= 0.5 && _AlphaToCoverage >= 0.5)
{
// rescale alpha by mip level
poiFragData.alpha *= 1 + max(0, CalcMipLevel(poiMesh.uv[0] * _MainTex_TexelSize.zw)) * _AlphaMipScale;
// rescale alpha by partial derivative
poiFragData.alpha = (poiFragData.alpha - _Cutoff) / max(fwidth(poiFragData.alpha), 0.0001) + _Cutoff;
poiFragData.alpha = saturate(poiFragData.alpha);
}
}
}
//endex
#T#PoiAlphaOptionsFunctionCall
applyAlphaOptions(poiFragData, poiMesh, poiCam, poiMods);
#K#ALPHA_OPTIONS_HOOK
#T#PoiAlphaOptionsDitherFunctionCall
//ifex _AlphaDithering==0 && isNotAnimated(_AlphaDithering)
applyDithering(poiFragData, poiCam);
//endex
#T#PoiAlphaOptionsForceOpaque
#ifndef POI_PASS_LILFUR
#if !defined(POI_PASS_BASETWO) && !defined(POI_PASS_ADDTWO)
poiFragData.alpha = _AlphaForceOpaque ? 1 : poiFragData.alpha;
#else
poiFragData.alpha = _AlphaForceOpaque2 ? 1 : poiFragData.alpha;
#endif
#endif
#T#PoiAlphaToCoverageFunctionCall
//ifex _AlphaToCoverage==0 && isNotAnimated(_AlphaToCoverage) && isNotAnimated(_AlphaSharpenedA2C)
ApplyAlphaToCoverage(poiFragData, poiMesh);
//endex
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 6c6bcf2ea34623741a36552a6c678ea3
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: b8e1b7bf6f1d9674dbe75fe157540c41, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9f465b1b014823343854e4bf41297fdf
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,86 @@
%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: 1039f25740a92fc4292bb1d94d07ad19, type: 3}
m_Name: VRLM_PoiAudioLink
m_EditorClassIdentifier:
Id: PoiAudioLink
Name: Poi Audio Link
Version:
Author:
Description:
AllowDuplicates: 0
ForceDuplicateLogic: 0
EnableProperties: []
Properties: []
ModuleDependencies: []
IncompatibleWith: []
Templates:
- Template: {fileID: -7419410332106174641, guid: 1be7b43adb0e07543b4687f3e0f50e1f, type: 3}
Keywords:
- EXTRAS_PROPERTIES
NeedsVariant: 0
Queue: 100
- Template: {fileID: -4077475223260929287, guid: 1be7b43adb0e07543b4687f3e0f50e1f, type: 3}
Keywords:
- DEPTH_PASS_KEYWORDS
- OUTLINE_PASS_KEYWORDS
- BASE_PASS_KEYWORDS
- LILFUR_PASS_KEYWORDS
- ADD_PASS_KEYWORDS
- META_PASS_KEYWORDS
- SHADOW_PASS_KEYWORDS
- MOTION_VECTORS_PASS_KEYWORDS
NeedsVariant: 0
Queue: 100
- Template: {fileID: 4910312744796953162, guid: 1be7b43adb0e07543b4687f3e0f50e1f, type: 3}
Keywords:
- MACROS_AND_DEFINES
NeedsVariant: 0
Queue: 100
- Template: {fileID: -1134625460632349209, guid: 1be7b43adb0e07543b4687f3e0f50e1f, type: 3}
Keywords:
- DEPTH_PROPERTY_VARIABLES
- OUTLINE_PROPERTY_VARIABLES
- BASE_PROPERTY_VARIABLES
- ADD_PROPERTY_VARIABLES
- SHADOW_PROPERTY_VARIABLES
- META_PROPERTY_VARIABLES
- LILFUR_PROPERTY_VARIABLES
- MOTION_VECTORS_PROPERTY_VARIABLES
NeedsVariant: 0
Queue: 100
- Template: {fileID: 8714289124560104235, guid: 1be7b43adb0e07543b4687f3e0f50e1f, type: 3}
Keywords:
- VERTEX_DEPTH_FUNCTIONS_EARLY
- VERTEX_OUTLINE_FUNCTIONS_EARLY
- VERTEX_BASE_FUNCTIONS_EARLY
- VERTEX_ADD_FUNCTIONS_EARLY
- VERTEX_SHADOW_FUNCTIONS_EARLY
- VERTEX_META_FUNCTIONS_EARLY
- VERTEX_LILFUR_FUNCTIONS_EARLY
- VERTEX_MOTION_VECTORS_FUNCTIONS_EARLY
NeedsVariant: 0
Queue: 100
- Template: {fileID: -2835084315498978105, guid: 1be7b43adb0e07543b4687f3e0f50e1f, type: 3}
Keywords:
- FRAGMENT_DEPTH_INIT
- FRAGMENT_OUTLINE_INIT
- FRAGMENT_BASE_INIT
- FRAGMENT_ADD_INIT
- FRAGMENT_SHADOW_INIT
- FRAGMENT_META_INIT
- FRAGMENT_LILFUR_INIT
- FRAGMENT_MOTION_VECTORS_INIT
NeedsVariant: 0
Queue: 100
Functions: []
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 87ca4a92adfc6d24f8f9bef432acf14a
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,488 @@
#T#PoiAudioLinkProperties
//ifex _EnableAudioLink==0
[HideInInspector] m_AudioLinkCategory (" Audio Link ♫--{reference_property:_EnableAudioLink, button_help:{text:Tutorial,action:{type:URL,data:https://www.poiyomi.com/audio-link/},hover:Documentation}}", Float) = 0
[HideInInspector] m_start_audioLink ("Audio Link ♫", Float) = 1
[HideInInspector][ThryToggle(POI_AUDIOLINK)] _EnableAudioLink ("Enabled", Float) = 0
[Helpbox(1, 3, 1)] _AudioLinkHelp ("This section houses the global controls for Audio Link. When activating this feature, controls for individual configurations will be exposed under their respective sections (Emission, Dissolve, etc.)", Int) = 0
[ToggleUI] _AudioLinkAnimToggle ("Anim Toggle", Float) = 1
/*
_AudioLinkDelay ("Delay", Range(0, 1)) = 0
[ToggleUI]_AudioLinkCCStripY ("CC Strip Y UV", Float) = 0
*/
[HideInInspector] s_start_Smoothing ("Smoothing--{persistent_expand:true,default_expand:true}", Float) = 1
_AudioLinkSmoothingBass ("Bass", Range(0, 1)) = 0
_AudioLinkSmoothingLowMid ("Low Mid", Range(0, 1)) = 0
_AudioLinkSmoothingHighMid ("High Mid", Range(0, 1)) = 0
_AudioLinkSmoothingTreble ("Treble", Range(0, 1)) = 0
[HideInInspector] s_end_Smoothing ("Smoothing", Float) = 0
[HideInInspector] s_start_audioLinkDebug ("Debug / Data Visualizations--{reference_property:_AudioLinkDebugEnabled,persistent_expand:true}", Float) = 0
[HideInInspector][DoNotAnimate][ThryToggleUI(false)]_AudioLinkDebugEnabled ("Debug", Float) = 0
[ThryWideEnum(Waveform, 0, DFT, 1, Autocorrelator, 9, Bass, 2, Low Mids, 3, High Mids, 4, Treble, 5, Volume, 12, Color Chord Colors, 6, CC Strip, 7, CC Strip Y, 11, CC Lights, 8, Chronotensity, 10)] _AudioLinkDebugVisualize ("Visualize", Int) = 0
[HideInInspector] s_end_audioLinkDebug ("Debug", Float) = 0
[HideInInspector] m_end_audioLink ("Audio Link", Float) = 0
[HideInInspector] m_start_audioLinkOverrides ("Overrides", Float) = 0
[HideInInspector] s_start_AudioLinkBandOverrides ("Band Overrides--{reference_property:_AudioLinkBandOverridesEnabled,persistent_expand:true,default_expand:true}", Float) = 1
[ThryHideInInspector][ToggleUI] _AudioLinkBandOverridesEnabled ("Band Overrides", Float) = 0
[VectorToSliders(Bass, 0, 1, Low Mid, 0, 1, High Mid, 0, 1, Treble, 0, 1)]_AudioLinkBandOverrideSliders ("Band Override Sliders", Vector) = (0, 0, 0, 0)
[HideInInspector] s_end_AudioLinkBandOverrides ("Audio Link", Float) = 0
[HideInInspector] m_end_audioLinkOverrides ("Overrides", Float) = 0
//endex
#K#AUDIOLINK_PROPERTIES
#T#PoiAudioLinkKeywords
//ifex _EnableAudioLink==0
#pragma shader_feature_local POI_AUDIOLINK
//endex
#T#PoiAudioLinkMacrosAndDefines
//ifex _EnableAudioLink==0
#ifdef POI_AUDIOLINK
// Map of where features in AudioLink are.
#define ALPASS_DFT uint2(0, 4) //Size: 128, 2
#define ALPASS_WAVEFORM uint2(0, 6) //Size: 128, 16
#define ALPASS_AUDIOLINK uint2(0, 0) //Size: 128, 4
#define ALPASS_AUDIOBASS uint2(0, 0) //Size: 128, 1
#define ALPASS_AUDIOLOWMIDS uint2(0, 1) //Size: 128, 1
#define ALPASS_AUDIOHIGHMIDS uint2(0, 2) //Size: 128, 1
#define ALPASS_AUDIOTREBLE uint2(0, 3) //Size: 128, 1
#define ALPASS_AUDIOLINKHISTORY uint2(1, 0) //Size: 127, 4
#define ALPASS_GENERALVU uint2(0, 22) //Size: 12, 1
#define ALPASS_CCINTERNAL uint2(12, 22) //Size: 12, 2
#define ALPASS_CCCOLORS uint2(25, 22) //Size: 11, 1
#define ALPASS_CCSTRIP uint2(0, 24) //Size: 128, 1
#define ALPASS_CCLIGHTS uint2(0, 25) //Size: 128, 2
#define ALPASS_AUTOCORRELATOR uint2(0, 27) //Size: 128, 1
#define ALPASS_GENERALVU_INSTANCE_TIME uint2(2, 22)
#define ALPASS_GENERALVU_LOCAL_TIME uint2(3, 22)
#define ALPASS_GENERALVU_NETWORK_TIME uint2(4, 22)
#define ALPASS_GENERALVU_PLAYERINFO uint2(6, 22)
// Added in version 2.5
#define ALPASS_FILTEREDAUDIOLINK uint2(0, 28) //Size: 16, 4
// Added in version 2.6
#define ALPASS_CHRONOTENSITY uint2(16, 28) //Size: 8, 4
#define ALPASS_THEME_COLOR0 uint2(0, 23)
#define ALPASS_THEME_COLOR1 uint2(1, 23)
#define ALPASS_THEME_COLOR2 uint2(2, 23)
#define ALPASS_THEME_COLOR3 uint2(3, 23)
#define ALPASS_FILTEREDVU uint2(24, 28) //Size: 4, 4
#define ALPASS_FILTEREDVU_INTENSITY uint2(24, 28) //Size: 4, 1
#define ALPASS_FILTEREDVU_MARKER uint2(24, 29) //Size: 4, 1
// Some basic constants to use (Note, these should be compatible with
// future version of AudioLink, but may change.
#define AUDIOLINK_SAMPHIST 3069 // Internal use for algos, do not change.
#define AUDIOLINK_SAMPLEDATA24 2046
#define AUDIOLINK_EXPBINS 24
#define AUDIOLINK_EXPOCT 10
#define AUDIOLINK_ETOTALBINS (AUDIOLINK_EXPBINS * AUDIOLINK_EXPOCT)
#define AUDIOLINK_WIDTH 128
#define AUDIOLINK_SPS 48000 // Samples per second
#define AUDIOLINK_ROOTNOTE 0
#define AUDIOLINK_4BAND_FREQFLOOR 0.123
#define AUDIOLINK_4BAND_FREQCEILING 1
#define AUDIOLINK_BOTTOM_FREQUENCY 13.75
#define AUDIOLINK_BASE_AMPLITUDE 2.5
#define AUDIOLINK_DELAY_COEFFICIENT_MIN 0.3
#define AUDIOLINK_DELAY_COEFFICIENT_MAX 0.9
#define AUDIOLINK_DFT_Q 4.0
#define AUDIOLINK_TREBLE_CORRECTION 5.0
// ColorChord constants
#define COLORCHORD_EMAXBIN 192
#define COLORCHORD_IIR_DECAY_1 0.90
#define COLORCHORD_IIR_DECAY_2 0.85
#define COLORCHORD_CONSTANT_DECAY_1 0.01
#define COLORCHORD_CONSTANT_DECAY_2 0.0
#define COLORCHORD_NOTE_CLOSEST 3.0
#define COLORCHORD_NEW_NOTE_GAIN 8.0
#define COLORCHORD_MAX_NOTES 10
uniform float4 _AudioTexture_TexelSize;
#ifdef SHADER_TARGET_SURFACE_ANALYSIS
#define AUDIOLINK_STANDARD_INDEXING
#endif
// Mechanism to index into texture.
#ifdef AUDIOLINK_STANDARD_INDEXING
sampler2D _AudioTexture;
#define AudioLinkData(xycoord) tex2Dlod(_AudioTexture, float4(uint2(xycoord) * _AudioTexture_TexelSize.xy, 0, 0))
#else
uniform Texture2D<float4> _AudioTexture;
SamplerState sampler_AudioTexture;
#define AudioLinkData(xycoord) _AudioTexture[uint2(xycoord)]
#endif
uniform sampler2D _Stored;
uniform float4 _Stored_TexelSize;
#endif
//endex
#T#PoiAudioLinkVariablesExposed
//ifex _EnableAudioLink==0
#ifdef POI_AUDIOLINK
float _AudioLinkDelay;
float _AudioLinkAnimToggle;
float _AudioLinkSmoothingBass;
float _AudioLinkSmoothingLowMid;
float _AudioLinkSmoothingHighMid;
float _AudioLinkSmoothingTreble;
float _AudioLinkDebugEnabled;
float _AudioLinkDebugVisualize;
float _AudioLinkBandOverridesEnabled;
float4 _AudioLinkBandOverrideSliders;
#endif
//endex
#T#PoiAudioLinkVariables
#T#PoiAudioLinkFunctions
//ifex _EnableAudioLink==0
#ifdef POI_AUDIOLINK
// Convenient mechanism to read from the AudioLink texture that handles reading off the end of one line and onto the next above it.
float4 AudioLinkDataMultiline(uint2 xycoord)
{
return AudioLinkData(uint2(xycoord.x % AUDIOLINK_WIDTH, xycoord.y + xycoord.x / AUDIOLINK_WIDTH));
}
// Mechanism to sample between two adjacent pixels and lerp between them, like "linear" supesampling
float4 AudioLinkLerp(float2 xy)
{
return lerp(AudioLinkData(xy), AudioLinkData(xy + int2(1, 0)), frac(xy.x));
}
// Same as AudioLinkLerp but properly handles multiline reading.
float4 AudioLinkLerpMultiline(float2 xy)
{
return lerp(AudioLinkDataMultiline(xy), AudioLinkDataMultiline(xy + float2(1, 0)), frac(xy.x));
}
//Tests to see if Audio Link texture is available
bool AudioLinkIsAvailable()
{
if (_AudioLinkAnimToggle < 0.5) return false;
if (_AudioLinkBandOverridesEnabled >= 0.5) return true;
#if !defined(AUDIOLINK_STANDARD_INDEXING)
int width, height;
_AudioTexture.GetDimensions(width, height);
return width > 16;
#else
return _AudioTexture_TexelSize.z > 16;
#endif
}
//Get version of audiolink present in the world, 0 if no audiolink is present
float AudioLinkGetVersion()
{
int2 dims;
#if !defined(AUDIOLINK_STANDARD_INDEXING)
_AudioTexture.GetDimensions(dims.x, dims.y);
#else
dims = _AudioTexture_TexelSize.zw;
#endif
if (dims.x >= 128)
return AudioLinkData(ALPASS_GENERALVU).x;
else if (dims.x > 16)
return 1;
else
return 0;
}
// This pulls data from this texture.
#define AudioLinkGetSelfPixelData(xy) _SelfTexture2D[xy]
// Extra utility functions for time.
uint AudioLinkDecodeDataAsUInt(uint2 indexloc)
{
uint4 rpx = AudioLinkData(indexloc);
return rpx.r + rpx.g * 1024 + rpx.b * 1048576 + rpx.a * 1073741824;
}
//Note: This will truncate time to every 134,217.728 seconds (~1.5 days of an instance being up) to prevent floating point aliasing.
// if your code will alias sooner, you will need to use a different function. It should be safe to use this on all times.
float AudioLinkDecodeDataAsSeconds(uint2 indexloc)
{
uint time = AudioLinkDecodeDataAsUInt(indexloc) & 0x7ffffff;
//Can't just divide by float. Bug in Unity's HLSL compiler.
return float(time / 1000) + float(time % 1000) / 1000.;
}
#define ALDecodeDataAsSeconds(x) AudioLinkDecodeDataAsSeconds(x)
#define ALDecodeDataAsUInt(x) AudioLinkDecodeDataAsUInt(x)
float AudioLinkRemap(float t, float a, float b, float u, float v)
{
return ((t - a) / (b - a)) * (v - u) + u;
}
float3 AudioLinkHSVtoRGB(float3 HSV)
{
float3 RGB = 0;
float C = HSV.z * HSV.y;
float H = HSV.x * 6;
float X = C * (1 - abs(fmod(H, 2) - 1));
if (HSV.y != 0)
{
float I = floor(H);
if (I == 0)
{
RGB = float3(C, X, 0);
}
else if (I == 1)
{
RGB = float3(X, C, 0);
}
else if (I == 2)
{
RGB = float3(0, C, X);
}
else if (I == 3)
{
RGB = float3(0, X, C);
}
else if (I == 4)
{
RGB = float3(X, 0, C);
}
else
{
RGB = float3(C, 0, X);
}
}
float M = HSV.z - C;
return RGB + M;
}
float3 AudioLinkCCtoRGB(float bin, float intensity, int rootNote)
{
float note = bin / AUDIOLINK_EXPBINS;
float hue = 0.0;
note *= 12.0;
note = glsl_mod(4. - note + rootNote, 12.0);
{
if (note < 4.0)
{
//Needs to be YELLOW->RED
hue = (note) / 24.0;
}
else if (note < 8.0)
{
// [4] [8]
//Needs to be RED->BLUE
hue = (note - 2.0) / 12.0;
}
else
{
// [8] [12]
//Needs to be BLUE->YELLOW
hue = (note - 4.0) / 8.0;
}
}
float val = intensity - 0.1;
return AudioLinkHSVtoRGB(float3(fmod(hue, 1.0), 1.0, clamp(val, 0.0, 1.0)));
}
// Sample the amplitude of a given frequency in the DFT, supports frequencies in [13.75; 14080].
float4 AudioLinkGetAmplitudeAtFrequency(float hertz)
{
float note = AUDIOLINK_EXPBINS * log2(hertz / AUDIOLINK_BOTTOM_FREQUENCY);
return AudioLinkLerpMultiline(ALPASS_DFT + float2(note, 0));
}
// Sample the amplitude of a given semitone in an octave. Octave is in [0; 9] while note is [0; 11].
float AudioLinkGetAmplitudeAtNote(float octave, float note)
{
float quarter = note * 2.0;
return AudioLinkLerpMultiline(ALPASS_DFT + float2(octave * AUDIOLINK_EXPBINS + quarter, 0));
}
// Get a reasonable drop-in replacement time value for POI_TIME.y with the
// given chronotensity index [0; 7] and AudioLink band [0; 3].
float AudioLinkGetChronoTime(uint index, uint band)
{
return (AudioLinkDecodeDataAsUInt(ALPASS_CHRONOTENSITY + uint2(index, band))) / 100000.0;
}
// Get a chronotensity value in the interval [0; 1], modulated by the speed input,
// with the given chronotensity index [0; 7] and AudioLink band [0; 3].
float AudioLinkGetChronoTimeNormalized(uint index, uint band, float speed)
{
return frac(AudioLinkGetChronoTime(index, band) * speed);
}
// Get a chronotensity value in the interval [0; interval], modulated by the speed input,
// with the given chronotensity index [0; 7] and AudioLink band [0; 3].
float AudioLinkGetChronoTimeInterval(uint index, uint band, float speed, float interval)
{
return AudioLinkGetChronoTimeNormalized(index, band, speed) * interval;
}
float getBandAtTime(float band, float time, float size = 1.0f)
{
//return remap(UNITY_SAMPLE_TEX2D(_AudioTexture, float2(time * width, band/128.0)).r, min(size,.9999), 1);
return remapClamped(min(size, .9999), 1, AudioLinkData(ALPASS_AUDIOBASS + uint2(time * AUDIOLINK_WIDTH, band)).r);
}
float3 maximize(float3 c)
{
if (c.x == 0 && c.y == 0 && c.z == 0)
return float3(1.0, 1.0, 1.0);
else
return c / max(c.r, max(c.g, c.b));
}
inline int poiALBandPass(int bandIdx)
{
bandIdx = clamp(bandIdx, 0, 3);
return bandIdx == 0 ? ALPASS_AUDIOBASS : bandIdx == 1 ? ALPASS_AUDIOLOWMIDS : bandIdx == 2 ? ALPASS_AUDIOHIGHMIDS : ALPASS_AUDIOTREBLE;
}
void initPoiAudioLink(inout PoiMods poiMods)
{
if (_AudioLinkAnimToggle < 0.5) return;
if (AudioLinkIsAvailable())
{
poiMods.audioLinkAvailable = true;
poiMods.audioLinkVersion = AudioLinkGetVersion();
poiMods.audioLink[0] = _AudioLinkSmoothingBass == 0 ? AudioLinkData(ALPASS_AUDIOLINK + float2(0, 0))[0] : AudioLinkData(ALPASS_FILTEREDAUDIOLINK + float2((1 - _AudioLinkSmoothingBass) * 15.95, 0))[0];
poiMods.audioLink[1] = _AudioLinkSmoothingLowMid == 0 ? AudioLinkData(ALPASS_AUDIOLINK + float2(0, 1))[0] : AudioLinkData(ALPASS_FILTEREDAUDIOLINK + float2((1 - _AudioLinkSmoothingLowMid) * 15.95, 1))[0];
poiMods.audioLink[2] = _AudioLinkSmoothingHighMid == 0 ? AudioLinkData(ALPASS_AUDIOLINK + float2(0, 2))[0] : AudioLinkData(ALPASS_FILTEREDAUDIOLINK + float2((1 - _AudioLinkSmoothingHighMid) * 15.95, 2))[0];
poiMods.audioLink[3] = _AudioLinkSmoothingTreble == 0 ? AudioLinkData(ALPASS_AUDIOLINK + float2(0, 3))[0] : AudioLinkData(ALPASS_FILTEREDAUDIOLINK + float2((1 - _AudioLinkSmoothingTreble) * 15.95, 3))[0];
poiMods.audioLink[4] = AudioLinkData(ALPASS_GENERALVU + float2(8, 0))[0];
/*
poiMods.globalColorTheme[4] = AudioLinkData( ALPASS_CCCOLORS + uint2( 0, 0 ) );
poiMods.globalColorTheme[5] = AudioLinkData( ALPASS_CCCOLORS + uint2( 1, 0 ) );
poiMods.globalColorTheme[6] = AudioLinkData( ALPASS_CCCOLORS + uint2( 2, 0 ) );
poiMods.globalColorTheme[7] = AudioLinkData( ALPASS_CCCOLORS + uint2( 3, 0 ) );
poiMods.globalColorTheme[4] = float4(maximize(AudioLinkData( ALPASS_CCCOLORS + uint2( 0, 0 ) )),1.0);
poiMods.globalColorTheme[5] = float4(maximize(AudioLinkData( ALPASS_CCCOLORS + uint2( 1, 0 ) )),1.0);
poiMods.globalColorTheme[6] = float4(maximize(AudioLinkData( ALPASS_CCCOLORS + uint2( 2, 0 ) )),1.0);
poiMods.globalColorTheme[7] = float4(maximize(AudioLinkData( ALPASS_CCCOLORS + uint2( 3, 0 ) )),1.0);
*/
poiMods.globalColorTheme[4] = float4(AudioLinkCCtoRGB(glsl_mod(AudioLinkData(ALPASS_CCINTERNAL + uint2(2, 0))[0], AUDIOLINK_EXPBINS), 1, AUDIOLINK_ROOTNOTE), 1.0);
poiMods.globalColorTheme[5] = float4(AudioLinkCCtoRGB(glsl_mod(AudioLinkData(ALPASS_CCINTERNAL + uint2(3, 0))[0], AUDIOLINK_EXPBINS), 1, AUDIOLINK_ROOTNOTE), 1.0);
poiMods.globalColorTheme[6] = float4(AudioLinkCCtoRGB(glsl_mod(AudioLinkData(ALPASS_CCINTERNAL + uint2(4, 0))[0], AUDIOLINK_EXPBINS), 1, AUDIOLINK_ROOTNOTE), 1.0);
poiMods.globalColorTheme[7] = float4(AudioLinkCCtoRGB(glsl_mod(AudioLinkData(ALPASS_CCINTERNAL + uint2(5, 0))[0], AUDIOLINK_EXPBINS), 1, AUDIOLINK_ROOTNOTE), 1.0);
poiMods.globalColorTheme[8] = AudioLinkData(ALPASS_THEME_COLOR0);
poiMods.globalColorTheme[9] = AudioLinkData(ALPASS_THEME_COLOR1);
poiMods.globalColorTheme[10] = AudioLinkData(ALPASS_THEME_COLOR2);
poiMods.globalColorTheme[11] = AudioLinkData(ALPASS_THEME_COLOR3);
}
// Even if world-supplied audiolink data was populated earlier, we want the overrides to take priority.
// But we keep any world-supplied global color themes, which are separate.
if (_AudioLinkBandOverridesEnabled >= 0.5)
{
poiMods.audioLinkAvailable = true;
poiMods.audioLink[0] = _AudioLinkBandOverrideSliders.x;
poiMods.audioLink[1] = _AudioLinkBandOverrideSliders.y;
poiMods.audioLink[2] = _AudioLinkBandOverrideSliders.z;
poiMods.audioLink[3] = _AudioLinkBandOverrideSliders.w;
// We don't expose an override slider for the volume band.
// To keep behavior consistent (no mixing sources), we don't retain the world's value.
poiMods.audioLink[4] = 0;
}
}
void DebugVisualizer(inout PoiFragData poiFragData, in PoiMesh poiMesh, in PoiMods poiMods)
{
//ifex _AudioLinkDebugEnabled==0
if (_AudioLinkDebugEnabled < 0.5) return;
switch((int)_AudioLinkDebugVisualize)
{
case 0: // Waveform
{
float waveform = AudioLinkLerpMultiline(ALPASS_WAVEFORM + float2(500. * poiMesh.uv[0].x, 0)).r;
poiFragData.emission += clamp(1 - 50 * abs(waveform - poiMesh.uv[0].y * 2. + 1), 0, 1);
break;
}
case 1: // DFT
{
poiFragData.emission += AudioLinkLerpMultiline(ALPASS_DFT + uint2(poiMesh.uv[0].x * AUDIOLINK_ETOTALBINS, 0)).rrr;
break;
}
case 2: // Bass
{
poiFragData.emission += poiMods.audioLink[0];
break;
}
case 3: // Low Mids
{
poiFragData.emission += poiMods.audioLink[1];
break;
}
case 4: // High Mids
{
poiFragData.emission += poiMods.audioLink[2];
break;
}
case 5: // Treble
{
poiFragData.emission += poiMods.audioLink[3];
break;
}
case 6: // Color Chord Colors
{
poiFragData.emission += AudioLinkData(ALPASS_CCCOLORS + uint2(3 + 1, 0));
break;
}
case 7: // CC Strip
{
poiFragData.emission += AudioLinkLerp(ALPASS_CCSTRIP + float2(poiMesh.uv[0].x * AUDIOLINK_WIDTH, 0));
break;
}
case 8: // CC Lights
{
poiFragData.emission += AudioLinkData(ALPASS_CCLIGHTS + uint2(uint(poiMesh.uv[0].x * 8) + uint(poiMesh.uv[0].y * 16) * 8, 0));
break;
}
case 9: // Autocorrelator
{
poiFragData.emission += saturate(AudioLinkLerp(ALPASS_AUTOCORRELATOR + float2((abs(1. - poiMesh.uv[0].x * 2.)) * AUDIOLINK_WIDTH, 0)).rrr);
break;
}
case 10: // Chronotensity
{
poiFragData.emission += (AudioLinkDecodeDataAsUInt(ALPASS_CHRONOTENSITY + uint2(1, 0)) % 1000000) / 1000000.0;
break;
}
case 11: // CC Strip Y
{
poiFragData.emission += AudioLinkLerp(ALPASS_CCSTRIP + float2(poiMesh.uv[0].y * AUDIOLINK_WIDTH, 0)).rgb * .5;
break;
}
case 12: // Volume
{
poiFragData.emission += poiMods.audioLink[4];
break;
}
}
//endex
}
void SetupAudioLink(inout PoiFragData poiFragData, inout PoiMods poiMods, in PoiMesh poiMesh)
{
initPoiAudioLink(poiMods);
DebugVisualizer(poiFragData, poiMesh, poiMods);
}
#endif
//endex
#T#PoiAudioLinkFunctionCalls
//ifex _EnableAudioLink==0
#ifdef POI_AUDIOLINK
SetupAudioLink(poiFragData, poiMods, poiMesh);
#endif
//endex
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 1be7b43adb0e07543b4687f3e0f50e1f
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: b8e1b7bf6f1d9674dbe75fe157540c41, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6a620568a49f87349b7478e5fdb6f02d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,83 @@
%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: 1039f25740a92fc4292bb1d94d07ad19, type: 3}
m_Name: VRLM_PoiBackface
m_EditorClassIdentifier:
Id: PoiBackFace
Name: Poi Back Face
Version: 1.0
Author: Poiyomi
Description:
AllowDuplicates: 0
ForceDuplicateLogic: 0
EnableProperties: []
Properties: []
ModuleDependencies: []
IncompatibleWith: []
Templates:
- Template: {fileID: -3101754527048639204, guid: 837549448592a3a4ea33a7aa0e689f00, type: 3}
Keywords:
- MAIN_PROPERTIES
NeedsVariant: 0
Queue: 100
- Template: {fileID: 6702876446688562091, guid: 837549448592a3a4ea33a7aa0e689f00, type: 3}
Keywords:
- DEPTH_PASS_KEYWORDS
- BASE_PASS_KEYWORDS
- ADD_PASS_KEYWORDS
- META_PASS_KEYWORDS
- SHADOW_PASS_KEYWORDS
- MOTION_VECTORS_PASS_KEYWORDS
NeedsVariant: 0
Queue: 100
- Template: {fileID: 9198516683745240821, guid: 837549448592a3a4ea33a7aa0e689f00, type: 3}
Keywords:
- BASE_PROPERTY_VARIABLES
- ADD_PROPERTY_VARIABLES
- SHADOW_PROPERTY_VARIABLES
- META_PROPERTY_VARIABLES
- DEPTH_PROPERTY_VARIABLES
- MOTION_VECTORS_PROPERTY_VARIABLES
NeedsVariant: 0
Queue: 100
- Template: {fileID: -8292844575829808264, guid: 837549448592a3a4ea33a7aa0e689f00, type: 3}
Keywords:
- BASE_PROPERTY_VARIABLES_EXPOSED
- ADD_PROPERTY_VARIABLES_EXPOSED
- SHADOW_PROPERTY_VARIABLES_EXPOSED
- META_PROPERTY_VARIABLES_EXPOSED
- DEPTH_PROPERTY_VARIABLES_EXPOSED
- MOTION_VECTORS_PROPERTY_VARIABLES_EXPOSED
NeedsVariant: 0
Queue: 100
- Template: {fileID: 3739020101595156813, guid: 837549448592a3a4ea33a7aa0e689f00, type: 3}
Keywords:
- FRAGMENT_BASE_FUNCTIONS
- FRAGMENT_ADD_FUNCTIONS
- FRAGMENT_SHADOW_FUNCTIONS
- FRAGMENT_META_FUNCTIONS
- FRAGMENT_DEPTH_FUNCTIONS
- FRAGMENT_MOTION_VECTORS_FUNCTIONS
NeedsVariant: 0
Queue: 100
- Template: {fileID: -2703058238815093264, guid: 837549448592a3a4ea33a7aa0e689f00, type: 3}
Keywords:
- FRAGMENT_BASE_COLOR
- FRAGMENT_ADD_COLOR
- FRAGMENT_SHADOW_COLOR
- FRAGMENT_META_COLOR
- FRAGMENT_DEPTH_COLOR
- FRAGMENT_MOTION_VECTORS_COLOR
NeedsVariant: 0
Queue: 10
Functions: []
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1e5f5acfca7186c42ad0956d45397b4f
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,124 @@
#T#PoiBackFaceProperties
//ifex _BackFaceEnabled!=1
// Back Face Textures and Emission
[HideInInspector] m_start_backFace (" Back Face--{reference_property:_BackFaceEnabled,button_help:{text:Tutorial,action:{type:URL,data:https://www.poiyomi.com/color-and-normals/back-face},hover:Documentation}}", Float) = 0
[HideInInspector][ThryToggle(POI_BACKFACE)]_BackFaceEnabled ("Backface Enabled", Float) = 0
[Helpbox(1, 2, 3)] _BackfaceReminder ("This feature requires Cull in Rendering to be set to Off in order for this to work!--{condition_show:(_Cull==2)}", Int) = 0
_BackFaceColor ("Color--{reference_property:_BackFaceColorThemeIndex}", Color) = (1, 1, 1, 1)
[ThryHideInInspector][ThryWideEnum(Off, 0, Theme Color 0, 1, Theme Color 1, 2, Theme Color 2, 3, Theme Color 3, 4, ColorChord 0, 5, ColorChord 1, 6, ColorChord 2, 7, ColorChord 3, 8, AL Theme 0, 9, AL Theme 1, 10, AL Theme 2, 11, AL Theme 3, 12)] _BackFaceColorThemeIndex ("", Int) = 0
[sRGBWarning(true)]_BackFaceTexture ("Texture--{reference_properties:[_BackFaceTexturePan, _BackFaceTextureUV]}", 2D) = "white" { }
[ThryHideInInspector][Vector2]_BackFaceTexturePan ("Panning", Vector) = (0, 0, 0, 0)
[ThryHideInInspector][ThryWideEnum(UV0, 0, UV1, 1, UV2, 2, UV3, 3, Panosphere, 4, World Pos, 5, Local Pos, 8, Polar UV, 6, Distorted UV, 7, Matcap, 9, Screen Space, 10)]_BackFaceTextureUV ("UV#", Int) = 0
[sRGBWarning]_BackFaceMask ("Mask--{reference_properties:[_BackFaceMaskPan, _BackFaceMaskUV, _BackFaceMaskChannel]}", 2D) = "white" { }
[ThryHideInInspector][Vector2]_BackFaceMaskPan ("Panning", Vector) = (0, 0, 0, 0)
[ThryHideInInspector][ThryWideEnum(UV0, 0, UV1, 1, UV2, 2, UV3, 3, Panosphere, 4, World Pos, 5, Local Pos, 8, Polar UV, 6, Distorted UV, 7, Matcap, 9, Screen Space, 10)]_BackFaceMaskUV ("UV#", Int) = 0
[ThryHideInInspector][Enum(R, 0, G, 1, B, 2, A, 3)]_BackFaceMaskChannel ("Channel", Float) = 0
_BackFaceEmissionStrength ("Emission Strength", Range(0, 20)) = 0
[HideInInspector] s_start_BackFaceHueShift ("Hue Shift--{reference_property:_BackFaceHueShiftEnabled,persistent_expand:true}", Float) = 0
[ThryHideInInspector][ToggleUI]_BackFaceHueShiftEnabled ("Hue Shift", Float) = 0
[ThryWideEnum(OKLab, 0, HSV, 1)] _BackFaceShiftColorSpace ("Color Space", Int) = 0
[ThryWideEnum(Hue Select, 0, Hue Shift, 1)] _BackFaceHueSelectOrShift ("Select or Shift", Int) = 1
_BackFaceHueShift ("Shift", Range(0, 1)) = 0
_BackFaceHueShiftSpeed ("Shift Speed", Float) = 0
[HideInInspector] s_end_BackFaceHueShift ("Hue Shift", Float) = 0
[HideInInspector] s_start_BackfaceMods ("Backface Mods--{persistent_expand:true,default_expand:false}", Float) = 0
_BackFaceDetailIntensity ("Detail Intensity", Range(0, 5)) = 1
[ToggleUI]_BackFaceReplaceAlpha ("Replace Alpha", Float) = 0
_BackFaceEmissionLimiter ("Global Emission Multiplier", Float) = 1
[HideInInspector] s_end_BackfaceMods ("Backface Mods", Float) = 0
[HideInInspector] m_end_backFace ("Back Face", Float) = 0
//endex
#T#PoiBackFaceKeywords
//ifex _BackFaceEnabled!=1
#pragma shader_feature_local POI_BACKFACE
//endex
#T#PoiBackFaceVariablesExposed
//ifex _BackFaceEnabled!=1
#ifdef POI_BACKFACE
float _BackFaceEnabled;
half _BackFaceDetailIntensity;
half _BackFaceEmissionStrength;
float2 _BackFacePanning;
half4 _BackFaceColor;
float _BackFaceColorThemeIndex;
half _BackFaceReplaceAlpha;
float4 _BackFaceTexture_ST;
float2 _BackFaceTexturePan;
float _BackFaceTextureUV;
float4 _BackFaceMask_ST;
float2 _BackFaceMaskPan;
float _BackFaceMaskUV;
float _BackFaceMaskChannel;
float _BackFaceHueShiftEnabled;
half _BackFaceHueShift;
half _BackFaceShiftColorSpace;
float _BackFaceHueShiftSpeed;
half _BackFaceEmissionLimiter;
float _BackFaceHueSelectOrShift;
#endif
//endex
#T#PoiBackFaceVariables
//ifex _BackFaceEnabled!=1
#ifdef POI_BACKFACE
#if defined(PROP_BACKFACETEXTURE) || !defined(OPTIMIZER_ENABLED)
Texture2D _BackFaceTexture;
#endif
#if defined(PROP_BACKFACEMASK) || !defined(OPTIMIZER_ENABLED)
Texture2D _BackFaceMask;
#endif
#endif
//TODO detail strength stuff
//endex
#T#PoiBackFaceFunction
//ifex _BackFaceEnabled!=1
#ifdef POI_BACKFACE
void ApplyBackFaceColor(inout PoiFragData poiFragData, in PoiMesh poiMesh, inout PoiMods poiMods)
{
if (!poiMesh.isFrontFace)
{
half4 backFaceColor = _BackFaceColor;
backFaceColor.rgb = poiThemeColor(poiMods, backFaceColor.rgb, _BackFaceColorThemeIndex);
#if defined(PROP_BACKFACETEXTURE) || !defined(OPTIMIZER_ENABLED)
backFaceColor *= POI2D_SAMPLER_PAN(_BackFaceTexture, _MainTex, poiUV(poiMesh.uv[_BackFaceTextureUV], _BackFaceTexture_ST), _BackFaceTexturePan);
#endif
if (_BackFaceHueShiftEnabled >= 0.5)
{
backFaceColor.rgb = hueShift(backFaceColor.rgb, frac(_BackFaceHueShift + _BackFaceHueShiftSpeed * POI_TIME.x), _BackFaceShiftColorSpace, _BackFaceHueSelectOrShift);
}
half backFaceMask = 1;
#if defined(PROP_BACKFACEMASK) || !defined(OPTIMIZER_ENABLED)
backFaceMask *= POI2D_SAMPLER_PAN(_BackFaceMask, _MainTex, poiUV(poiMesh.uv[_BackFaceMaskUV], _BackFaceMask_ST), _BackFaceMaskPan)[_BackFaceMaskChannel];
#endif
if (_BackFaceReplaceAlpha < 0.5)
{
backFaceMask *= backFaceColor.a;
}
poiFragData.baseColor = lerp(poiFragData.baseColor, backFaceColor.rgb, backFaceMask);
UNITY_BRANCH
if (_BackFaceReplaceAlpha >= 0.5)
{
poiFragData.alpha = backFaceColor.a;
}
poiFragData.emission += backFaceColor.rgb * _BackFaceEmissionStrength * backFaceMask;
poiMods.globalEmission = poiMods.globalEmission * _BackFaceEmissionLimiter;
}
}
#endif
//endex
#T#PoiBackFaceFunctionCall
//ifex _BackFaceEnabled!=1
#ifdef POI_BACKFACE
ApplyBackFaceColor(poiFragData, poiMesh, poiMods);
#K#BACKFACE_HOOK
#endif
//endex
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 837549448592a3a4ea33a7aa0e689f00
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: b8e1b7bf6f1d9674dbe75fe157540c41, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1d61b95d934914c4abeba314b47df6d7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,73 @@
%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: 1039f25740a92fc4292bb1d94d07ad19, type: 3}
m_Name: VRLM_PoiBacklight
m_EditorClassIdentifier:
Id: PoiBacklight
Name:
Version: 1.0
Author: Poiyomi
Description:
AllowDuplicates: 0
ForceDuplicateLogic: 0
EnableProperties: []
Properties: []
ModuleDependencies: []
IncompatibleWith: []
Templates:
- Template: {fileID: 3003435717227043389, guid: 1cb7a3461c21738448b935b7dcc91108, type: 3}
Keywords:
- LIGHTING_PROPERTIES
NeedsVariant: 0
Queue: 100
- Template: {fileID: -8137303536783710132, guid: 1cb7a3461c21738448b935b7dcc91108, type: 3}
Keywords:
- BASE_PASS_KEYWORDS
- ADD_PASS_KEYWORDS
- OUTLINE_PASS_KEYWORDS
- LILFUR_PASS_KEYWORDS
NeedsVariant: 0
Queue: 100
- Template: {fileID: -1903488131248136623, guid: 1cb7a3461c21738448b935b7dcc91108, type: 3}
Keywords:
- BASE_PROPERTY_VARIABLES
- ADD_PROPERTY_VARIABLES
- OUTLINE_PROPERTY_VARIABLES
- LILFUR_PROPERTY_VARIABLES
NeedsVariant: 0
Queue: 100
- Template: {fileID: -5088848264782056777, guid: 1cb7a3461c21738448b935b7dcc91108, type: 3}
Keywords:
- BASE_PROPERTY_VARIABLES_EXPOSED
- ADD_PROPERTY_VARIABLES_EXPOSED
- OUTLINE_PROPERTY_VARIABLES_EXPOSED
- LILFUR_PROPERTY_VARIABLES_EXPOSED
NeedsVariant: 0
Queue: 100
- Template: {fileID: -9086731845197701924, guid: 1cb7a3461c21738448b935b7dcc91108, type: 3}
Keywords:
- FRAGMENT_BASE_FUNCTIONS
- FRAGMENT_ADD_FUNCTIONS
- FRAGMENT_OUTLINE_FUNCTIONS
- FRAGMENT_LILFUR_FUNCTIONS
NeedsVariant: 0
Queue: 100
- Template: {fileID: 3818937678796867229, guid: 1cb7a3461c21738448b935b7dcc91108, type: 3}
Keywords:
- FRAGMENT_BASE_LIGHTING
- FRAGMENT_ADD_LIGHTING
- FRAGMENT_OUTLINE_LIGHTING
- FRAGMENT_LILFUR_LIGHTING
NeedsVariant: 0
Queue: 100
Functions: []
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: eef7be30d866ea6488f9d1a3ea96ab7d
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,118 @@
#T#PoiBacklightProperties
//ifex _BacklightEnabled!=1
[HideInInspector] m_start_backlight (" Backlight--{reference_property:_BacklightEnabled, button_help:{text:Tutorial,action:{type:URL,data:https://www.poiyomi.com/shading/backlight},hover:Documentation}}", Float) = 0
[HideInInspector][ThryToggle(POI_BACKLIGHT)]_BacklightEnabled ("Backlight Enabled", Float) = 0
[HDR][Gamma] _BacklightColor ("Color", Color) = (0.85, 0.8, 0.7, 1.0)
[sRGBWarning(true)] _BacklightColorTex ("Texture--{reference_properties:[_BacklightColorTexPan, _BacklightColorTexUV]}", 2D) = "white" { }
[ThryHideInInspector][Vector2] _BacklightColorTexPan ("Panning", Vector) = (0, 0, 0, 0)
[ThryHideInInspector][ThryWideEnum(UV0, 0, UV1, 1, UV2, 2, UV3, 3, Panosphere, 4, World Pos, 5, Local Pos, 8, Polar UV, 6, Distorted UV, 7, Matcap, 9, Screen Space, 10)] _BacklightColorTexUV ("UV", Int) = 0
_BacklightMainStrength ("Main Color Power", Range(0, 1)) = 0
[ToggleUI] _BacklightReceiveShadow ("Receive Shadow", Int) = 1
[ToggleUI] _BacklightBackfaceMask ("Backface Mask", Int) = 1
[HideInInspector] s_start_backlightOptions ("Backlight Options--{persistent_expand:true,default_expand:true}", Float) = 1
_BacklightNormalStrength ("Normal Strength", Range(0, 1)) = 1.0
_BacklightBorder ("Border", Range(0, 1)) = 0.65
_BacklightBlur ("Blur", Range(0, 1)) = 0.05
_BacklightDirectivity ("Directivity", Float) = 5.0
_BacklightViewStrength ("View Direction Strength", Range(0, 1)) = 1
[HideInInspector] s_end_backlightOptions ("Backlight Options", Float) = 0
[HideInInspector] s_start_backlightMasking ("Masking--{persistent_expand:true,default_expand:false}", Float) = 0
[ThryWideEnum(Off, 0, 1R, 1, 1G, 2, 1B, 3, 1A, 4, 2R, 5, 2G, 6, 2B, 7, 2A, 8, 3R, 9, 3G, 10, 3B, 11, 3A, 12, 4R, 13, 4G, 14, 4B, 15, 4A, 16)] _BacklightGlobalMask ("Global Mask--{reference_property:_BacklightGlobalMaskBlendType}", Int) = 0
[ThryHideInInspector][ThryWideEnum(Add, 7, Subtract, 1, Multiply, 2, Divide, 3, Min, 4, Max, 5, Average, 6, Replace, 0)] _BacklightGlobalMaskBlendType ("Blending", Int) = 2
[ThryWideEnum(Off, 0, 1R, 1, 1G, 2, 1B, 3, 1A, 4, 2R, 5, 2G, 6, 2B, 7, 2A, 8, 3R, 9, 3G, 10, 3B, 11, 3A, 12, 4R, 13, 4G, 14, 4B, 15, 4A, 16)] _BacklightApplyGlobalMaskIndex ("Apply to Global Mask--{reference_property:_BacklightApplyGlobalMaskBlendType}", Int) = 0
[ThryHideInInspector][ThryWideEnum(Add, 7, Subtract, 1, Multiply, 2, Divide, 3, Min, 4, Max, 5, Average, 6, Replace, 0)] _BacklightApplyGlobalMaskBlendType ("Blending", Int) = 2
[HideInInspector] s_end_backlightMasking ("Masking", Float) = 0
[HideInInspector] m_end_backlight ("Backlight", Float) = 0
//endex
#T#PoiBacklightKeywords
//ifex _BacklightEnabled!=1
#pragma shader_feature_local POI_BACKLIGHT
//endex
#T#PoiBacklightVariablesExposed
//ifex _BacklightEnabled!=1
#ifdef POI_BACKLIGHT
half4 _BacklightColor;
#if defined(PROP_BACKLIGHTCOLORTEX) || !defined(OPTIMIZER_ENABLED)
float4 _BacklightColorTex_ST;
float2 _BacklightColorTexPan;
float _BacklightColorTexUV;
#endif
half _BacklightMainStrength;
half _BacklightNormalStrength;
half _BacklightBorder;
half _BacklightBlur;
half _BacklightDirectivity;
half _BacklightViewStrength;
int _BacklightReceiveShadow;
int _BacklightBackfaceMask;
half _BacklightGlobalMask;
float _BacklightGlobalMaskBlendType;
float _BacklightApplyGlobalMaskIndex;
float _BacklightApplyGlobalMaskBlendType;
#endif
//endex
#T#PoiBacklightVariables
//ifex _BacklightEnabled!=1
#ifdef POI_BACKLIGHT
#if defined(PROP_BACKLIGHTCOLORTEX) || !defined(OPTIMIZER_ENABLED)
Texture2D _BacklightColorTex;
#endif
#endif
//endex
#T#PoiBacklightFunction
//ifex _BacklightEnabled!=1
#ifdef POI_BACKLIGHT
void ApplyBacklight(inout PoiFragData poiFragData, in PoiMesh poiMesh, inout PoiLight poiLight, in PoiCam poiCam, inout PoiMods poiMods)
{
// Color
half3 backlightColor = _BacklightColor.rgb;
#if defined(PROP_BACKLIGHTCOLORTEX) || !defined(OPTIMIZER_ENABLED)
backlightColor *= POI2D_SAMPLER_PAN(_BacklightColorTex, _MainTex, poiUV(poiMesh.uv[_BacklightColorTexUV], _BacklightColorTex_ST), _BacklightColorTexPan).rgb;
#endif
float3 normal = lerp(poiMesh.normals[0], poiMesh.normals[1], _BacklightNormalStrength);
// Factor
float3 headDir = normalize(getCameraPosition() - poiMesh.worldPos.xyz);
half headDotLight = dot(headDir, poiLight.direction);
half backlightFactor = pow(saturate(-headDotLight * 0.5 + 0.5), max(0, _BacklightDirectivity));
half backlightLN = dot(normalize(-headDir * _BacklightViewStrength + poiLight.direction), normal) * 0.5 + 0.5;
if (_BacklightReceiveShadow >= 0.5)
backlightLN *= poiLight.lightMap;
backlightLN = poiEdgeLinear(backlightLN, _BacklightBorder, _BacklightBlur);
half backlight = saturate(backlightFactor * backlightLN);
backlight = !poiMesh.isFrontFace && _BacklightBackfaceMask >= 0.5 ? 0.0 : backlight;
// Global Masking
half backlightMask = 1;
if (_BacklightGlobalMask > 0)
{
backlightMask = maskBlend(backlightMask, poiMods.globalMask[_BacklightGlobalMask - 1], _BacklightGlobalMaskBlendType);
}
backlight *= backlightMask;
if (_BacklightApplyGlobalMaskIndex > 0)
{
applyToGlobalMask(poiMods, _BacklightApplyGlobalMaskIndex - 1, _BacklightApplyGlobalMaskBlendType, backlight);
}
// Blend
backlightColor = lerp(backlightColor, backlightColor * poiFragData.baseColor, _BacklightMainStrength);
poiLight.finalLightAdd += backlight * backlightColor * poiLight.directColor;
}
#endif
//endex
#T#PoiBacklightFunctionCall
//ifex _BacklightEnabled!=1
#ifdef POI_BACKLIGHT
ApplyBacklight(poiFragData, poiMesh, poiLight, poiCam, poiMods);
#endif
//endex
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 1cb7a3461c21738448b935b7dcc91108
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: b8e1b7bf6f1d9674dbe75fe157540c41, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 752113ac546a43147a017314c171ce98
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,42 @@
%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: 1039f25740a92fc4292bb1d94d07ad19, type: 3}
m_Name: VRLM_PoiStencil
m_EditorClassIdentifier:
Id: PoiStencil
Name: Poi Stencils
Version:
Author:
Description:
AllowDuplicates: 0
ForceDuplicateLogic: 0
EnableProperties: []
Properties: []
ModuleDependencies: []
IncompatibleWith: []
Templates:
- Template: {fileID: 3419128985690004776, guid: 32ded4667257b3f4e93d2d3058e89155, type: 3}
Keywords:
- RENDERING_PROPERTIES
NeedsVariant: 0
Queue: 101
- Template: {fileID: 7180907857290092215, guid: 32ded4667257b3f4e93d2d3058e89155, type: 3}
Keywords:
- BASE_PASS_STENCIL
- ADD_PASS_STENCIL
- SHADOW_PASS_STENCIL
- DEPTH_PASS_STENCIL
- MOTION_VECTORS_PASS_STENCIL
NeedsVariant: 0
Queue: 100
Functions: []
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2bc9a6f3110c97941a79c0f76a712bae
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,40 @@
%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: 1039f25740a92fc4292bb1d94d07ad19, type: 3}
m_Name: VRLM_PoiStencilTwoPass
m_EditorClassIdentifier:
Id: PoiStencilTwoPass
Name: Poi Stencil Two Pass
Version:
Author:
Description:
AllowDuplicates: 0
ForceDuplicateLogic: 0
EnableProperties: []
Properties: []
ModuleDependencies: []
IncompatibleWith: []
Templates:
- Template: {fileID: 4498648522856964495, guid: 32ded4667257b3f4e93d2d3058e89155,
type: 3}
Keywords:
- RENDERING_PROPERTIES
NeedsVariant: 0
Queue: 102
- Template: {fileID: -8545981536984775487, guid: 32ded4667257b3f4e93d2d3058e89155,
type: 3}
Keywords:
- BASETWO_PASS_STENCIL
NeedsVariant: 0
Queue: 101
Functions: []
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 08bb4be3026823d4292cacd0c4a00f90
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,96 @@
#T#PoiStencilProperties
// Stencils
[HideInInspector] m_start_StencilPassOptions ("Stencil--{button_help:{text:Tutorial,action:{type:URL,data:https://www.poiyomi.com/rendering/stencil},hover:Documentation}}", Float) = 0
[ThryWideEnum(Simple, 0, Front Face vs Back Face, 1)] _StencilType ("Stencil Type", Float) = 0
[ByteSlider] _StencilRef ("Stencil Reference Value", Range(0, 255)) = 0
[ByteSlider] _StencilReadMask ("Stencil ReadMask Value", Range(0, 255)) = 255
[ByteSlider] _StencilWriteMask ("Stencil WriteMask Value", Range(0, 255)) = 255
[Enum(UnityEngine.Rendering.StencilOp)] _StencilPassOp ("Stencil Pass Op--{condition_showS:(_StencilType==0)}", Float) = 0
[Enum(UnityEngine.Rendering.StencilOp)] _StencilFailOp ("Stencil Fail Op--{condition_showS:(_StencilType==0)}", Float) = 0
[Enum(UnityEngine.Rendering.StencilOp)] _StencilZFailOp ("Stencil ZFail Op--{condition_showS:(_StencilType==0)}", Float) = 0
[Enum(UnityEngine.Rendering.CompareFunction)] _StencilCompareFunction ("Stencil Compare Function--{condition_showS:(_StencilType==0)}", Float) = 8
[HideInInspector] s_start_StencilPassBackOptions("Back--{condition_showS:(_StencilType==1)}", Float) = 0
[Helpbox(1, 2, 1)] _FFBFStencilHelp0 ("Front Face and Back Face Stencils only work when locked in due to Unity's Stencil management", Int) = 0
[Enum(UnityEngine.Rendering.StencilOp)] _StencilBackPassOp ("Back Pass Op", Float) = 0
[Enum(UnityEngine.Rendering.StencilOp)] _StencilBackFailOp ("Back Fail Op", Float) = 0
[Enum(UnityEngine.Rendering.StencilOp)] _StencilBackZFailOp ("Back ZFail Op", Float) = 0
[Enum(UnityEngine.Rendering.CompareFunction)] _StencilBackCompareFunction ("Back Compare Function", Float) = 8
[HideInInspector] s_end_StencilPassBackOptions("Back", Float) = 0
[HideInInspector] s_start_StencilPassFrontOptions("Front--{condition_showS:(_StencilType==1)}", Float) = 0
[Helpbox(1, 2, 1)] _FFBFStencilHelp1 ("Front Face and Back Face Stencils only work when locked in due to Unity's Stencil management", Int) = 0
[Enum(UnityEngine.Rendering.StencilOp)] _StencilFrontPassOp ("Front Pass Op", Float) = 0
[Enum(UnityEngine.Rendering.StencilOp)] _StencilFrontFailOp ("Front Fail Op", Float) = 0
[Enum(UnityEngine.Rendering.StencilOp)] _StencilFrontZFailOp ("Front ZFail Op", Float) = 0
[Enum(UnityEngine.Rendering.CompareFunction)] _StencilFrontCompareFunction ("Front Compare Function", Float) = 8
[HideInInspector] s_end_StencilPassFrontOptions("Front", Float) = 0
[HideInInspector] m_start_StencilCalculator ("Stencil Calculator--{persistent_expand:true,default_expand:false}", Float) = 0
[ToggleUI(true)] _StencilIsOccluded ("Simulate ZFail", Float) = 0
[HideInInspector] s_start_StencilCalcSimple ("Calculator--{condition_showS:(_StencilType==0),persistent_expand:true,default_expand:true}", Float) = 1
[HideInInspector][IntRange] _StencilBufferValue ("Existing Buffer Value", Range(0, 255)) = 0
[HideInInspector] ss_start_StencilGridSimple ("Bit Grid--{persistent_expand:true,default_expand:true}", Float) = 1
[ThryStencilCalculator]
[ThryRichLabel(10)] _StencilCheckResult ("<i>Simulated in the editor. The GPU performs its own stencil test.</i>", Float) = 0
[HideInInspector] ss_end_StencilGridSimple ("Bit Grid", Float) = 0
[HideInInspector] ss_start_StencilSummarySimple ("Summary--{tooltip:Shows the stencil test and the operation selected by its outcome.,persistent_expand:true,default_expand:true}", Float) = 1
[ThryStencilSummary]
[ThryRichLabel(10)] _StencilSummaryNote ("<i>Editing these dropdowns writes to the properties above.</i>", Float) = 0
[Helpbox(1, 0, 5)] _StencilCheckFailed ("The pixel's stencil check would have failed--{condition_showS:(_StencilType==0 && _StencilCheckResult==0)}", Int) = 0
[Helpbox(1, 0, 4)] _StencilCheckPassed ("The pixel's stencil check would have passed--{condition_showS:(_StencilType==0 && _StencilCheckResult==1)}", Int) = 0
[HideInInspector] ss_end_StencilSummarySimple ("Summary", Float) = 0
[HideInInspector] s_end_StencilCalcSimple ("Calculator", Float) = 0
[HideInInspector] s_start_StencilCalcFront ("Front Faces--{condition_showS:(_StencilType==1),persistent_expand:true,default_expand:false}", Float) = 0
[HideInInspector] ss_start_StencilGridFront ("Bit Grid--{persistent_expand:true,default_expand:false}", Float) = 0
[ThryStencilCalculator(Front)]
[ThryRichLabel(10)] _StencilFrontCheckResult ("<i>Front face simulation.</i>", Float) = 0
[HideInInspector] ss_end_StencilGridFront ("Bit Grid", Float) = 0
[HideInInspector] ss_start_StencilSummaryFront ("Summary--{persistent_expand:true,default_expand:false}", Float) = 0
[ThryStencilSummary(Front)]
[ThryRichLabel(10)] _StencilFrontSummaryNote ("<i>Front face test and selected operation.</i>", Float) = 0
[HideInInspector] ss_end_StencilSummaryFront ("Summary", Float) = 0
[HideInInspector] s_end_StencilCalcFront ("Front Faces", Float) = 0
[HideInInspector] s_start_StencilCalcBack ("Back Faces--{condition_showS:(_StencilType==1),persistent_expand:true,default_expand:false}", Float) = 0
[HideInInspector] ss_start_StencilGridBack ("Bit Grid--{persistent_expand:true,default_expand:false}", Float) = 0
[ThryStencilCalculator(Back)]
[ThryRichLabel(10)] _StencilBackCheckResult ("<i>Back face simulation.</i>", Float) = 0
[HideInInspector] ss_end_StencilGridBack ("Bit Grid", Float) = 0
[HideInInspector] ss_start_StencilSummaryBack ("Summary--{persistent_expand:true,default_expand:false}", Float) = 0
[ThryStencilSummary(Back)]
[ThryRichLabel(10)] _StencilBackSummaryNote ("<i>Back face test and selected operation.</i>", Float) = 0
[HideInInspector] ss_end_StencilSummaryBack ("Summary", Float) = 0
[HideInInspector] s_end_StencilCalcBack ("Back Faces", Float) = 0
[HideInInspector] m_end_StencilCalculator ("Stencil Calculator", Float) = 0
[HideInInspector] m_end_StencilPassOptions ("Stencil", Float) = 0
#T#PoiStencilImplementation
Stencil
{
Ref [_StencilRef]
ReadMask [_StencilReadMask]
WriteMask [_StencilWriteMask]
//ifex _StencilType==1
Comp [_StencilCompareFunction]
Pass [_StencilPassOp]
Fail [_StencilFailOp]
ZFail [_StencilZFailOp]
//endex
//ifex _StencilType==0
CompBack [_StencilBackCompareFunction]
PassBack [_StencilBackPassOp]
FailBack [_StencilBackFailOp]
ZFailBack [_StencilBackZFailOp]
CompFront [_StencilFrontCompareFunction]
PassFront [_StencilFrontPassOp]
FailFront [_StencilFrontFailOp]
ZFailFront [_StencilFrontZFailOp]
//endex
}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 32ded4667257b3f4e93d2d3058e89155
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: b8e1b7bf6f1d9674dbe75fe157540c41, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d788284b5062bff41882fa2c54858b0e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,78 @@
%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: 1039f25740a92fc4292bb1d94d07ad19, type: 3}
m_Name: VRLM_PoiBentNormals
m_EditorClassIdentifier:
Id: 'PoiBentNormal '
Name: 'PoiBentNormal '
Version:
Author: Poiyomi
Description:
AllowDuplicates: 0
ForceDuplicateLogic: 0
EnableProperties: []
Properties: []
ModuleDependencies: []
IncompatibleWith: []
Templates:
- Template: {fileID: 5553924226108751252, guid: a6e1e465f3d6d2a46ad86e997587a24e, type: 3}
Keywords:
- MAIN_PROPERTIES
NeedsVariant: 0
Queue: 1
- Template: {fileID: 3950960635939948127, guid: a6e1e465f3d6d2a46ad86e997587a24e, type: 3}
Keywords:
- BASE_PASS_KEYWORDS
- ADD_PASS_KEYWORDS
- DEPTH_PASS_KEYWORDS
- META_PASS_KEYWORDS
- OUTLINE_PASS_KEYWORDS
- LILFUR_PASS_KEYWORDS
NeedsVariant: 0
Queue: 0
- Template: {fileID: -6843841147796967378, guid: a6e1e465f3d6d2a46ad86e997587a24e, type: 3}
Keywords:
- BASE_PROPERTY_VARIABLES_EXPOSED
- ADD_PROPERTY_VARIABLES_EXPOSED
- DEPTH_PROPERTY_VARIABLES_EXPOSED
- META_PROPERTY_VARIABLES_EXPOSED
- OUTLINE_PROPERTY_VARIABLES_EXPOSED
- LILFUR_PROPERTY_VARIABLES_EXPOSED
NeedsVariant: 0
Queue: 0
- Template: {fileID: 7548655475914244773, guid: a6e1e465f3d6d2a46ad86e997587a24e, type: 3}
Keywords:
- BASE_PROPERTY_VARIABLES
- ADD_PROPERTY_VARIABLES
- DEPTH_PROPERTY_VARIABLES
- META_PROPERTY_VARIABLES
- OUTLINE_PROPERTY_VARIABLES
- LILFUR_PROPERTY_VARIABLES
NeedsVariant: 0
Queue: 0
- Template: {fileID: -6073407395972975813, guid: a6e1e465f3d6d2a46ad86e997587a24e, type: 3}
Keywords:
- FRAGMENT_BASE_FUNCTIONS
- FRAGMENT_ADD_FUNCTIONS
- FRAGMENT_DEPTH_FUNCTIONS
- FRAGMENT_META_FUNCTIONS
- FRAGMENT_OUTLINE_FUNCTIONS
- FRAGMENT_LILFUR_FUNCTIONS
NeedsVariant: 0
Queue: 0
- Template: {fileID: -723536562655185553, guid: a6e1e465f3d6d2a46ad86e997587a24e, type: 3}
Keywords:
- FRAGMENT_NORMAL_CALCULATION
NeedsVariant: 0
Queue: 0
Functions: []
AdditionalSerializedData:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e4e815c3e8fde7f4f9044ac4e5c811be
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,88 @@
#T#PoiBentNormalProperties
//ifex _EnableBentNormal==0
[HideInInspector] m_start_BentNormal (" Bent Normal Map--{reference_property:_EnableBentNormal,button_help:{text:Tutorial,action:{type:URL,data:https://www.poiyomi.com/color-and-normals/bent-normal-map},hover:Documentation}}", Float) = 0
[HideInInspector][ThryToggle(POI_BENTNORMALMAP)]_EnableBentNormal ("Enable", Int) = 0
[Normal]_BentNormalMap ("Bent Normal Map--{reference_properties:[_BentNormalMapPan, _BentNormalMapUV, _BentNormalMapStochastic]}", 2D) = "bump" { }
[ThryHideInInspector][Vector2]_BentNormalMapPan ("Panning", Vector) = (0, 0, 0, 0)
[ThryHideInInspector][ThryWideEnum(UV0, 0, UV1, 1, UV2, 2, UV3, 3, Panosphere, 4, World Pos, 5, Local Pos, 8, Polar UV, 6, Distorted UV, 7, Matcap, 9, Screen Space, 10)] _BentNormalMapUV ("UV", Int) = 0
[ThryHideInInspector][ToggleUI]_BentNormalMapStochastic ("Stochastic Sampling", Float) = 0
_BentNormalSpecOccStrength ("Specular Occlusion Strength", Range(0, 1)) = 1
[ToggleUI]_BentNormalIndirectDiffuse ("Use for Indirect Diffuse", Float) = 1
[HideInInspector] m_end_BentNormal ("", Float) = 0
//endex
#T#PoiBentNormalKeywords
//ifex _EnableBentNormal==0
#pragma shader_feature_local POI_BENTNORMALMAP
//endex
#T#PoiBentNormalVariablesExposed
//ifex _EnableBentNormal==0
#ifdef POI_BENTNORMALMAP
float4 _BentNormalMap_ST;
float2 _BentNormalMapPan;
float _BentNormalMapUV;
float _BentNormalMapStochastic;
half _BentNormalSpecOccStrength;
float _BentNormalIndirectDiffuse;
#endif
//endex
#T#PoiBentNormalVariables
//ifex _EnableBentNormal==0
#ifdef POI_BENTNORMALMAP
#if defined(PROP_BENTNORMALMAP) || !defined(OPTIMIZER_ENABLED)
Texture2D _BentNormalMap;
#endif
#endif
//endex
#T#PoiBentNormalFunctions
//ifex _EnableBentNormal==0
#ifdef POI_BENTNORMALMAP
// Jimenez 2016, "Practical Realtime Strategies for Accurate Indirect Occlusion"
// Cone intersection for specular occlusion using bent normal
half PoiSpecularOcclusionBentNormal(half3 reflectionDir, half3 bentNormal, half occlusion, half roughness)
{
roughness = max(roughness, 0.01);
// Unoccluded cone angle from scalar AO
float cosUnoccludedAngle = sqrt(1.0 - occlusion);
float unoccludedAngle = acos(cosUnoccludedAngle);
// Specular cone angle from roughness
float cosSpecularAngle = exp2(-3.32192809489 * (roughness * roughness));
float specularAngle = acos(cosSpecularAngle);
// Angle between bent normal and reflection direction
float angleBentToReflection = acos(saturate(dot(bentNormal, reflectionDir)));
// Cone intersection (smoothstep approximation)
float angleSum = unoccludedAngle + specularAngle;
float angleDiff = abs(unoccludedAngle - specularAngle);
float intersection = 1.0 - smoothstep(0.0, 1.0, saturate((angleBentToReflection - angleDiff) / max(angleSum - angleDiff, 0.0001)));
return min(intersection, occlusion);
}
#endif
//endex
#T#PoiBentNormalSample
//ifex _EnableBentNormal==0
#if defined(POI_BENTNORMALMAP) && !defined(POI_PASS_SHADOW) && !defined(POI_PASS_MOTION_VECTORS)
#if defined(PROP_BENTNORMALMAP) || !defined(OPTIMIZER_ENABLED)
float3 bentNormalTS = PoiUnpackNormalScale(
POI2D_SAMPLER_PAN_STOCHASTIC(_BentNormalMap, _MainTex,
poiUV(poiMesh.uv[_BentNormalMapUV].xy, _BentNormalMap_ST),
_BentNormalMapPan, _BentNormalMapStochastic), 1.0);
// Convert from tangent space to world space using vertex TBN frame
// (bent normals are baked relative to geometric normal, not detail normal)
poiMesh.bentNormal = normalize(
bentNormalTS.x * poiMesh.tangent[0] +
bentNormalTS.y * poiMesh.binormal[0] +
bentNormalTS.z * poiMesh.normals[0]
);
poiMesh.hasBentNormal = 1.0;
#endif
#endif
//endex
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: a6e1e465f3d6d2a46ad86e997587a24e
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: b8e1b7bf6f1d9674dbe75fe157540c41, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: fc3947cb72cadb74bb1a1ca7c08cce1e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Loaded 100 of 1107 files, more files were not shown because too many files have changed in this diff. Show more