-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add UnityGLTFShaderVariants for issue: https://github.com/KhronosGrou… #213
Open
Vytek
wants to merge
1
commit into
KhronosGroup:main
Choose a base branch
from
Vytek:master
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
263 changes: 263 additions & 0 deletions
263
UnityGLTF/Assets/Resources/UnityGLTFShaderVariants.shadervariants
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,263 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!200 &20000000 | ||
ShaderVariantCollection: | ||
m_ObjectHideFlags: 0 | ||
m_PrefabParentObject: {fileID: 0} | ||
m_PrefabInternal: {fileID: 0} | ||
m_Name: UnityGLTFShaderVariants | ||
m_Shaders: | ||
data: | ||
first: {fileID: 66, guid: 0000000000000000f000000000000000, type: 0} | ||
second: | ||
variants: | ||
- keywords: | ||
passType: 0 | ||
data: | ||
first: {fileID: 45, guid: 0000000000000000f000000000000000, type: 0} | ||
second: | ||
variants: | ||
- keywords: DIRECTIONAL _EMISSION _SPECGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _SPECGLOSSMAP | ||
passType: 5 | ||
- keywords: SHADOWS_DEPTH _SPECGLOSSMAP | ||
passType: 8 | ||
data: | ||
first: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} | ||
second: | ||
variants: | ||
- keywords: DIRECTIONAL | ||
passType: 4 | ||
- keywords: DIRECTIONAL SHADOWS_SCREEN | ||
passType: 4 | ||
- keywords: DIRECTIONAL _EMISSION | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHAPREMULTIPLY_ON | ||
passType: 4 | ||
- keywords: DIRECTIONAL | ||
passType: 5 | ||
- keywords: DIRECTIONAL _ALPHAPREMULTIPLY_ON | ||
passType: 5 | ||
- keywords: SHADOWS_DEPTH | ||
passType: 8 | ||
- keywords: SHADOWS_DEPTH _ALPHAPREMULTIPLY_ON | ||
passType: 8 | ||
data: | ||
first: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} | ||
second: | ||
variants: | ||
- keywords: SHADOWS_SPLIT_SPHERES | ||
passType: 0 | ||
data: | ||
first: {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} | ||
second: | ||
variants: | ||
- keywords: DIRECTIONAL | ||
passType: 4 | ||
- keywords: DIRECTIONAL | ||
passType: 5 | ||
- keywords: SHADOWS_DEPTH | ||
passType: 8 | ||
data: | ||
first: {fileID: 106, guid: 0000000000000000f000000000000000, type: 0} | ||
second: | ||
variants: | ||
- keywords: _SUNDISK_SIMPLE | ||
passType: 0 | ||
data: | ||
first: {fileID: 9000, guid: 0000000000000000f000000000000000, type: 0} | ||
second: | ||
variants: | ||
- keywords: | ||
passType: 0 | ||
data: | ||
first: {fileID: 9001, guid: 0000000000000000f000000000000000, type: 0} | ||
second: | ||
variants: | ||
- keywords: | ||
passType: 0 | ||
data: | ||
first: {fileID: 9002, guid: 0000000000000000f000000000000000, type: 0} | ||
second: | ||
variants: | ||
- keywords: | ||
passType: 0 | ||
data: | ||
first: {fileID: 4800000, guid: 0ffe2976cdefd434c8fcd886ffa69322, type: 3} | ||
second: | ||
variants: | ||
- keywords: DIRECTIONAL | ||
passType: 4 | ||
- keywords: DIRECTIONAL _EMISSION | ||
passType: 4 | ||
- keywords: DIRECTIONAL _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _EMISSION _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _EMISSION | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _EMISSION _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _EMISSION | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _EMISSION _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _SPECGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _EMISSION _SPECGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _NORMALMAP _SPECGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _EMISSION _NORMALMAP _SPECGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _SPECGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _EMISSION _SPECGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _NORMALMAP _SPECGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _EMISSION _NORMALMAP _SPECGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _SPECGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _EMISSION _SPECGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _NORMALMAP _SPECGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _EMISSION _NORMALMAP _SPECGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL | ||
passType: 5 | ||
- keywords: DIRECTIONAL _NORMALMAP | ||
passType: 5 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON | ||
passType: 5 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _NORMALMAP | ||
passType: 5 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON | ||
passType: 5 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _NORMALMAP | ||
passType: 5 | ||
- keywords: DIRECTIONAL _SPECGLOSSMAP | ||
passType: 5 | ||
- keywords: DIRECTIONAL _NORMALMAP _SPECGLOSSMAP | ||
passType: 5 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _SPECGLOSSMAP | ||
passType: 5 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _NORMALMAP _SPECGLOSSMAP | ||
passType: 5 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _SPECGLOSSMAP | ||
passType: 5 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _NORMALMAP _SPECGLOSSMAP | ||
passType: 5 | ||
- keywords: SHADOWS_DEPTH | ||
passType: 8 | ||
- keywords: SHADOWS_DEPTH _ALPHATEST_ON | ||
passType: 8 | ||
- keywords: SHADOWS_DEPTH _ALPHABLEND_ON | ||
passType: 8 | ||
- keywords: SHADOWS_DEPTH _SPECGLOSSMAP | ||
passType: 8 | ||
- keywords: SHADOWS_DEPTH _ALPHATEST_ON _SPECGLOSSMAP | ||
passType: 8 | ||
- keywords: SHADOWS_DEPTH _ALPHABLEND_ON _SPECGLOSSMAP | ||
passType: 8 | ||
data: | ||
first: {fileID: 4800000, guid: 9836e4430eb58204086d7d1440e16a4f, type: 3} | ||
second: | ||
variants: | ||
- keywords: DIRECTIONAL | ||
passType: 4 | ||
- keywords: DIRECTIONAL _EMISSION | ||
passType: 4 | ||
- keywords: DIRECTIONAL _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _EMISSION _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _EMISSION | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _EMISSION _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _EMISSION | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _EMISSION _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _METALLICGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _EMISSION _METALLICGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _METALLICGLOSSMAP _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _EMISSION _METALLICGLOSSMAP _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL SHADOWS_SCREEN _EMISSION _METALLICGLOSSMAP _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _METALLICGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _EMISSION _METALLICGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _METALLICGLOSSMAP _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _EMISSION _METALLICGLOSSMAP _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _METALLICGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _EMISSION _METALLICGLOSSMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _METALLICGLOSSMAP _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _EMISSION _METALLICGLOSSMAP _NORMALMAP | ||
passType: 4 | ||
- keywords: DIRECTIONAL | ||
passType: 5 | ||
- keywords: DIRECTIONAL _NORMALMAP | ||
passType: 5 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON | ||
passType: 5 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _NORMALMAP | ||
passType: 5 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON | ||
passType: 5 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _NORMALMAP | ||
passType: 5 | ||
- keywords: DIRECTIONAL _METALLICGLOSSMAP | ||
passType: 5 | ||
- keywords: DIRECTIONAL _METALLICGLOSSMAP _NORMALMAP | ||
passType: 5 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _METALLICGLOSSMAP | ||
passType: 5 | ||
- keywords: DIRECTIONAL _ALPHATEST_ON _METALLICGLOSSMAP _NORMALMAP | ||
passType: 5 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _METALLICGLOSSMAP | ||
passType: 5 | ||
- keywords: DIRECTIONAL _ALPHABLEND_ON _METALLICGLOSSMAP _NORMALMAP | ||
passType: 5 | ||
- keywords: SHADOWS_DEPTH | ||
passType: 8 | ||
- keywords: SHADOWS_DEPTH _ALPHATEST_ON | ||
passType: 8 | ||
- keywords: SHADOWS_DEPTH _ALPHABLEND_ON | ||
passType: 8 | ||
- keywords: SHADOWS_DEPTH _METALLICGLOSSMAP | ||
passType: 8 | ||
- keywords: SHADOWS_DEPTH _ALPHATEST_ON _METALLICGLOSSMAP | ||
passType: 8 | ||
- keywords: SHADOWS_DEPTH _ALPHABLEND_ON _METALLICGLOSSMAP | ||
passType: 8 |
9 changes: 9 additions & 0 deletions
9
UnityGLTF/Assets/Resources/UnityGLTFShaderVariants.shadervariants.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I don't think .cginc file should be included in the PR for compatibility concerns.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How to modify the PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://stackoverflow.com/questions/9790448/how-to-update-a-pull-request-from-forked-repo