[Add] All in one shader
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7b2a329340dffb344a08d395bbb760bd
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a985c5982fd34304b91e7fcef5a7c64f
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1c2677789aedba1449c2462ab739503f
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,454 @@
|
||||
%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: e9adb408486385f4db34ebf41514603e, type: 3}
|
||||
m_Name: EffectsProfileCollection
|
||||
m_EditorClassIdentifier: AllIn13DShaderAssemebly.Editor::AllIn13DShader.EffectsProfileCollection
|
||||
generalProfile:
|
||||
id:
|
||||
profileName:
|
||||
shaderGUID:
|
||||
groups:
|
||||
- effectGroupConfig: {fileID: 11400000, guid: 05a6bce58cfc83a4293b054fcfc62a81, type: 2}
|
||||
entries:
|
||||
- effectID: LIGHTMODEL
|
||||
displayName: Light Model
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: SHADINGMODEL
|
||||
displayName: Shading Model
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle:
|
||||
- propertyName:
|
||||
isEnabled: 0
|
||||
keyword: _METALLIC_MAP_ON
|
||||
displayName: Use Metallic(R) / Smoothness(A) Map?
|
||||
- effectID: SPECULARMODEL
|
||||
displayName: Specular Model
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: REFLECTIONS
|
||||
displayName: Reflections
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: NORMAL_MAP
|
||||
displayName: Normal Map
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: FLAT_NORMALS
|
||||
displayName: Flat Normals
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: CUSTOM_SHADOW_COLOR
|
||||
displayName: Custom Shadow Color
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: AFFECTED_BY_LIGHTMAPS
|
||||
displayName: Affected by lightmaps
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle:
|
||||
- propertyName:
|
||||
isEnabled: 0
|
||||
keyword: _LIGHTMAP_COLOR_CORRECTION_ON
|
||||
displayName: Lightmap Color Correction?
|
||||
- effectID: CUSTOM_AMBIENT_LIGHT
|
||||
displayName: Custom Ambient Light
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: CAST_SHADOWS_ON
|
||||
displayName: Cast Shadows
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: RECEIVE_SHADOWS
|
||||
displayName: Receive Shadows
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum:
|
||||
- propertyName: _ReceivedShadowsType
|
||||
kwIndexEnabled: 0
|
||||
displayNames:
|
||||
- Classic
|
||||
- Stylized
|
||||
keywords:
|
||||
- _RECEIVEDSHADOWSTYPE_CLASSIC
|
||||
- _RECEIVEDSHADOWSTYPE_STYLIZED
|
||||
subkeywordEntriesToggle: []
|
||||
- effectGroupConfig: {fileID: 11400000, guid: fcdc7c904b0215f4aabfa8ced0068841, type: 2}
|
||||
entries:
|
||||
- effectID: COLOR_RAMP
|
||||
displayName: Color Ramp
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum:
|
||||
- propertyName: _ColorRampLightingStage
|
||||
kwIndexEnabled: 0
|
||||
displayNames:
|
||||
- BeforeLighting
|
||||
- AfterLighting
|
||||
keywords:
|
||||
- _COLORRAMPLIGHTINGSTAGE_BEFORELIGHTING
|
||||
- _COLORRAMPLIGHTINGSTAGE_AFTERLIGHTING
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: AOMAP
|
||||
displayName: AO Map
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: HIGHLIGHTS
|
||||
displayName: Highlights
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: RIM_LIGHTING
|
||||
displayName: Rim or Fresnel
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum:
|
||||
- propertyName: _RimLightingStage
|
||||
kwIndexEnabled: 0
|
||||
displayNames:
|
||||
- BeforeLighting
|
||||
- BeforeLightingLast
|
||||
- AfterLighting
|
||||
keywords:
|
||||
- _RIMLIGHTINGSTAGE_BEFORELIGHTING
|
||||
- _RIMLIGHTINGSTAGE_BEFORELIGHTINGLAST
|
||||
- _RIMLIGHTINGSTAGE_AFTERLIGHTING
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: GREYSCALE
|
||||
displayName: Greyscale
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum:
|
||||
- propertyName: _GreyScaleStage
|
||||
kwIndexEnabled: 0
|
||||
displayNames:
|
||||
- BeforeLighting
|
||||
- AfterLighting
|
||||
keywords:
|
||||
- _GREYSCALESTAGE_BEFORELIGHTING
|
||||
- _GREYSCALESTAGE_AFTERLIGHTING
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: POSTERIZE
|
||||
displayName: Posterize
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: HUE_SHIFT
|
||||
displayName: Hue Shift
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: EMISSION
|
||||
displayName: Emission
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: HOLOGRAM
|
||||
displayName: Hologram
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: MATCAP
|
||||
displayName: Matcap
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum:
|
||||
- propertyName: _MatcapBlendMode
|
||||
kwIndexEnabled: 0
|
||||
displayNames:
|
||||
- Multiply
|
||||
- Replace
|
||||
keywords:
|
||||
- _MATCAPBLENDMODE_MULTIPLY
|
||||
- _MATCAPBLENDMODE_REPLACE
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: HIT
|
||||
displayName: Hit
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: CONTRAST_BRIGHTNESS
|
||||
displayName: Contrast and Brightness
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: HEIGHT_GRADIENT
|
||||
displayName: Height Gradient
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum:
|
||||
- propertyName: _HeightGradientPositionSpace
|
||||
kwIndexEnabled: 0
|
||||
displayNames:
|
||||
- Local
|
||||
- World
|
||||
keywords:
|
||||
- _HEIGHTGRADIENTPOSITIONSPACE_LOCAL
|
||||
- _HEIGHTGRADIENTPOSITIONSPACE_WORLD
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: INTERSECTION_GLOW
|
||||
displayName: Intersection Glow
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: ALBEDO_VERTEX_COLOR
|
||||
displayName: Albedo From Vertex Color
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum:
|
||||
- propertyName: _AlbedoVertexColorMode
|
||||
kwIndexEnabled: 0
|
||||
displayNames:
|
||||
- Multiply
|
||||
- Replace
|
||||
keywords:
|
||||
- _ALBEDOVERTEXCOLORMODE_MULTIPLY
|
||||
- _ALBEDOVERTEXCOLORMODE_REPLACE
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: TRIPLANAR_MAPPING
|
||||
displayName: Triplanar Mapping
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum:
|
||||
- propertyName: _TriplanarNormalSpace
|
||||
kwIndexEnabled: 0
|
||||
displayNames:
|
||||
- Local
|
||||
- World
|
||||
keywords:
|
||||
- _TRIPLANARNORMALSPACE_LOCAL
|
||||
- _TRIPLANARNORMALSPACE_WORLD
|
||||
subkeywordEntriesToggle:
|
||||
- propertyName:
|
||||
isEnabled: 0
|
||||
keyword: _TRIPLANAR_NOISE_TRANSITION_ON
|
||||
displayName: Noise Transition
|
||||
- effectID: TEXTURE_BLENDING
|
||||
displayName: Texture Blending
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum:
|
||||
- propertyName: _TextureBlendingSource
|
||||
kwIndexEnabled: 0
|
||||
displayNames:
|
||||
- VertexColor
|
||||
- Texture
|
||||
keywords:
|
||||
- _TEXTUREBLENDINGSOURCE_VERTEXCOLOR
|
||||
- _TEXTUREBLENDINGSOURCE_TEXTURE
|
||||
- propertyName: _TextureBlendingMode
|
||||
kwIndexEnabled: 0
|
||||
displayNames:
|
||||
- RGB
|
||||
- BlackAndWhite
|
||||
keywords:
|
||||
- _TEXTUREBLENDINGMODE_RGB
|
||||
- _TEXTUREBLENDINGMODE_BLACKANDWHITE
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: DEPTH_COLORING
|
||||
displayName: Depth Coloring
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: SUBSURFACE_SCATTERING
|
||||
displayName: Fake Subsurface Scattering
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectGroupConfig: {fileID: 11400000, guid: d45649322d809684a8f280736df5ebc7, type: 2}
|
||||
entries:
|
||||
- effectID: ALPHA_CUTOFF
|
||||
displayName: Alpha Cutoff
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: FADE
|
||||
displayName: Fade
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum:
|
||||
- propertyName: _FadeUVSet
|
||||
kwIndexEnabled: 0
|
||||
displayNames:
|
||||
- UV1
|
||||
- UV2
|
||||
- WORLD_SPACE
|
||||
keywords:
|
||||
- _FADEUVSET_UV1
|
||||
- _FADEUVSET_UV2
|
||||
- _FADEUVSET_WORLD_SPACE
|
||||
subkeywordEntriesToggle:
|
||||
- propertyName:
|
||||
isEnabled: 0
|
||||
keyword: _FADE_BURN_ON
|
||||
displayName: Use Fade Burn Color?
|
||||
- effectID: INTERSECTION_FADE
|
||||
displayName: Intersection Fade
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: ALPHA_ROUND
|
||||
displayName: Alpha Round
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: FADE_BY_CAM_DISTANCE
|
||||
displayName: Fade By Cam Distance
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle:
|
||||
- propertyName:
|
||||
isEnabled: 0
|
||||
keyword: _FADE_BY_CAM_DISTANCE_NEAR_FADE
|
||||
displayName: Near Fade
|
||||
- effectID: DITHER
|
||||
displayName: Dither
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectGroupConfig: {fileID: 11400000, guid: 987f969d8d3fec24bbb35df7779ba52b, type: 2}
|
||||
entries:
|
||||
- effectID: VERTEX_SHAKE
|
||||
displayName: Vertex Shake
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: VERTEX_INFLATE
|
||||
displayName: Vertex Inflate
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: VERTEX_DISTORTION
|
||||
displayName: Vertex Distortion
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: VOXELIZE
|
||||
displayName: Voxelize
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: GLITCH
|
||||
displayName: Glitch
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: RECALCULATE_NORMALS
|
||||
displayName: Recalculate Normals
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: WIND
|
||||
displayName: Wind
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle:
|
||||
- propertyName:
|
||||
isEnabled: 0
|
||||
keyword: _USE_WIND_VERTICAL_MASK
|
||||
displayName: Use Vertical Mask?
|
||||
- effectGroupConfig: {fileID: 11400000, guid: 2f3fcb0996a83b64599ce17553aa6b13, type: 2}
|
||||
entries:
|
||||
- effectID: SCROLL_TEXTURE
|
||||
displayName: Scroll Texture
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: SCREEN_SPACE_UV
|
||||
displayName: Screen Space UV
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: PIXELATE
|
||||
displayName: Pixelate
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: STOCHASTIC_SAMPLING
|
||||
displayName: Stochastic Sampling
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: WAVE_UV
|
||||
displayName: Wave UV On
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: HAND_DRAWN
|
||||
displayName: Hand Drawn
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectID: UV_DISTORTION
|
||||
displayName: Distortion
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
- effectGroupConfig: {fileID: 11400000, guid: d29aa9c55e3576d4bad55ec71545fe82, type: 2}
|
||||
entries:
|
||||
- effectID: OUTLINETYPE
|
||||
displayName: Outline Type
|
||||
isEnabled: 1
|
||||
kwEnabledIndex: 0
|
||||
subkeywordEntriesEnum: []
|
||||
subkeywordEntriesToggle: []
|
||||
profiles: []
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 338be309f1396204884361d9bcd1dde1
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b4f20d402f36d7541bc02c148de29092
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b200bc2717fdb924b8146e41ffb099a0
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8d5ea0b6ac98f1342803ac5a9c4bae6e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bcd13420d4726c7468cc144daea0974d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 54669f4ed8a497a4aa02326c998cfe96
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2aebb80a8c8823d4fb6931bf98c49e17
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4f8f01dc480b3c84d8736e559f2e8bc1
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0e04a0b45280046418f226a943d19ae8
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,43 @@
|
||||
%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: 592122c0ab3d6c04d85891bcd2f332bc, type: 3}
|
||||
m_Name: GlobalConfiguration
|
||||
m_EditorClassIdentifier: AllIn13DShaderAssemebly.Editor::AllIn13DShader.GlobalConfiguration
|
||||
projectType: 2
|
||||
standardBasicMaterial: {fileID: 2100000, guid: 1df0aef2ca6d85a4b9bb7478096c635a, type: 2}
|
||||
standardPBRMaterial: {fileID: 2100000, guid: fed1698affe6c124c8eece7c36b256f0, type: 2}
|
||||
toonMaterial: {fileID: 2100000, guid: deae43ec6cafe38498ce343202e24586, type: 2}
|
||||
allIn13dDShaderLookMaterial: {fileID: 2100000, guid: c47ffb1264d98194ca46e4502b86c74f, type: 2}
|
||||
defaultPreset: {fileID: 2100000, guid: fed1698affe6c124c8eece7c36b256f0, type: 2}
|
||||
rootPluginPath: Assets\Plugins\AllIn13DShader
|
||||
globalConfigFolderPath: Assets\Plugins\AllIn13DShader\AllIn3DShaderConfig
|
||||
exportFolderPath: Assets\Plugins\AllIn13DShader\AllIn3DShaderConfig\Export
|
||||
materialSavePath: Assets\Plugins\AllIn13DShader\AllIn3DShaderConfig\Export\Materials
|
||||
renderImageSavePath: Assets\Plugins\AllIn13DShader\AllIn3DShaderConfig\Export\Images
|
||||
normalMapSavePath: Assets\Plugins\AllIn13DShader\AllIn3DShaderConfig\Export\Normal
|
||||
Maps
|
||||
gradientSavePath: Assets\Plugins\AllIn13DShader\AllIn3DShaderConfig\Export\Gradients
|
||||
atlasesSavePath: Assets\Plugins\AllIn13DShader\AllIn3DShaderConfig\Export\Atlases
|
||||
noiseSavePath: Assets\Plugins\AllIn13DShader\AllIn3DShaderConfig\Export\Noises
|
||||
bakedShaderSavePath: Assets\Plugins\AllIn13DShader\AllIn3DShaderConfig\Export\Baked
|
||||
Shaders
|
||||
renderImageScale: 0
|
||||
projectConfiguredFirstTime: 1
|
||||
urpConfiguredFirstTime: 1
|
||||
lastPipelineConfiguredGUID:
|
||||
shStandard: {fileID: 4800000, guid: 0dde7f0097aeb2541aea684ca0ad0e3c, type: 3}
|
||||
shStandardNoShadowCaster: {fileID: 4800000, guid: 3bc39c06ce1e4fb44bc21dcf24dde7fe, type: 3}
|
||||
shOutline: {fileID: 4800000, guid: a4c8f68acf7c9844e97a36914026acb1, type: 3}
|
||||
shOutlineNoShadowCaster: {fileID: 4800000, guid: 7fd6f68952c76af4c8005466df606651, type: 3}
|
||||
effectsProfileCollection: {fileID: 11400000, guid: 338be309f1396204884361d9bcd1dde1, type: 2}
|
||||
shaderPassCollection: {fileID: 11400000, guid: 02697d53e5a592b43b0b78710cd1fd60, type: 2}
|
||||
urpSettingsUserPref: {fileID: 11400000, guid: 132a4a2cab34542418073815edcd22de, type: 2}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b44e2d895bc689043a9fb62a9b4b5b3d
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 454d61b10e9ed8d4a83ae4509ebcb1a5
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,45 @@
|
||||
%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: 18225d53cd7719c49b6df4340a1549ff, type: 3}
|
||||
m_Name: URPSettingsUserPref
|
||||
m_EditorClassIdentifier: AllIn13DShaderAssemebly.Editor::AllIn13DShader.URPSettingsUserPref
|
||||
preferences:
|
||||
- id: ALLIN1_GPU_INSTANCING_SUPPORT
|
||||
enabled: 1
|
||||
- id: ALLIN1_DOTS_INSTANCING_SUPPORT
|
||||
enabled: 0
|
||||
- id: ALLIN1_FOG_SUPPORT
|
||||
enabled: 1
|
||||
- id: ALLIN1_LIGHTMAPS_SUPPORT
|
||||
enabled: 1
|
||||
- id: ALLIN1_ADDITIONAL_LIGHTS_SUPPORT
|
||||
enabled: 1
|
||||
- id: ALLIN1_CAST_SHADOWS_SUPPORT
|
||||
enabled: 1
|
||||
- id: ALLIN1_SHADOW_MASK_SUPPORT
|
||||
enabled: 1
|
||||
- id: ALLIN1_FORWARD_PLUS_SUPPORT_UNITY6
|
||||
enabled: 1
|
||||
- id: ALLIN1_REFLECTIONS_PROBES_SUPPORT_UNITY6
|
||||
enabled: 0
|
||||
- id: ALLIN1_ADAPTATIVE_PROBE_VOLUMES_UNITY6
|
||||
enabled: 1
|
||||
- id: ALLIN1_SSO_SUPPORT
|
||||
enabled: 1
|
||||
- id: ALLIN1_LIGHT_LAYERS_SUPPORT
|
||||
enabled: 0
|
||||
- id: ALLIN1_DECALS_SUPPORT
|
||||
enabled: 0
|
||||
- id: ALLIN1_LIGHT_COOKIES_SUPPORT
|
||||
enabled: 0
|
||||
- id: ALLIN1_LODCROSSFADE_SUPPORT
|
||||
enabled: 0
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 132a4a2cab34542418073815edcd22de
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a9f08480a6448db49a0c7a23e92ff7d5
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
After Width: | Height: | Size: 711 KiB |
@@ -0,0 +1,130 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f96e2c3fa17668c4fa41974c62843999
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/DefaultTextures/DirtDefault.png
|
||||
uploadId: 865720
|
||||
|
After Width: | Height: | Size: 705 KiB |
@@ -0,0 +1,130 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 14a7fe5d6aacb9a419447430a60ade70
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/DefaultTextures/DirtDefaultNormal.png
|
||||
uploadId: 865720
|
||||
|
After Width: | Height: | Size: 102 B |
@@ -0,0 +1,130 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 99b6592afee2790429156fef1dc9ba44
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 1
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/DefaultTextures/GameboyRampDefault.png
|
||||
uploadId: 865720
|
||||
|
After Width: | Height: | Size: 414 KiB |
@@ -0,0 +1,130 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2af6ba1567607124eb61349fa044375b
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/DefaultTextures/GrassDefault.png
|
||||
uploadId: 865720
|
||||
|
After Width: | Height: | Size: 256 KiB |
@@ -0,0 +1,130 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8175cba73bf87af41aeba7bbd2f3c4cd
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/DefaultTextures/GrassNormalsDefault.png
|
||||
uploadId: 865720
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
@@ -0,0 +1,130 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a26b9f1a12d33184ab5e89d304e441ad
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/DefaultTextures/GridDefault.png
|
||||
uploadId: 865720
|
||||
|
After Width: | Height: | Size: 154 KiB |
@@ -0,0 +1,130 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cf3a2315564d4de4eb8601b697dea358
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/DefaultTextures/MatcapDefault.png
|
||||
uploadId: 865720
|
||||
|
After Width: | Height: | Size: 203 KiB |
@@ -0,0 +1,130 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fcb69fdadf254834880fe3c443965278
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 1
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/DefaultTextures/NoiseTextureDefault.png
|
||||
uploadId: 865720
|
||||
|
After Width: | Height: | Size: 7.6 KiB |
@@ -0,0 +1,130 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 120df76dc2d17ed4cb2d4b8b08292ed9
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/DefaultTextures/NormalMapDefault.png
|
||||
uploadId: 865720
|
||||
|
After Width: | Height: | Size: 692 KiB |
@@ -0,0 +1,118 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5a775794f8704ba4385b9c92cf9f1224
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/DefaultTextures/RgbNoiseDefault.png
|
||||
uploadId: 865720
|
||||
|
After Width: | Height: | Size: 373 KiB |
@@ -0,0 +1,130 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f39690d17007ab242928cd91e5a530a6
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 1
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/DefaultTextures/StoneWallDefault.png
|
||||
uploadId: 865720
|
||||
|
After Width: | Height: | Size: 260 KiB |
@@ -0,0 +1,130 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6246e3fe4a63c1f4f9acec9623576fc7
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 1
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/DefaultTextures/StoneWallNormalsDefault.png
|
||||
uploadId: 865720
|
||||
|
After Width: | Height: | Size: 116 B |
@@ -0,0 +1,130 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 339398f75cfa2714d93579662d08ec9a
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/DefaultTextures/ToonRampDefault.png
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 86d876946a58b724081dea35a6960628
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,100 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace AllIn13DShader
|
||||
{
|
||||
public abstract class AbstractMaterialInfo
|
||||
{
|
||||
public string[] enabledKeywords;
|
||||
public Material mat;
|
||||
|
||||
public AbstractMaterialInfo(Material mat)
|
||||
{
|
||||
this.enabledKeywords = new string[0];
|
||||
this.mat = mat;
|
||||
}
|
||||
|
||||
public abstract void RefreshKeywords();
|
||||
|
||||
public abstract void EnableKeyword(string keyword);
|
||||
|
||||
public abstract void DisableKeyword(string keyword);
|
||||
|
||||
public abstract bool IsShaderVariant();
|
||||
|
||||
public bool IsKeywordEnabled(string keyword)
|
||||
{
|
||||
bool res = false;
|
||||
|
||||
for (int i = 0; i < enabledKeywords.Length; i++)
|
||||
{
|
||||
if (enabledKeywords[i] == keyword)
|
||||
{
|
||||
res = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public int GetEnabledKeywordIndexByEffect(AllIn13DEffectConfig effectConfig)
|
||||
{
|
||||
int res = -1;
|
||||
for (int i = 0; i < enabledKeywords.Length; i++)
|
||||
{
|
||||
res = effectConfig.GetKeywordIndex(enabledKeywords[i]);
|
||||
if(res >= 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public int GetEnabledKeywordIndexByEffectProperty(EffectProperty effectProperty)
|
||||
{
|
||||
int res = -1;
|
||||
|
||||
if(effectProperty.IsEnumProperty() || effectProperty.IsToggleProperty())
|
||||
{
|
||||
for (int i = 0; i < enabledKeywords.Length; i++)
|
||||
{
|
||||
for (int j = 0; j < effectProperty.fullKeywordNames.Length; j++)
|
||||
{
|
||||
if (effectProperty.fullKeywordNames[j] == enabledKeywords[i])
|
||||
{
|
||||
res = j;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(res >= 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public static AbstractMaterialInfo CreateInstance(Material mat)
|
||||
{
|
||||
EffectsProfileCollection effectsProfileCollection = GlobalConfiguration.instance.effectsProfileCollection;
|
||||
EffectsProfile effectsProfile = effectsProfileCollection.FindEffectProfileByShader(mat.shader);
|
||||
|
||||
AbstractMaterialInfo res = null;
|
||||
if (effectsProfile == null)
|
||||
{
|
||||
res = new CommonMaterialInfo(mat);
|
||||
}
|
||||
else
|
||||
{
|
||||
res = new EffectProfileMaterialInfo(effectsProfile, mat);
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 695b6880e2c7f3746be8b2dfaff26022
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/AbstractMaterialInfo.cs
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,501 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
using static AllIn13DShader.EffectsExtraData;
|
||||
|
||||
namespace AllIn13DShader
|
||||
{
|
||||
[System.Serializable]
|
||||
public class AllIn13DEffectConfig
|
||||
{
|
||||
public string effectName;
|
||||
public string displayName;
|
||||
public string group;
|
||||
|
||||
public int keywordPropertyIndex;
|
||||
public string keywordPropertyName;
|
||||
|
||||
public string effectDrawerID;
|
||||
public string dependentOnEffect;
|
||||
public string incompatibleWithEffectID;
|
||||
public string docURL;
|
||||
public MessageByKeywords[] customMessages;
|
||||
|
||||
//public List<string> keywords;
|
||||
public List<EffectKeywordData> keywords;
|
||||
public string[] keywordsDisplayNames;
|
||||
public List<EffectProperty> effectProperties;
|
||||
|
||||
public string disabledKeyword;
|
||||
|
||||
public int displayIndex;
|
||||
|
||||
public EffectConfigType effectConfigType;
|
||||
public AllIn13DPassType[] extraPasses;
|
||||
|
||||
public AllIn13DEffectConfig(
|
||||
string displayName, string propertyName, int propertyIndex, EffectConfigType effectConfigType,
|
||||
EffectAttributeData data, EffectsExtraData effectsExtraData, int displayIndex)
|
||||
{
|
||||
this.displayName = displayName;
|
||||
this.keywordPropertyName = propertyName;
|
||||
this.keywordPropertyIndex = propertyIndex;
|
||||
this.effectConfigType = effectConfigType;
|
||||
|
||||
this.effectName = data.effectID;
|
||||
this.group = data.groupID;
|
||||
this.effectDrawerID = data.drawerID;
|
||||
this.dependentOnEffect = data.dependentEffectID;
|
||||
this.incompatibleWithEffectID = data.incompatibleWithEffectID;
|
||||
|
||||
EffectsExtraData.ExtraData extraData = effectsExtraData.GetExtraDataByEffectID(effectName);
|
||||
if(extraData != null)
|
||||
{
|
||||
this.docURL = extraData.docURL;
|
||||
this.customMessages = extraData.customMessages;
|
||||
}
|
||||
|
||||
this.keywords = new List<EffectKeywordData>();
|
||||
this.effectProperties = new List<EffectProperty>();
|
||||
this.keywordsDisplayNames = new string[0];
|
||||
this.extraPasses = new AllIn13DPassType[0];
|
||||
|
||||
for(int i = 0; i < data.extraPasses.Length; i++)
|
||||
{
|
||||
AllIn13DPassType passType;
|
||||
Enum.TryParse(data.extraPasses[i], out passType);
|
||||
|
||||
ArrayUtility.Add(ref extraPasses, passType);
|
||||
}
|
||||
|
||||
this.displayIndex = displayIndex;
|
||||
}
|
||||
|
||||
public void AddKeyword(EffectKeywordData kw)
|
||||
{
|
||||
keywords.Add(kw);
|
||||
}
|
||||
|
||||
public void AddKeywords(EffectKeywordData[] kws)
|
||||
{
|
||||
keywords.AddRange(kws);
|
||||
}
|
||||
|
||||
public void Setup()
|
||||
{
|
||||
for(int i = 0; i < keywords.Count; i++)
|
||||
{
|
||||
ArrayUtility.Add(ref keywordsDisplayNames, keywords[i].displayName);
|
||||
}
|
||||
}
|
||||
|
||||
public EffectProperty FindEffectPropertyByIndex(int propertyIndex)
|
||||
{
|
||||
EffectProperty res = null;
|
||||
|
||||
for (int i = 0; i < effectProperties.Count; i++)
|
||||
{
|
||||
if (effectProperties[i].propertyIndex == propertyIndex)
|
||||
{
|
||||
res = effectProperties[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public EffectProperty FindEffectPropertyByName(string propertyName)
|
||||
{
|
||||
EffectProperty res = null;
|
||||
|
||||
for(int i = 0; i < effectProperties.Count; i++)
|
||||
{
|
||||
if (effectProperties[i].propertyName == propertyName)
|
||||
{
|
||||
res = effectProperties[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public EffectProperty CreateEffectProperty(int propertyIndex, string propertyName, string displayName,
|
||||
ShaderPropertyType shaderPropertyType, ShaderPropertyFlags shaderPropertyFlags,
|
||||
EffectPropertyAttributeData data)
|
||||
{
|
||||
EffectProperty res = new EffectProperty(this, propertyIndex, propertyName, displayName,
|
||||
data.keywordsOp, data.allowReset, shaderPropertyType, shaderPropertyFlags);
|
||||
effectProperties.Add(res);
|
||||
|
||||
for (int i = 0; i < data.keywords.Count; i++)
|
||||
{
|
||||
res.AddKeyword(data.keywords[i]);
|
||||
}
|
||||
|
||||
for(int i = 0; i < data.incompatibleWithKws.Count; i++)
|
||||
{
|
||||
res.AddIncompatibleKeyword(data.incompatibleWithKws[i]);
|
||||
}
|
||||
|
||||
res.AddPropertyKeywords(data.propertyKeywords);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public string GetCustomMessage(AbstractMaterialInfo[] targetMatInfos)
|
||||
{
|
||||
string res = string.Empty;
|
||||
if(targetMatInfos.Length == 1)
|
||||
{
|
||||
res = GetCustomMessage(targetMatInfos[0]);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
public string GetCustomMessage(AbstractMaterialInfo targetMatInfo)
|
||||
{
|
||||
string res = string.Empty;
|
||||
|
||||
if(customMessages != null && customMessages.Length > 0)
|
||||
{
|
||||
for(int i = 0; i < customMessages.Length; i++)
|
||||
{
|
||||
MessageByKeywords customMessage = customMessages[i];
|
||||
|
||||
if (customMessage.IsMessageEnabled(targetMatInfo))
|
||||
{
|
||||
res = customMessage.message;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public static bool IsEffectAvailable(AllIn13DEffectConfig effectConfig, AllIn13DShaderInspectorReferences references)
|
||||
{
|
||||
bool res = true;
|
||||
bool isShaderVariant = references.IsShaderVariant();
|
||||
|
||||
if (isShaderVariant)
|
||||
{
|
||||
for (int i = 0; i < references.targetMatInfos.Length; i++)
|
||||
{
|
||||
AbstractMaterialInfo matInfo = references.targetMatInfos[i];
|
||||
res = res && AllIn13DEffectConfig.IsEffectEnabled(effectConfig, matInfo);
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public static bool IsEffectEnabled(AllIn13DEffectConfig effectConfig, AllIn13DShaderInspectorReferences references)
|
||||
{
|
||||
int selectedIndex = 0;
|
||||
return IsEffectEnabled(effectConfig, ref selectedIndex, references);
|
||||
}
|
||||
|
||||
public static bool IsEffectEnabled(AllIn13DEffectConfig effectConfig, AbstractMaterialInfo targetMatInfo)
|
||||
{
|
||||
int selectedIndex = 0;
|
||||
return IsEffectEnabled(effectConfig, ref selectedIndex, targetMatInfo);
|
||||
}
|
||||
|
||||
public static bool IsEffectEnabled(AllIn13DEffectConfig effectConfig, ref int selectedIndex, AllIn13DShaderInspectorReferences references)
|
||||
{
|
||||
bool res = true;
|
||||
for (int i = 0; i < references.targetMatInfos.Length; i++)
|
||||
{
|
||||
res = res && IsEffectEnabled(effectConfig, ref selectedIndex, references.targetMatInfos[i]);
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public bool AreDependenciesMet(PropertiesConfig propertiesConfig, AbstractMaterialInfo targetMatInfo)
|
||||
{
|
||||
bool res = true;
|
||||
|
||||
if (!string.IsNullOrEmpty(dependentOnEffect))
|
||||
{
|
||||
AllIn13DEffectConfig dependentEffect = propertiesConfig.FindEffectConfigByID(dependentOnEffect);
|
||||
res = res && IsEffectEnabled(dependentEffect, targetMatInfo);
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public static bool IsEffectEnabled(AllIn13DEffectConfig effectConfig, ref int selectedIndex, AbstractMaterialInfo targetMatInfo)
|
||||
{
|
||||
selectedIndex = 0;
|
||||
|
||||
bool res = false;
|
||||
|
||||
if (effectConfig.keywords.Count == 1)
|
||||
{
|
||||
if (targetMatInfo.IsKeywordEnabled(effectConfig.keywords[0].keyword))
|
||||
{
|
||||
res = true;
|
||||
selectedIndex = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < effectConfig.keywords.Count; i++)
|
||||
{
|
||||
string keywordToCheck = effectConfig.keywords[i].keyword;
|
||||
|
||||
bool isNoneOption = effectConfig.keywordsDisplayNames[i] == Constants.DISABLED_ENUM_OPTION_STR;
|
||||
if (targetMatInfo.IsKeywordEnabled(keywordToCheck) && !isNoneOption)
|
||||
{
|
||||
res = true;
|
||||
selectedIndex = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public static bool IsEffectPropertyEnabled(EffectProperty effectProperty, ref int selectedIndex, string[] enabledKeywords)
|
||||
{
|
||||
bool res = false;
|
||||
|
||||
if (effectProperty.fullKeywordNames.Length == 1)
|
||||
{
|
||||
if (ArrayUtility.Contains(enabledKeywords, effectProperty.fullKeywordNames[0]))
|
||||
{
|
||||
res = true;
|
||||
selectedIndex = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < effectProperty.fullKeywordNames.Length; i++)
|
||||
{
|
||||
if (ArrayUtility.Contains(enabledKeywords, effectProperty.fullKeywordNames[i]))
|
||||
{
|
||||
res = true;
|
||||
selectedIndex = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public static bool IsEffectPropertyEnabled(EffectProperty effectProperty, ref int selectedIndex, AbstractMaterialInfo targetMatInfo)
|
||||
{
|
||||
bool res = false;
|
||||
|
||||
if(effectProperty.fullKeywordNames.Length == 1)
|
||||
{
|
||||
if (targetMatInfo.IsKeywordEnabled(effectProperty.fullKeywordNames[0]))
|
||||
{
|
||||
res = true;
|
||||
selectedIndex = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for(int i = 0; i < effectProperty.fullKeywordNames.Length; i++)
|
||||
{
|
||||
if (targetMatInfo.IsKeywordEnabled(effectProperty.fullKeywordNames[i]))
|
||||
{
|
||||
res = true;
|
||||
selectedIndex = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public static void ResetProperty(MaterialProperty targetProperty, AllIn13DShaderInspectorReferences references, AbstractMaterialInfo targetMatInfo)
|
||||
{
|
||||
Shader shader = targetMatInfo.mat.shader;
|
||||
|
||||
if (references.materialWithDefaultValues == null)
|
||||
{
|
||||
references.materialWithDefaultValues = new Material(shader);
|
||||
}
|
||||
|
||||
AllIn1ShaderPropertyType targetPropertyType = EditorUtils.GetShaderTypeByMaterialProperty(targetProperty);
|
||||
int propertyIndex = shader.FindPropertyIndex(targetProperty.name);
|
||||
if (targetPropertyType == AllIn1ShaderPropertyType.Float || targetPropertyType == AllIn1ShaderPropertyType.Range)
|
||||
{
|
||||
targetProperty.floatValue = references.materialWithDefaultValues.GetFloat(targetProperty.name);
|
||||
}
|
||||
else if (targetPropertyType == AllIn1ShaderPropertyType.Vector)
|
||||
{
|
||||
targetProperty.vectorValue = references.materialWithDefaultValues.GetVector(targetProperty.name);
|
||||
}
|
||||
else if (targetPropertyType == AllIn1ShaderPropertyType.Color)
|
||||
{
|
||||
targetProperty.colorValue = references.materialWithDefaultValues.GetColor(targetProperty.name);
|
||||
}
|
||||
else if (targetPropertyType == AllIn1ShaderPropertyType.Texture)
|
||||
{
|
||||
targetProperty.textureValue = references.materialWithDefaultValues.GetTexture(targetProperty.name);
|
||||
}
|
||||
}
|
||||
|
||||
public static void EnableEffect(AllIn13DEffectConfig effectConfig, AllIn13DShaderInspectorReferences references, AbstractMaterialInfo targetMatInfo)
|
||||
{
|
||||
for (int i = 0; i < effectConfig.keywords.Count; i++)
|
||||
{
|
||||
string kw = effectConfig.keywords[i].keyword;
|
||||
targetMatInfo.EnableKeyword(kw);
|
||||
}
|
||||
}
|
||||
|
||||
public static void EnableEffectToggle(AllIn13DEffectConfig effectConfig, AllIn13DShaderInspectorReferences references, AbstractMaterialInfo targetMatInfo)
|
||||
{
|
||||
targetMatInfo.EnableKeyword(effectConfig.keywords[0].keyword);
|
||||
references.matProperties[effectConfig.keywordPropertyIndex].floatValue = 1f;
|
||||
}
|
||||
|
||||
public static void DisableEffectToggle(AllIn13DEffectConfig effectConfig, AllIn13DShaderInspectorReferences references, AbstractMaterialInfo targetMatInfo)
|
||||
{
|
||||
targetMatInfo.DisableKeyword(effectConfig.keywords[0].keyword);
|
||||
references.matProperties[effectConfig.keywordPropertyIndex].floatValue = 0f;
|
||||
}
|
||||
|
||||
public static void EnableEffectByIndex(AllIn13DEffectConfig effectConfig, int index, AllIn13DShaderInspectorReferences references, AbstractMaterialInfo targetMatInfo)
|
||||
{
|
||||
DisableEffect(effectConfig, targetMatInfo);
|
||||
string kwToEnable = effectConfig.keywords[index].keyword;
|
||||
|
||||
targetMatInfo.EnableKeyword(kwToEnable);
|
||||
}
|
||||
|
||||
public static void DisableEffect(AllIn13DEffectConfig effectConfig, AllIn13DShaderInspectorReferences references)
|
||||
{
|
||||
for(int i = 0; i < references.targetMatInfos.Length; i++)
|
||||
{
|
||||
DisableEffect(effectConfig, references.targetMatInfos[i]);
|
||||
}
|
||||
}
|
||||
|
||||
public static void DisableEffect(AllIn13DEffectConfig effectConfig, AbstractMaterialInfo targetMatInfo)
|
||||
{
|
||||
for (int i = 0; i < effectConfig.keywords.Count; i++)
|
||||
{
|
||||
string kw = effectConfig.keywords[i].keyword;
|
||||
|
||||
targetMatInfo.DisableKeyword(kw);
|
||||
}
|
||||
}
|
||||
|
||||
public static bool ContainsKeyword(Material mat, string kw, LocalKeyword[] enabledKeywords)
|
||||
{
|
||||
bool res = false;
|
||||
for (int i = 0; i < enabledKeywords.Length; i++)
|
||||
{
|
||||
if (enabledKeywords[i].name == kw)
|
||||
{
|
||||
res = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public int GetKeywordIndex(string keyword)
|
||||
{
|
||||
int res = -1;
|
||||
for (int i = 0; i < keywords.Count; i++)
|
||||
{
|
||||
if (keywords[i].keyword == keyword)
|
||||
{
|
||||
res = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public string[] GetPropertyNames()
|
||||
{
|
||||
string[] res = new string[effectProperties.Count];
|
||||
|
||||
for(int i = 0; i < effectProperties.Count; i++)
|
||||
{
|
||||
res[i] = $"{effectProperties[i].displayName} ({effectProperties[i].propertyName})";
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public bool ContainsKeywordProperties()
|
||||
{
|
||||
bool res = false;
|
||||
|
||||
for(int i = 0; i < effectProperties.Count; i++)
|
||||
{
|
||||
if (effectProperties[i].IsPropertyWithKeywords())
|
||||
{
|
||||
res = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public GUIContent CreateGUIContent(int globalEffectIndex, int keywordSelectedIndex)
|
||||
{
|
||||
string label = $"{globalEffectIndex}. {displayName}";
|
||||
string tooltip = keywords[keywordSelectedIndex].keyword + " (C#)";
|
||||
|
||||
GUIContent res = new GUIContent(label, tooltip);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public bool ContainsKeyword(string keyword)
|
||||
{
|
||||
bool res = false;
|
||||
|
||||
for(int i = 0; i < keywords.Count; i++)
|
||||
{
|
||||
if (keywords[i].keyword == keyword)
|
||||
{
|
||||
res = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public bool ContainsSomeKeywordFromList(string[] keywords)
|
||||
{
|
||||
bool res = false;
|
||||
|
||||
for(int i = 0; i < keywords.Length; i++)
|
||||
{
|
||||
if (ContainsKeyword(keywords[i]))
|
||||
{
|
||||
res = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9e56d697165908f4a802d77da51b7913
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/AllIn13DEffectConfig.cs
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "AllIn13DShaderAssemebly.Editor",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:1b1237e1ff5eb504898a6f1f45e9b538",
|
||||
"GUID:c579267770062bf448e75eb160330b7f",
|
||||
"GUID:15fc0a57446b3144c949da3e2b9737a9",
|
||||
"GUID:3eae0364be2026648bf74846acb8a731"
|
||||
],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9180457c15877e84e9afced3000f4ee1
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/AllIn13DShaderAssemebly.Editor.asmdef
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,19 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace AllIn13DShader
|
||||
{
|
||||
public static class AllIn13DShaderConfig
|
||||
{
|
||||
//Default Material Name
|
||||
public const string MATERIAL_NAME_DEFAULT = "AllIn13DMaterial.mat";
|
||||
|
||||
public static Texture GetInspectorImage()
|
||||
{
|
||||
Texture res = null;
|
||||
|
||||
res = EditorUtils.FindAsset<Texture>("AllIn13dShaderCustomEditorHeader");
|
||||
|
||||
return res;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7ac8fcdac0e79974c8d61e1de5dc57ed
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/AllIn13DShaderConfig.cs
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,194 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AllIn13DShader
|
||||
{
|
||||
public class AllIn13DShaderInspectorReferences
|
||||
{
|
||||
public MaterialProperty[] matProperties;
|
||||
public string[] oldKeyWords;
|
||||
|
||||
public AbstractMaterialInfo[] targetMatInfos;
|
||||
|
||||
public Material materialWithDefaultValues;
|
||||
|
||||
public MaterialEditor editorMat;
|
||||
|
||||
//Styles
|
||||
private const int bigFontSize = 16, smallFontSize = 11;
|
||||
public GUIStyle propertiesStyle, bigLabelStyle, smallLabelStyle, toggleButtonStyle, tabButtonStyle;
|
||||
|
||||
//Outline Effect
|
||||
public AllIn13DEffectConfig outlineEffectConfig;
|
||||
|
||||
//Cast Shadows Effect
|
||||
public AllIn13DEffectConfig castShadowsEffectConfig;
|
||||
|
||||
//Effects Profile Collection
|
||||
public EffectsProfileCollection effectsProfileCollection;
|
||||
|
||||
public AllIn13DShaderInspectorReferences()
|
||||
{
|
||||
propertiesStyle = new GUIStyle(EditorStyles.helpBox);
|
||||
propertiesStyle.margin = new RectOffset(0, 0, 0, 0);
|
||||
|
||||
bigLabelStyle = new GUIStyle(EditorStyles.boldLabel);
|
||||
bigLabelStyle.fontSize = bigFontSize;
|
||||
|
||||
smallLabelStyle = new GUIStyle(EditorStyles.boldLabel);
|
||||
smallLabelStyle.fontSize = smallFontSize;
|
||||
|
||||
toggleButtonStyle = new GUIStyle(GUI.skin.button) { alignment = TextAnchor.MiddleCenter, richText = true };
|
||||
|
||||
tabButtonStyle = new GUIStyle(GUI.skin.button) { fontSize = 10 };
|
||||
}
|
||||
|
||||
public void Setup(MaterialEditor materialEditor, MaterialProperty[] properties)
|
||||
{
|
||||
this.editorMat = materialEditor;
|
||||
|
||||
if (this.targetMatInfos == null)
|
||||
{
|
||||
this.targetMatInfos = new AbstractMaterialInfo[materialEditor.targets.Length];
|
||||
for (int i = 0; i < materialEditor.targets.Length; i++)
|
||||
{
|
||||
Material mat = (Material)materialEditor.targets[i];
|
||||
targetMatInfos[i] = AbstractMaterialInfo.CreateInstance(mat);
|
||||
}
|
||||
|
||||
materialWithDefaultValues = new Material(targetMatInfos[0].mat.shader);
|
||||
}
|
||||
|
||||
this.effectsProfileCollection = GlobalConfiguration.instance.effectsProfileCollection;
|
||||
|
||||
this.matProperties = properties;
|
||||
}
|
||||
|
||||
public void SetOutlineEffect(PropertiesConfig propertiesConfig)
|
||||
{
|
||||
this.outlineEffectConfig = propertiesConfig.FindEffectConfigByID("OUTLINETYPE");
|
||||
}
|
||||
|
||||
public void SetCastShadowsEffect(PropertiesConfig propertiesConfig)
|
||||
{
|
||||
this.castShadowsEffectConfig = propertiesConfig.FindEffectConfigByID("CAST_SHADOWS_ON");
|
||||
}
|
||||
|
||||
public void SetMaterialsDirty()
|
||||
{
|
||||
for(int i = 0; i < targetMatInfos.Length; i++)
|
||||
{
|
||||
EditorUtility.SetDirty(targetMatInfos[i].mat);
|
||||
}
|
||||
}
|
||||
|
||||
public Shader GetShader()
|
||||
{
|
||||
return targetMatInfos[0].mat.shader;
|
||||
}
|
||||
|
||||
public bool IsKeywordEnabled(string keyword)
|
||||
{
|
||||
bool res = true;
|
||||
|
||||
for(int i = 0; i < targetMatInfos.Length; i++)
|
||||
{
|
||||
res = res && targetMatInfos[i].IsKeywordEnabled(keyword);
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public void RefreshMaterialKeywords()
|
||||
{
|
||||
for(int i = 0; i < this.targetMatInfos.Length; i++)
|
||||
{
|
||||
this.targetMatInfos[i].RefreshKeywords();
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsShaderVariant()
|
||||
{
|
||||
bool res = true;
|
||||
|
||||
for(int i = 0; i < targetMatInfos.Length; i++)
|
||||
{
|
||||
res = res && targetMatInfos[i].IsShaderVariant();
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public bool IsEffectEnabled(AllIn13DEffectConfig effectConfig, ref int selectedIndex)
|
||||
{
|
||||
bool res = true;
|
||||
|
||||
for (int i = 0; i < targetMatInfos.Length; i++)
|
||||
{
|
||||
int enumIdx = -1;
|
||||
AbstractMaterialInfo matInfo = targetMatInfos[i];
|
||||
|
||||
bool effectEnabled = AllIn13DEffectConfig.IsEffectEnabled(effectConfig, ref enumIdx, matInfo);
|
||||
|
||||
if (i == 0)
|
||||
{
|
||||
selectedIndex = enumIdx;
|
||||
}
|
||||
else
|
||||
{
|
||||
res = res && (enumIdx == selectedIndex);
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public bool IsEffectPropertyEnabled(EffectProperty effectProperty, ref int selectedIndex)
|
||||
{
|
||||
bool res = true;
|
||||
|
||||
for (int i = 0; i < targetMatInfos.Length; i++)
|
||||
{
|
||||
int enumIdx = 0;
|
||||
AbstractMaterialInfo matInfo = targetMatInfos[i];
|
||||
|
||||
res = res && AllIn13DEffectConfig.IsEffectPropertyEnabled(effectProperty, ref enumIdx, matInfo);
|
||||
|
||||
if (i == 0)
|
||||
{
|
||||
selectedIndex = enumIdx;
|
||||
}
|
||||
else
|
||||
{
|
||||
res = res && (enumIdx == selectedIndex);
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public bool AreAllMaterialsShaderVariant()
|
||||
{
|
||||
bool res = true;
|
||||
|
||||
for(int i = 0; i < targetMatInfos.Length; i++)
|
||||
{
|
||||
res = res && targetMatInfos[i].IsShaderVariant();
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public bool AreAllMaterialsShaderGeneric()
|
||||
{
|
||||
bool res = true;
|
||||
|
||||
for (int i = 0; i < targetMatInfos.Length; i++)
|
||||
{
|
||||
res = res && !targetMatInfos[i].IsShaderVariant();
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 42ff15ffadcc8ae42982fa48192469ea
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/AllIn13DShaderInspectorReferences.cs
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,42 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace AllIn13DShader
|
||||
{
|
||||
public class CommonMaterialInfo : AbstractMaterialInfo
|
||||
{
|
||||
public CommonMaterialInfo(Material mat) : base(mat)
|
||||
{
|
||||
RefreshKeywords();
|
||||
}
|
||||
|
||||
public EffectsProfile effectProfile;
|
||||
|
||||
public override void RefreshKeywords()
|
||||
{
|
||||
this.enabledKeywords = new string[mat.enabledKeywords.Length];
|
||||
for (int i = 0; i < enabledKeywords.Length; i++)
|
||||
{
|
||||
this.enabledKeywords[i] = mat.enabledKeywords[i].name;
|
||||
}
|
||||
}
|
||||
|
||||
public override void EnableKeyword(string keyword)
|
||||
{
|
||||
mat.EnableKeyword(keyword);
|
||||
|
||||
RefreshKeywords();
|
||||
}
|
||||
|
||||
public override void DisableKeyword(string keyword)
|
||||
{
|
||||
mat.DisableKeyword(keyword);
|
||||
|
||||
RefreshKeywords();
|
||||
}
|
||||
|
||||
public override bool IsShaderVariant()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 81dd06e6f7828b340ab17dfd17529a9b
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/CommonMaterialInfo.cs
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace AllIn13DShader
|
||||
{
|
||||
public static class CommonMessages
|
||||
{
|
||||
public const string URP_PIPELINE_NOT_ASSIGNED = "URP installed, but Render Pipeline Asset not assigned\nPlease assign a URP Render Pipeline Asset \nOr remove URP in the Package Manager";
|
||||
public const string URP_PIPELINE_NOT_ASSIGNED_DOC_LINK = "https://seasidestudios.gitbook.io/seaside-studios/3d-shader/urp-and-post-processing-setup";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dc117341064526c43aa23854ad769ab9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/CommonMessages.cs
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,130 @@
|
||||
using System.IO;
|
||||
|
||||
namespace AllIn13DShader
|
||||
{
|
||||
public static class Constants
|
||||
{
|
||||
public static string VERSION = "2.72";
|
||||
|
||||
public const string EFFECT_ATTRIBUTE_PREFIX = "Effect(";
|
||||
public const string EFFECT_PROPERTY_ATTRIBUTE_PREFIX = "EffectProperty(";
|
||||
//public const string HEADER_PREFIX = "Header(";
|
||||
public const string SINGLE_PROPERTY_ATTRIBUTE = "SingleProperty";
|
||||
public const string ADVANCED_PROPERTY_ATTRIBUTE = "AdvancedProperty";
|
||||
|
||||
|
||||
public const string SHADER_ROOT = "AllIn13DShader";
|
||||
|
||||
public static string[] SHADERS_NAMES = new string[]
|
||||
{
|
||||
"AllIn13DShader",
|
||||
"AllIn13DShader_NoShadowCaster",
|
||||
"AllIn13DShaderOutline_NoShadowCaster",
|
||||
"AllIn13DShaderOutline",
|
||||
};
|
||||
|
||||
public static string MAIN_SHADER_NAME
|
||||
{
|
||||
get
|
||||
{
|
||||
return SHADERS_NAMES[0];
|
||||
}
|
||||
}
|
||||
|
||||
public static string SHADER_FULL_NAME_ALLIN13D
|
||||
{
|
||||
get
|
||||
{
|
||||
return SHADER_ROOT + "/" + MAIN_SHADER_NAME;
|
||||
}
|
||||
}
|
||||
|
||||
public static string SHADER_FULL_NAME_ALLIN13D_OUTLINE
|
||||
{
|
||||
get
|
||||
{
|
||||
return SHADER_ROOT + "/" + SHADERS_NAMES[3];
|
||||
}
|
||||
}
|
||||
|
||||
public static string SHADER_NAME_ALLIN13D_OUTLINE = "AllIn13DShaderOutline";
|
||||
|
||||
|
||||
|
||||
//=========== Paths ===========
|
||||
public static string SHADERS_FOLDER_PATH = Path.Combine(GlobalConfiguration.instance.RootPluginPath, "Shaders");/*"Assets/AllIn13DShader/Shaders";*/
|
||||
public static string SHADERS_GENERIC_FOLDER_PATH = Path.Combine(SHADERS_FOLDER_PATH, "Generic Shaders");
|
||||
public static string SHADER_LIBRARY_FOLDER_PATH = Path.Combine(SHADERS_FOLDER_PATH, "ShaderLibrary");
|
||||
//public static string SHADERS_PROPERTIES_FOLDER_PATH = /*"Assets/AllIn13DShader/Editor"*/Path.Combine(GlobalConfiguration.instance.RootPluginPath, "Editor");
|
||||
public static string TEMPLATES_FOLDER = Path.Combine(GlobalConfiguration.instance.RootPluginPath, "Editor/Templates");
|
||||
public const string STANDARD_EXAMPLES_MATERIALS_LOCAL_PATH = "Demo/Materials/StandardExamples";
|
||||
public static string DEMO_SHADERS_BAKED_FOLDER_PATH = Path.Combine(GlobalConfiguration.instance.RootPluginPath, "Demo/Baked Shaders Demo/Shaders");
|
||||
|
||||
/* Shader Passes Paths */
|
||||
public const string MAIN_PASS_PATH = "Shaders/ShaderLibrary/AllIn13DShader_BasePass.hlsl";
|
||||
public const string LIGHT_ADD_PASS_PATH = "Shaders/ShaderLibrary/AllIn13DShaderLightAddPass.hlsl";
|
||||
public const string SHADOW_CASTER_PASS_PATH = "Shaders/ShaderLibrary/AllIn13DShader_ShadowCasterPass.hlsl";
|
||||
public const string DEPTH_ONLY_PASS_PATH = "Shaders/ShaderLibrary/AllIn13DShader_URP_DepthOnlyPass.hlsl";
|
||||
public const string DEPTH_NORMALS_PASS_PATH = "Shaders/ShaderLibrary/AllIn13DShader_URP_DepthNormalsPass.hlsl";
|
||||
public const string META_PASS_PATH = "Shaders/ShaderLibrary/AllIn13DShader_URP_MetaPass.hlsl";
|
||||
public const string OUTLINE_PASS_PATH = "Shaders/ShaderLibrary/AllIn13DShader_OutlinePass.hlsl";
|
||||
|
||||
public const string BIRP_HELPER_PATH = "Shaders/ShaderLibrary/AllIn13DShaderHelper_BIRP.hlsl";
|
||||
public const string URP_HELPER_PATH = "Shaders/ShaderLibrary/AllIn13DShaderHelper_URP.hlsl";
|
||||
|
||||
//====================================
|
||||
|
||||
public const string KEYWORD_NONE = "NONE";
|
||||
|
||||
//Special Properties
|
||||
public const string MATPROPERTY_RENDERING_MODE = "_RenderPreset";
|
||||
public const string MATPROPERTY_BLEND_SRC = "_BlendSrc";
|
||||
public const string MATPROPERTY_BLEND_DST = "_BlendDst";
|
||||
public const string KEYWORD_ALLIN13D_SURFACE_TRANSPARENT = "_ALLIN13D_SURFACE_TRANSPARENT";
|
||||
|
||||
//Drawers IDs
|
||||
public const string GENERAL_EFFECT_DRAWER_ID = "GENERAL_EFFECT_DRAWER";
|
||||
public const string TRIPLANAR_EFFECT_DRAWER_ID = "TRIPLANAR_EFFECT_DRAWER";
|
||||
public const string COLOR_RAMP_EFFECT_DRAWER_ID = "COLOR_RAMP_EFFECT_DRAWER";
|
||||
public const string OUTLINE_DRAWER_ID = "OUTLINE_DRAWER_ID";
|
||||
public const string TEXTURE_BLENDING_EFFECT_DRAWER_ID = "TEXTURE_BLENDING_EFFECT_DRAWER";
|
||||
public const string NORMAL_MAP_EFFECT_DRAWER_ID = "NORMAL_MAP_EFFECT_DRAWER";
|
||||
|
||||
//Regex
|
||||
public const string REGEX_EFFECT = @"\(EffectID#([\w\s]+),.*GroupID#([\w\s]+)(?:,.*AllowReset#([\w\s]+))?(?:,.*DependentOn#([\w\s]+))?(?:,.*IncompatibleWith#([\w\s]+))?(?:,.*Doc#([\w\s\\\.]+))?(?:,.*CustomDrawer#([\w\s]+))?(?:,.*ExtraPasses#[\s]*\(([\w\s,]+)\))?\)";
|
||||
public const string REGEX_EFFECT_PROPERTY = @"EffectProperty\((.*)\)";
|
||||
//public const string REGEX_EFFECT_PROOPERTY_COMPLETE = @"EffectProperty\(ParentEffect# ([\w\s]+), Keywords\((.*)\)\)";
|
||||
public const string REGEX_EFFECT_PROOPERTY_COMPLETE = @"EffectProperty\(ParentEffect# ([\w\s]+)(?:,.*KeywordsOp# ([\w]+))?(?:,.*IncompatibleWithKws\(([\w]+)\))?, Keywords\((.*)\), AllowReset# ([\w]+)\)";
|
||||
public const string REGEX_PARENT_EFFECT_KEYWORDS = @".*\((.*)\)";
|
||||
public const string REGEX_KEYWORDS_ENUM = @"KeywordEnum\((.*)\)";
|
||||
public const string REGEX_TOGGLE = @"Toggle\((.*)\)";
|
||||
|
||||
//Editor Prefs Keys
|
||||
public const string LAST_TIME_SHADER_PROPERTIES_REBUILT_KEY = "AllIn13DShader_RebuiltTime";
|
||||
public const string LAST_RENDER_PIPELINE_CHECKED_KEY = "AllIn13DShader_LastRenderPipeline";
|
||||
|
||||
//Strings
|
||||
public const string HDR_STR = "HDR";
|
||||
public const string KEYWORD_ENUM_STR = "KeywordEnum";
|
||||
public const string ON_STR = "On";
|
||||
public const string OFF_STR = "Off";
|
||||
public const string DISABLED_ENUM_OPTION_STR = "None";
|
||||
|
||||
//Default Names
|
||||
public const string DEFAULT_NAME_EFFECTS_PROFILE = "EffectsProfile";
|
||||
|
||||
//
|
||||
public const string INCLUDE_LINE_FORMAT = @"#include ""{0}""";
|
||||
public const string DEFINE_LINE_FORMAT = @"#define {0}";
|
||||
|
||||
//Effect IDs
|
||||
public const string EFFECT_ID_TRIPLANAR_MAPPING = "TRIPLANAR_MAPPING";
|
||||
public const string EFFECT_ID_EMISSION = "EMISSION";
|
||||
|
||||
//Effect Group IDs
|
||||
public const string EFFECT_GROUP_ID_UV_EFFECTS = "UVEffects";
|
||||
|
||||
//Main Assembly Name
|
||||
public const string MAIN_ASSEMBLY_NAME = "AllIn13DShaderAssembly.asmdef";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 233adf119f33cfb40b410b4336a90123
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/Constants.cs
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 63d2b9e0902c63442b73dc870028b96a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,366 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using UnityEditor;
|
||||
using UnityEditor.SceneManagement;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AllIn13DShader
|
||||
{
|
||||
[CustomEditor(typeof(AllIn13DShaderComponent))]
|
||||
[CanEditMultipleObjects]
|
||||
public class AllIn13DShaderComponentCustomEditor : Editor
|
||||
{
|
||||
private PropertiesConfigCollection propertiesConfigCollection;
|
||||
private GlobalConfiguration globalConfiguration;
|
||||
private Texture imageInspector;
|
||||
|
||||
private void RefreshReferences()
|
||||
{
|
||||
propertiesConfigCollection = EditorUtils.FindAsset<ScriptableObject>("PropertiesConfigCollection") as PropertiesConfigCollection;
|
||||
if(propertiesConfigCollection == null)
|
||||
{
|
||||
propertiesConfigCollection = PropertiesConfigCreator.CreateConfig();
|
||||
}
|
||||
|
||||
globalConfiguration = EditorUtils.FindAssetByName<GlobalConfiguration>("GlobalConfiguration");
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
if (!Application.isPlaying)
|
||||
{
|
||||
RefreshReferences();
|
||||
|
||||
bool isValidComponents = CheckSelectedComponents();
|
||||
if (!isValidComponents)
|
||||
{
|
||||
EditorUtility.DisplayDialog("Missing Renderer", "Some of the selected game objects have no Renderer component. AllIn13DShaderComponent will be removed", "Ok");
|
||||
return;
|
||||
}
|
||||
|
||||
CheckMaterialReference();
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
bool saveAssets = false;
|
||||
|
||||
serializedObject.Update();
|
||||
|
||||
DrawHeaderImage();
|
||||
|
||||
EditorGUI.BeginDisabledGroup(Application.isPlaying);
|
||||
if(GUILayout.Button("Deactivate All Effects"))
|
||||
{
|
||||
ExecuteActionAfterCheck(DeactivateAllEffects);
|
||||
saveAssets = true;
|
||||
}
|
||||
|
||||
if (GUILayout.Button("New Clean Material"))
|
||||
{
|
||||
ExecuteActionAfterCheck(NewCleanMaterial);
|
||||
}
|
||||
|
||||
if(GUILayout.Button("Create New Material With Same Properties (SEE DOC)"))
|
||||
{
|
||||
ExecuteActionAfterCheck(MakeCopyMaterial);
|
||||
}
|
||||
|
||||
if(GUILayout.Button("Save Material To Folder (SEE DOC)"))
|
||||
{
|
||||
ExecuteActionAfterCheck(SaveMaterialToFolder);
|
||||
}
|
||||
|
||||
if(GUILayout.Button("Apply Material To All Children"))
|
||||
{
|
||||
ExecuteActionAfterCheck(ApplyMaterialToAllChildren);
|
||||
}
|
||||
|
||||
if (GUILayout.Button("Render Material To Image"))
|
||||
{
|
||||
ExecuteActionAfterCheck(RenderMaterialToImage);
|
||||
}
|
||||
EditorGUI.EndDisabledGroup();
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
|
||||
|
||||
if (saveAssets)
|
||||
{
|
||||
AssetDatabase.SaveAssets();
|
||||
EditorSceneManager.SaveOpenScenes();
|
||||
AssetDatabase.Refresh();
|
||||
}
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorUtils.DrawThinLine();
|
||||
|
||||
if (GUILayout.Button("Remove Component"))
|
||||
{
|
||||
RemoveComponent();
|
||||
}
|
||||
|
||||
if(GUILayout.Button("Remove Component and Material"))
|
||||
{
|
||||
RemoveComponentAndMaterial();
|
||||
}
|
||||
}
|
||||
|
||||
private void DrawHeaderImage()
|
||||
{
|
||||
if(imageInspector == null) imageInspector = AllIn13DShaderConfig.GetInspectorImage();
|
||||
Rect rect = EditorGUILayout.GetControlRect(GUILayout.Height(32));
|
||||
GUI.DrawTexture(rect, imageInspector, ScaleMode.ScaleToFit, true);
|
||||
}
|
||||
|
||||
private void CheckMaterialReference()
|
||||
{
|
||||
for (int i = 0; i < targets.Length; i++)
|
||||
{
|
||||
AllIn13DShaderComponent allIn13DShaderComponent = (AllIn13DShaderComponent)targets[i];
|
||||
|
||||
Material currMaterial = allIn13DShaderComponent.currMaterial;
|
||||
if (currMaterial == null || !propertiesConfigCollection.IsAllIn3DShaderMaterial(currMaterial))
|
||||
{
|
||||
Shader shader = GlobalConfiguration.instance.shStandard;
|
||||
//Shader shader = propertiesConfigCollection.shaderPropertiesConfig[0].shader;
|
||||
|
||||
Material oldMaterial = allIn13DShaderComponent.currMaterial;
|
||||
allIn13DShaderComponent.NewCleanMaterial(shader, globalConfiguration.defaultPreset);
|
||||
|
||||
MaterialConverterTool.ApplyConversion(oldMaterial, allIn13DShaderComponent.currMaterial);
|
||||
}
|
||||
}
|
||||
|
||||
EditorUtils.SetDirtyCurrentScene();
|
||||
}
|
||||
|
||||
private void DeactivateAllEffects()
|
||||
{
|
||||
bool successOperation = true;
|
||||
bool selectedComponentsAreValid = CheckSelectedComponents();
|
||||
|
||||
for (int i = 0; i < targets.Length; i++)
|
||||
{
|
||||
AllIn13DShaderComponent allIn13DShaderComponent = (AllIn13DShaderComponent)targets[i];
|
||||
successOperation = successOperation && allIn13DShaderComponent.CheckValidComponent();
|
||||
|
||||
Material mat = allIn13DShaderComponent.currMaterial;
|
||||
PropertiesConfig propertiesConfig = propertiesConfigCollection.FindPropertiesConfigByShader(mat.shader);
|
||||
|
||||
List<AllIn13DEffectConfig> effects = propertiesConfig.GetAllEffects();
|
||||
|
||||
for (int j = 0; j < effects.Count; j++)
|
||||
{
|
||||
mat.SetFloat(effects[j].keywordPropertyName, 0f);
|
||||
}
|
||||
|
||||
EditorUtility.SetDirty(allIn13DShaderComponent);
|
||||
EditorUtility.SetDirty(mat);
|
||||
}
|
||||
}
|
||||
|
||||
private void NewCleanMaterial()
|
||||
{
|
||||
for (int i = 0; i < targets.Length; i++)
|
||||
{
|
||||
AllIn13DShaderComponent allIn13DShaderComponent = (AllIn13DShaderComponent)targets[i];
|
||||
|
||||
Shader shader = GlobalConfiguration.instance.shStandard;
|
||||
//Shader shader = propertiesConfigCollection.shaderPropertiesConfig[0].shader;
|
||||
allIn13DShaderComponent.NewCleanMaterial(shader, globalConfiguration.defaultPreset);
|
||||
}
|
||||
}
|
||||
|
||||
public void MakeCopyMaterial()
|
||||
{
|
||||
for (int i = 0; i < targets.Length; i++)
|
||||
{
|
||||
AllIn13DShaderComponent allIn13DShaderComponent = (AllIn13DShaderComponent)targets[i];
|
||||
|
||||
Renderer currRenderer = allIn13DShaderComponent.currRenderer;
|
||||
Material currMat = currRenderer.sharedMaterial;
|
||||
|
||||
string materialName = "MAT_" + allIn13DShaderComponent.gameObject.name;
|
||||
Material copy = new Material(currMat);
|
||||
copy.name = materialName;
|
||||
|
||||
currRenderer.sharedMaterial = copy;
|
||||
|
||||
EditorUtility.SetDirty(allIn13DShaderComponent);
|
||||
}
|
||||
}
|
||||
|
||||
public void SaveMaterialToFolder()
|
||||
{
|
||||
for (int i = 0; i < targets.Length; i++)
|
||||
{
|
||||
AllIn13DShaderComponent allIn13DShaderComponent = (AllIn13DShaderComponent)targets[i];
|
||||
SaveMaterialToFolder(allIn13DShaderComponent);
|
||||
}
|
||||
|
||||
EditorUtils.SetDirtyCurrentScene();
|
||||
}
|
||||
|
||||
private bool CheckSelectedComponents()
|
||||
{
|
||||
bool res = true;
|
||||
|
||||
for (int i = 0; i < targets.Length; i++)
|
||||
{
|
||||
AllIn13DShaderComponent allIn13DShaderComponent = (AllIn13DShaderComponent)targets[i];
|
||||
|
||||
bool isValid = allIn13DShaderComponent.CheckValidComponent();
|
||||
if (!isValid)
|
||||
{
|
||||
DestroyImmediate(allIn13DShaderComponent);
|
||||
}
|
||||
|
||||
res = res && isValid;
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
private void ExecuteActionAfterCheck(Action action)
|
||||
{
|
||||
bool selectedComponentsAreValid = CheckSelectedComponents();
|
||||
|
||||
if (selectedComponentsAreValid)
|
||||
{
|
||||
action();
|
||||
}
|
||||
else
|
||||
{
|
||||
SceneView.lastActiveSceneView.ShowNotification(new GUIContent("Some of the selected components are not valid"));
|
||||
}
|
||||
}
|
||||
|
||||
private void SaveMaterialToFolder(AllIn13DShaderComponent comp)
|
||||
{
|
||||
Material matToSave = comp.currMaterial;
|
||||
bool isAlreadySaved = AssetDatabase.Contains(matToSave);
|
||||
if (isAlreadySaved)
|
||||
{
|
||||
matToSave = comp.DuplicateCurrentMaterial();
|
||||
}
|
||||
|
||||
string folderPath = GlobalConfiguration.instance.MaterialSavePath;
|
||||
if (!Directory.Exists(folderPath))
|
||||
{
|
||||
bool ok = EditorUtility.DisplayDialog("The desired save folder doesn't exist",
|
||||
"Go to Window -> AllIn13DShaderWindow and set a valid folder", "Set default values and save material", "Cancel");
|
||||
|
||||
if (ok)
|
||||
{
|
||||
Directory.CreateDirectory(folderPath);
|
||||
}
|
||||
}
|
||||
|
||||
if (Directory.Exists(folderPath))
|
||||
{
|
||||
string fullPath = Path.Combine(folderPath, matToSave.name + ".mat");
|
||||
fullPath = AssetDatabase.GenerateUniqueAssetPath(fullPath);
|
||||
|
||||
AssetDatabase.CreateAsset(matToSave, fullPath);
|
||||
AssetDatabase.Refresh();
|
||||
|
||||
EditorGUIUtility.PingObject(matToSave);
|
||||
}
|
||||
}
|
||||
|
||||
private void ApplyMaterialToAllChildren()
|
||||
{
|
||||
for (int i = 0; i < targets.Length; i++)
|
||||
{
|
||||
AllIn13DShaderComponent allIn13DShaderComponent = (AllIn13DShaderComponent)targets[i];
|
||||
allIn13DShaderComponent.ApplyMaterialToChildren();
|
||||
|
||||
EditorUtility.SetDirty(allIn13DShaderComponent);
|
||||
}
|
||||
|
||||
EditorSceneManager.MarkSceneDirty(EditorSceneManager.GetActiveScene());
|
||||
}
|
||||
|
||||
private void RenderMaterialToImage()
|
||||
{
|
||||
for (int i = 0; i < targets.Length; i++)
|
||||
{
|
||||
AllIn13DShaderComponent allIn13DShaderComponent = (AllIn13DShaderComponent)targets[i];
|
||||
RenderToImage(allIn13DShaderComponent);
|
||||
|
||||
EditorUtility.SetDirty(allIn13DShaderComponent);
|
||||
}
|
||||
}
|
||||
|
||||
public void RenderToImage(AllIn13DShaderComponent allIn13DShaderComponent)
|
||||
{
|
||||
Texture tex = allIn13DShaderComponent.currMaterial.GetTexture("_MainTex");
|
||||
if (tex != null)
|
||||
{
|
||||
string folderPath = GlobalConfiguration.instance.RenderImageSavePath;
|
||||
string fileName = allIn13DShaderComponent.gameObject.name + ".png";
|
||||
RenderMaterialToImageTool.RenderAndSaveTexture(allIn13DShaderComponent.currMaterial, tex, 4.0f, folderPath, fileName);
|
||||
}
|
||||
else
|
||||
{
|
||||
EditorUtility.DisplayDialog("No valid target texture found",
|
||||
"All In 1 3DShader component couldn't find a valid Main Texture in this GameObject (" +
|
||||
allIn13DShaderComponent.gameObject.name +
|
||||
"). This means that the material you are using has no Main Texture or that the texture couldn't be reached through the Renderer component you are using." +
|
||||
" Please make sure to have a valid Main Texture in the Material", "Ok");
|
||||
}
|
||||
}
|
||||
|
||||
private void RemoveComponent()
|
||||
{
|
||||
for (int i = targets.Length - 1; i >= 0; i--)
|
||||
{
|
||||
AllIn13DShaderComponent allIn13DShaderComponent = (AllIn13DShaderComponent)targets[i];
|
||||
DestroyImmediate(allIn13DShaderComponent);
|
||||
}
|
||||
|
||||
//EditorUtils.SetDirtyCurrentScene();
|
||||
|
||||
SetSceneDirty();
|
||||
EditorUtils.ShowNotification("AllIn3DShader: Component Removed");
|
||||
}
|
||||
|
||||
private void RemoveComponentAndMaterial()
|
||||
{
|
||||
for (int i = 0; i < targets.Length; i++)
|
||||
{
|
||||
AllIn13DShaderComponent allIn13DShaderComponent = (AllIn13DShaderComponent)targets[i];
|
||||
allIn13DShaderComponent.CleanMaterial();
|
||||
}
|
||||
|
||||
for (int i = targets.Length - 1; i >= 0; i--)
|
||||
{
|
||||
AllIn13DShaderComponent allIn13DShaderComponent = (AllIn13DShaderComponent)targets[i];
|
||||
DestroyImmediate(allIn13DShaderComponent);
|
||||
}
|
||||
|
||||
SetSceneDirty();
|
||||
}
|
||||
|
||||
public void SetSceneDirty()
|
||||
{
|
||||
if (!Application.isPlaying) EditorSceneManager.MarkAllScenesDirty();
|
||||
|
||||
//If you get an error here please delete the code block below
|
||||
#if UNITY_2021_2_OR_NEWER
|
||||
var prefabStage = UnityEditor.SceneManagement.PrefabStageUtility.GetCurrentPrefabStage();
|
||||
#else
|
||||
var prefabStage = UnityEditor.Experimental.SceneManagement.PrefabStageUtility.GetCurrentPrefabStage();
|
||||
#endif
|
||||
if (prefabStage != null)
|
||||
{
|
||||
EditorSceneManager.MarkSceneDirty(prefabStage.scene);
|
||||
}
|
||||
|
||||
//Until here
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 445b6f2ff4b09ff4993b2516859d0467
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/CustomEditors/AllIn13DShaderComponentCustomEditor.cs
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,416 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AllIn13DShader
|
||||
{
|
||||
[CanEditMultipleObjects]
|
||||
public class AllIn13DShaderMaterialInspector : ShaderGUI
|
||||
{
|
||||
private PropertiesConfigCollection propertiesConfigCollection;
|
||||
|
||||
private PropertiesConfig currentPropertiesConfig;
|
||||
|
||||
private AllIn13DShaderInspectorReferences inspectorReferences;
|
||||
private AbstractEffectDrawer[] drawers;
|
||||
private GlobalPropertiesDrawer globalPropertiesDrawer;
|
||||
private AdvancedPropertiesDrawer advancedPropertiesDrawer;
|
||||
|
||||
private MaterialPresetCollection blendingModeCollection;
|
||||
|
||||
private MaterialProperty matPropertyRenderPreset;
|
||||
private MaterialProperty matPropertyBlendSrc;
|
||||
private MaterialProperty matPropertyBlendDst;
|
||||
private MaterialProperty matPropertyZWrite;
|
||||
|
||||
private int lastRenderQueue;
|
||||
|
||||
private static CommonStyles commonStyles;
|
||||
|
||||
private void RefreshReferences(MaterialEditor materialEditor, MaterialProperty[] properties)
|
||||
{
|
||||
if (inspectorReferences == null)
|
||||
{
|
||||
inspectorReferences = new AllIn13DShaderInspectorReferences();
|
||||
inspectorReferences.Setup(materialEditor, properties);
|
||||
|
||||
if (lastRenderQueue > 0)
|
||||
{
|
||||
for(int i = 0; i < inspectorReferences.targetMatInfos.Length; i++)
|
||||
{
|
||||
inspectorReferences.targetMatInfos[i].mat.renderQueue = lastRenderQueue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (propertiesConfigCollection == null)
|
||||
{
|
||||
string[] guids = AssetDatabase.FindAssets("PropertiesConfigCollection t:PropertiesConfigCollection");
|
||||
if(guids.Length == 0)
|
||||
{
|
||||
Debug.LogWarning("PropertiesConfigCollection not found in the project. Configuring...");
|
||||
this.propertiesConfigCollection = PropertiesConfigCreator.CreateConfig();
|
||||
Debug.LogWarning("AllIn13DShader configured");
|
||||
}
|
||||
else
|
||||
{
|
||||
string path = AssetDatabase.GUIDToAssetPath(guids[0]);
|
||||
propertiesConfigCollection = AssetDatabase.LoadAssetAtPath<PropertiesConfigCollection>(path);
|
||||
}
|
||||
|
||||
RefreshPropertiesConfig();
|
||||
}
|
||||
|
||||
if (blendingModeCollection == null)
|
||||
{
|
||||
blendingModeCollection = (MaterialPresetCollection)EditorUtils.FindAsset<ScriptableObject>("BlendingModeCollection");
|
||||
}
|
||||
|
||||
CreateDrawers();
|
||||
|
||||
matPropertyRenderPreset = inspectorReferences.matProperties[currentPropertiesConfig.renderPreset];
|
||||
matPropertyBlendSrc = inspectorReferences.matProperties[currentPropertiesConfig.blendSrcIdx];
|
||||
matPropertyBlendDst = inspectorReferences.matProperties[currentPropertiesConfig.blendDstIdx];
|
||||
matPropertyZWrite = inspectorReferences.matProperties[currentPropertiesConfig.zWriteIndex];
|
||||
|
||||
//We ensure that data is refreshed. Sometimes objects are not null but we need to refresh the references
|
||||
inspectorReferences.Setup(materialEditor, properties);
|
||||
|
||||
if(commonStyles == null)
|
||||
{
|
||||
commonStyles = new CommonStyles();
|
||||
}
|
||||
|
||||
RefreshDrawers();
|
||||
}
|
||||
|
||||
private void ResetReferences()
|
||||
{
|
||||
this.propertiesConfigCollection = null;
|
||||
this.currentPropertiesConfig = null;
|
||||
|
||||
inspectorReferences = null;
|
||||
drawers = null;
|
||||
|
||||
globalPropertiesDrawer = null;
|
||||
advancedPropertiesDrawer = null;
|
||||
}
|
||||
|
||||
private void CreateDrawers()
|
||||
{
|
||||
if (propertiesConfigCollection == null ||
|
||||
currentPropertiesConfig == null ||
|
||||
inspectorReferences == null ||
|
||||
drawers == null ||
|
||||
globalPropertiesDrawer == null ||
|
||||
advancedPropertiesDrawer == null)
|
||||
{
|
||||
drawers = new AbstractEffectDrawer[0];
|
||||
|
||||
GeneralEffectDrawer generalEffectDrawer = new GeneralEffectDrawer(inspectorReferences, currentPropertiesConfig);
|
||||
|
||||
EffectProperty mainNormalMapProperty = currentPropertiesConfig.FindEffectProperty("NORMAL_MAP", "_NormalMap");
|
||||
|
||||
TriplanarEffectDrawer triplanarEffectDrawer = new TriplanarEffectDrawer(mainNormalMapProperty, inspectorReferences, currentPropertiesConfig);
|
||||
ColorRampEffectDrawer colorRampEffectDrawer = new ColorRampEffectDrawer(inspectorReferences, currentPropertiesConfig);
|
||||
OutlineEffectDrawer outlineEffectDrawer = new OutlineEffectDrawer(inspectorReferences, currentPropertiesConfig);
|
||||
TextureBlendingEffectDrawer vertexColorEffectDrawer = new TextureBlendingEffectDrawer(mainNormalMapProperty, inspectorReferences, currentPropertiesConfig);
|
||||
NormalMapEffectDrawer normalMapEffectDrawer = new NormalMapEffectDrawer(inspectorReferences, currentPropertiesConfig);
|
||||
|
||||
drawers = new AbstractEffectDrawer[]
|
||||
{
|
||||
generalEffectDrawer,
|
||||
triplanarEffectDrawer,
|
||||
colorRampEffectDrawer,
|
||||
outlineEffectDrawer,
|
||||
vertexColorEffectDrawer,
|
||||
normalMapEffectDrawer
|
||||
};
|
||||
|
||||
advancedPropertiesDrawer = new AdvancedPropertiesDrawer(currentPropertiesConfig.advancedProperties, currentPropertiesConfig.blendSrcIdx, currentPropertiesConfig.blendDstIdx, inspectorReferences);
|
||||
}
|
||||
|
||||
if (globalPropertiesDrawer == null)
|
||||
{
|
||||
globalPropertiesDrawer = new GlobalPropertiesDrawer();
|
||||
}
|
||||
}
|
||||
|
||||
private void RefreshDrawers()
|
||||
{
|
||||
for(int i = 0; i < drawers.Length; i++)
|
||||
{
|
||||
drawers[i].Refresh(inspectorReferences);
|
||||
}
|
||||
}
|
||||
|
||||
private AbstractEffectDrawer FindEffectDrawerByID(string drawerID)
|
||||
{
|
||||
AbstractEffectDrawer res = null;
|
||||
|
||||
for (int i = 0; i < drawers.Length; i++)
|
||||
{
|
||||
if (drawers[i].ID == drawerID)
|
||||
{
|
||||
res = drawers[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
public override void AssignNewShaderToMaterial(Material material, Shader oldShader, Shader newShader)
|
||||
{
|
||||
base.AssignNewShaderToMaterial(material, oldShader, newShader);
|
||||
}
|
||||
|
||||
private void RefreshPropertiesConfig()
|
||||
{
|
||||
Shader shader = inspectorReferences.GetShader();
|
||||
currentPropertiesConfig = propertiesConfigCollection.FindPropertiesConfigByShader(shader);
|
||||
|
||||
inspectorReferences.SetOutlineEffect(currentPropertiesConfig);
|
||||
inspectorReferences.SetCastShadowsEffect(currentPropertiesConfig);
|
||||
}
|
||||
|
||||
public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
|
||||
{
|
||||
if (inspectorReferences != null && drawers != null)
|
||||
{
|
||||
inspectorReferences.Setup(materialEditor, properties);
|
||||
}
|
||||
|
||||
RefreshReferences(materialEditor, properties);
|
||||
|
||||
commonStyles.InitStyles();
|
||||
|
||||
#if ALLIN13DSHADER_URP
|
||||
bool urpCorrectlyConfigured = URPConfigurator.IsURPCorrectlyConfigured();
|
||||
if (!urpCorrectlyConfigured)
|
||||
{
|
||||
EditorGUILayout.LabelField(CommonMessages.URP_PIPELINE_NOT_ASSIGNED, commonStyles.warningLabel);
|
||||
EditorUtils.DrawButtonLink(CommonMessages.URP_PIPELINE_NOT_ASSIGNED_DOC_LINK);
|
||||
|
||||
GUILayout.Space(50f);
|
||||
}
|
||||
|
||||
EditorGUI.BeginDisabledGroup(!urpCorrectlyConfigured);
|
||||
#endif
|
||||
|
||||
DrawPresetsTabs();
|
||||
DrawAdvancedProperties();
|
||||
DrawGlobalProperties();
|
||||
DrawEffects();
|
||||
|
||||
#if ALLIN13DSHADER_URP
|
||||
EditorGUI.EndDisabledGroup();
|
||||
#endif
|
||||
|
||||
CheckLightmapFlags();
|
||||
bool shaderChanged = false;
|
||||
for (int i = 0; i < inspectorReferences.targetMatInfos.Length; i++)
|
||||
{
|
||||
Material targetMat = inspectorReferences.targetMatInfos[i].mat;
|
||||
|
||||
lastRenderQueue = targetMat.renderQueue;
|
||||
|
||||
if (!inspectorReferences.targetMatInfos[i].IsShaderVariant())
|
||||
{
|
||||
shaderChanged = shaderChanged || MaterialUtils.CheckMaterialShader(targetMat);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
EditorGUILayout.Separator();
|
||||
EditorUtils.DrawLine(Color.grey, 1, 3);
|
||||
|
||||
if (inspectorReferences.AreAllMaterialsShaderGeneric())
|
||||
{
|
||||
if (GUILayout.Button("Bake Shader Keywords"))
|
||||
{
|
||||
for (int i = 0; i < inspectorReferences.targetMatInfos.Length; i++)
|
||||
{
|
||||
string variantName = Selection.objects[i].name;
|
||||
Shader newShader = ShaderVariantCreator.CreateVariantByMaterialInfo(currentPropertiesConfig, inspectorReferences.targetMatInfos[i], variantName);
|
||||
inspectorReferences.targetMatInfos[i].mat.shader = newShader;
|
||||
}
|
||||
//Shader newShader = ShaderVariantCreator.CreateVariantByMaterialInfo(currentPropertiesConfig, inspectorReferences.targetMatInfos[0], variantName);
|
||||
//materialEditor.SetShader(newShader);
|
||||
|
||||
shaderChanged = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (GUILayout.Button("Revert To Generic Shader"))
|
||||
{
|
||||
Shader currentShader = inspectorReferences.GetShader();
|
||||
GlobalConfiguration.instance.effectsProfileCollection.RemoveEffectsProfileByShader(currentShader);
|
||||
|
||||
Shader newShader = Shader.Find(Constants.SHADER_FULL_NAME_ALLIN13D);
|
||||
materialEditor.SetShader(newShader);
|
||||
|
||||
shaderChanged = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (shaderChanged)
|
||||
{
|
||||
ResetReferences();
|
||||
}
|
||||
}
|
||||
|
||||
//private void CheckPasses(Material targetMat)
|
||||
//{
|
||||
// if (targetMat.IsKeywordEnabled("_LIGHTMODEL_FASTLIGHTING") || targetMat.IsKeywordEnabled("_LIGHTMODEL_NONE"))
|
||||
// {
|
||||
// targetMat.SetShaderPassEnabled("ForwardAdd", false);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// targetMat.SetShaderPassEnabled("ForwardAdd", true);
|
||||
// }
|
||||
//}
|
||||
|
||||
private void DrawPresetsTabs()
|
||||
{
|
||||
EditorGUI.BeginChangeCheck();
|
||||
|
||||
string[] texts = blendingModeCollection.CreateStringsArray();
|
||||
|
||||
|
||||
int presetIndex = (int)matPropertyRenderPreset.floatValue;
|
||||
if (presetIndex >= blendingModeCollection.presets.Length)
|
||||
{
|
||||
presetIndex = 1;
|
||||
matPropertyRenderPreset.floatValue = presetIndex;
|
||||
}
|
||||
|
||||
BlendingMode previousPreset = blendingModeCollection[presetIndex];
|
||||
if(previousPreset == null)
|
||||
{
|
||||
previousPreset = blendingModeCollection[0];
|
||||
}
|
||||
|
||||
int newIndex = (int)matPropertyRenderPreset.floatValue;
|
||||
newIndex = GUILayout.SelectionGrid(newIndex, texts, 3, inspectorReferences.tabButtonStyle);
|
||||
matPropertyRenderPreset.floatValue = newIndex;
|
||||
if (EditorGUI.EndChangeCheck())
|
||||
{
|
||||
BlendingMode selectedPreset = blendingModeCollection[newIndex];
|
||||
for(int i = 0; i < inspectorReferences.targetMatInfos.Length; i++)
|
||||
{
|
||||
Material targetMat = inspectorReferences.targetMatInfos[i].mat;
|
||||
ApplyMaterialPreset(targetMat, previousPreset, selectedPreset);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void DrawAdvancedProperties()
|
||||
{
|
||||
//Security check
|
||||
if (advancedPropertiesDrawer != null)
|
||||
{
|
||||
advancedPropertiesDrawer.Draw();
|
||||
}
|
||||
}
|
||||
|
||||
private void DrawGlobalProperties()
|
||||
{
|
||||
globalPropertiesDrawer.Draw(currentPropertiesConfig.singleProperties, inspectorReferences);
|
||||
}
|
||||
|
||||
private void DrawEffects()
|
||||
{
|
||||
int globalEffectIndex = 0;
|
||||
for (int groupIdx = 0; groupIdx < currentPropertiesConfig.effectsGroups.Length; groupIdx++)
|
||||
{
|
||||
EffectGroup effectGroup = currentPropertiesConfig.effectsGroups[groupIdx];
|
||||
if (effectGroup.effects.Length <= 0) { continue; }
|
||||
|
||||
EditorGUILayout.Separator();
|
||||
EditorUtils.DrawLine(Color.grey, 1, 3);
|
||||
GUILayout.Label(effectGroup.DisplayName, inspectorReferences.bigLabelStyle);
|
||||
|
||||
for (int effectIdx = 0; effectIdx < effectGroup.effects.Length; effectIdx++)
|
||||
{
|
||||
AllIn13DEffectConfig effectConfig = effectGroup.effects[effectIdx];
|
||||
|
||||
globalEffectIndex++;
|
||||
|
||||
AbstractEffectDrawer drawer = FindEffectDrawerByID(effectConfig.effectDrawerID);
|
||||
drawer.Draw(currentPropertiesConfig, effectConfig, globalEffectIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void CheckLightmapFlags()
|
||||
{
|
||||
for (int i = 0; i < inspectorReferences.targetMatInfos.Length; i++)
|
||||
{
|
||||
AbstractMaterialInfo matInfo = inspectorReferences.targetMatInfos[i];
|
||||
AllIn13DEffectConfig emissionEffectConfig = propertiesConfigCollection.propertiesConfig.FindEffectConfigByID(Constants.EFFECT_ID_EMISSION);
|
||||
bool emissionEnabled = AllIn13DEffectConfig.IsEffectEnabled(emissionEffectConfig, matInfo);
|
||||
if (emissionEnabled)
|
||||
{
|
||||
matInfo.mat.globalIlluminationFlags = MaterialGlobalIlluminationFlags.BakedEmissive;
|
||||
}
|
||||
else
|
||||
{
|
||||
matInfo.mat.globalIlluminationFlags = MaterialGlobalIlluminationFlags.EmissiveIsBlack;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void ApplyMaterialPreset(Material targetMat, BlendingMode previousPresset, BlendingMode newPreset)
|
||||
{
|
||||
matPropertyBlendSrc.floatValue = (float)newPreset.blendSrc;
|
||||
matPropertyBlendDst.floatValue = (float)newPreset.blendDst;
|
||||
matPropertyZWrite.floatValue = newPreset.depthWrite ? 1.0f : 0.0f;
|
||||
|
||||
|
||||
lastRenderQueue = (int)newPreset.renderQueue;
|
||||
targetMat.renderQueue = lastRenderQueue;
|
||||
|
||||
if (previousPresset != newPreset && previousPresset.defaultEnabledEffects != null)
|
||||
{
|
||||
for (int i = 0; i < previousPresset.defaultEnabledEffects.Length; i++)
|
||||
{
|
||||
string effectID = previousPresset.defaultEnabledEffects[i];
|
||||
AllIn13DEffectConfig effectConfig = currentPropertiesConfig.FindEffectConfigByID(effectID);
|
||||
|
||||
for(int matIdx = 0; matIdx < inspectorReferences.targetMatInfos.Length; matIdx++)
|
||||
{
|
||||
AbstractMaterialInfo matInfo = inspectorReferences.targetMatInfos[matIdx];
|
||||
AllIn13DEffectConfig.DisableEffectToggle(effectConfig, inspectorReferences, matInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (newPreset.defaultEnabledEffects != null)
|
||||
{
|
||||
for (int matIdx = 0; matIdx < inspectorReferences.targetMatInfos.Length; matIdx++)
|
||||
{
|
||||
AbstractMaterialInfo matInfo = inspectorReferences.targetMatInfos[matIdx];
|
||||
|
||||
if (newPreset.isTransparent)
|
||||
{
|
||||
matInfo.EnableKeyword(Constants.KEYWORD_ALLIN13D_SURFACE_TRANSPARENT);
|
||||
}
|
||||
else
|
||||
{
|
||||
matInfo.DisableKeyword(Constants.KEYWORD_ALLIN13D_SURFACE_TRANSPARENT);
|
||||
}
|
||||
|
||||
for (int i = 0; i < newPreset.defaultEnabledEffects.Length; i++)
|
||||
{
|
||||
string effectID = newPreset.defaultEnabledEffects[i];
|
||||
AllIn13DEffectConfig effectConfig = currentPropertiesConfig.FindEffectConfigByID(effectID);
|
||||
AllIn13DEffectConfig.EnableEffectToggle(effectConfig, inspectorReferences, matInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 57331ffe54816494c92e6b25562e4ed5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/CustomEditors/AllIn13DShaderMaterialInspector.cs
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,29 @@
|
||||
using UnityEditor;
|
||||
|
||||
namespace AllIn13DShader
|
||||
{
|
||||
[CustomEditor(typeof(AllIn1DepthColoringProperties))]
|
||||
public class AllIn1DepthColoringPropertiesCustomEditor : Editor
|
||||
{
|
||||
private AllIn1DepthColoringProperties depthColoringProperties;
|
||||
|
||||
private DepthColoringPropertiesDrawer drawer;
|
||||
|
||||
private void RefreshDrawer()
|
||||
{
|
||||
depthColoringProperties = (AllIn1DepthColoringProperties)target;
|
||||
|
||||
if (drawer == null)
|
||||
{
|
||||
drawer = new DepthColoringPropertiesDrawer(depthColoringProperties);
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
RefreshDrawer();
|
||||
|
||||
drawer.Draw(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 40a4840e946197045b8663f3d968727f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/CustomEditors/AllIn1DepthColoringPropertiesCustomEditor.cs
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,71 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AllIn13DShader
|
||||
{
|
||||
[CustomEditor(typeof(DepthColoringCamera))]
|
||||
public class DepthColoringCameraCustomEditor : Editor
|
||||
{
|
||||
private SerializedProperty spCam;
|
||||
private SerializedProperty spDepthColoringProperties;
|
||||
|
||||
private AllIn1DepthColoringProperties depthColoringProperties;
|
||||
private DepthColoringPropertiesDrawer depthColoringPropertiesDrawer;
|
||||
|
||||
private DepthColoringCamera depthColoringCamera;
|
||||
|
||||
private bool depthColoringFoldout;
|
||||
|
||||
private void RefreshReferences()
|
||||
{
|
||||
if(spCam == null)
|
||||
{
|
||||
spCam = serializedObject.FindProperty("cam");
|
||||
}
|
||||
|
||||
if(spDepthColoringProperties == null)
|
||||
{
|
||||
spDepthColoringProperties = serializedObject.FindProperty("depthColoringProperties");
|
||||
}
|
||||
}
|
||||
|
||||
private void RefreshDepthColoringPropertiesDrawer()
|
||||
{
|
||||
if(depthColoringPropertiesDrawer == null && depthColoringProperties != null)
|
||||
{
|
||||
depthColoringPropertiesDrawer = new DepthColoringPropertiesDrawer(depthColoringProperties);
|
||||
}
|
||||
else if(depthColoringPropertiesDrawer != null && depthColoringProperties != null)
|
||||
{
|
||||
depthColoringPropertiesDrawer.SetDepthColoringProperties(depthColoringProperties);
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
|
||||
RefreshReferences();
|
||||
|
||||
EditorGUI.BeginChangeCheck();
|
||||
EditorGUILayout.PropertyField(spCam);
|
||||
EditorGUILayout.PropertyField(spDepthColoringProperties);
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
|
||||
if(spDepthColoringProperties.objectReferenceValue != null)
|
||||
{
|
||||
GUILayout.Space(25f);
|
||||
|
||||
depthColoringProperties = (AllIn1DepthColoringProperties)spDepthColoringProperties.objectReferenceValue;
|
||||
|
||||
RefreshDepthColoringPropertiesDrawer();
|
||||
|
||||
if(depthColoringPropertiesDrawer != null)
|
||||
{
|
||||
depthColoringPropertiesDrawer.Draw(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0f455792fcb55c34d97cd0b478de36ba
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/CustomEditors/DepthColoringCameraCustomEditor.cs
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,13 @@
|
||||
using UnityEditor;
|
||||
|
||||
namespace AllIn13DShader
|
||||
{
|
||||
[CustomEditor(typeof(EffectsProfileCollection))]
|
||||
public class EffectsProfileCollectionCustomEditor : Editor
|
||||
{
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: df521890445440245b75e88c4fb4bd73
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/CustomEditors/EffectsProfileCollectionCustomEditor.cs
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,13 @@
|
||||
using UnityEditor;
|
||||
|
||||
namespace AllIn13DShader
|
||||
{
|
||||
[CustomEditor(typeof(GlobalConfiguration))]
|
||||
public class GlobalConfigurationCustomEditor : Editor
|
||||
{
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c57330f81e2eed441862d8a92a0e63cf
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/CustomEditors/GlobalConfigurationCustomEditor.cs
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,12 @@
|
||||
using UnityEditor;
|
||||
|
||||
namespace AllIn13DShader
|
||||
{
|
||||
[CustomEditor(typeof(PropertiesConfigCollection))]
|
||||
public class PropertiesConfigCollectionCustomEditor : Editor
|
||||
{
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 436434178bc9cbf449485b83a639cdbb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/CustomEditors/PropertiesConfigCollectionCustomEditor.cs
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,14 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AllIn13DShader
|
||||
{
|
||||
[CustomEditor(typeof(URPSettingsUserPref))]
|
||||
public class URPSettingsUserPrefCustomEditor : Editor
|
||||
{
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8ff9df7e6f241e844821ae6d61fb8b20
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/CustomEditors/URPSettingsUserPrefCustomEditor.cs
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fb3274d0917f10f4e932549862263caf
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,82 @@
|
||||
%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: 32438765f2955064bae29bed18ec5263, type: 3}
|
||||
m_Name: EffectsExtraData
|
||||
m_EditorClassIdentifier:
|
||||
effectsExtraData:
|
||||
- effectID: CUSTOM_SHADOW_COLOR
|
||||
docURL: https://seasidestudios.gitbook.io/seaside-studios/3d-shader/shadow-color
|
||||
customMessages:
|
||||
- message: "*You need to use ShadowsConfigurator.cs component\n in order to use
|
||||
this effect."
|
||||
keywords: []
|
||||
- effectID: DEPTH_COLORING
|
||||
docURL: https://seasidestudios.gitbook.io/seaside-studios/3d-shader/depth-coloring-stylized-fog
|
||||
customMessages:
|
||||
- message: "*You need to add DepthColoringCamera.cs component \nto the main camera
|
||||
in order to use this effect."
|
||||
keywords: []
|
||||
- effectID: LIGHTMODEL
|
||||
docURL: https://seasidestudios.gitbook.io/seaside-studios/3d-shader/fast-lighting
|
||||
customMessages:
|
||||
- message: "*You need to use FastLightConfigurator.cs component\n in order to
|
||||
use this effect."
|
||||
keywords:
|
||||
- _LIGHTMODEL_FASTLIGHTING
|
||||
- effectID: SHADINGMODEL
|
||||
docURL:
|
||||
customMessages:
|
||||
- message: '*Usually looks best paired with a Specular Model'
|
||||
keywords:
|
||||
- _SHADINGMODEL_PBR
|
||||
- effectID: RECALCULATE_NORMALS
|
||||
docURL:
|
||||
customMessages:
|
||||
- message: '*Dynamically reconstructs surface normals from vertex positions,
|
||||
ignoring mesh baked normals'
|
||||
keywords:
|
||||
- _SHADINGMODEL_PBR
|
||||
- effectID: INTERSECTION_GLOW
|
||||
docURL:
|
||||
customMessages:
|
||||
- message: '*You need to set the material to Transparent mode in order to use
|
||||
this effect correctly'
|
||||
keywords: []
|
||||
- effectID: INTERSECTION_FADE
|
||||
docURL:
|
||||
customMessages:
|
||||
- message: '*You need to set the material to Transparent mode in order to use
|
||||
this effect correctly'
|
||||
keywords: []
|
||||
- effectID: OUTLINETYPE
|
||||
docURL:
|
||||
customMessages:
|
||||
- message: '*If the material is transparent, you need to enable Depth Write.
|
||||
Otherwise, the mesh will look completely black
|
||||
|
||||
'
|
||||
keywords:
|
||||
- _OUTLINETYPE_SIMPLE
|
||||
- _OUTLINETYPE_CONSTANT
|
||||
- _OUTLINETYPE_FADEWITHDISTANCE
|
||||
- effectID: WIND
|
||||
docURL: https://seasidestudios.gitbook.io/seaside-studios/3d-shader/wind-effect-and-wind-controller
|
||||
customMessages:
|
||||
- message: "*You need to use WindController.cs component\n in order to use this
|
||||
effect."
|
||||
keywords: []
|
||||
- effectID: RECEIVE_SHADOWS
|
||||
docURL: https://seasidestudios.gitbook.io/seaside-studios/3d-shader/receive-shadows-and-stylized-shadows
|
||||
customMessages:
|
||||
- message: "*Additional lights will not be \naffected by this effect"
|
||||
keywords:
|
||||
- _RECEIVEDSHADOWSTYPE_STYLIZED
|
||||
@@ -0,0 +1,15 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ab04b85ae78a31642964fa2facafc08b
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/Data/EffectsExtraData.asset
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 20260d74bdf7b1543992369a55b37761
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
%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: 5d4677818a6699f4c951378b8bbde688, type: 3}
|
||||
m_Name: EffectGroupGlobalConfigCollection
|
||||
m_EditorClassIdentifier:
|
||||
effectGroupGlobalConfigs:
|
||||
- {fileID: 11400000, guid: 05a6bce58cfc83a4293b054fcfc62a81, type: 2}
|
||||
- {fileID: 11400000, guid: fcdc7c904b0215f4aabfa8ced0068841, type: 2}
|
||||
- {fileID: 11400000, guid: d45649322d809684a8f280736df5ebc7, type: 2}
|
||||
- {fileID: 11400000, guid: 987f969d8d3fec24bbb35df7779ba52b, type: 2}
|
||||
- {fileID: 11400000, guid: 2f3fcb0996a83b64599ce17553aa6b13, type: 2}
|
||||
- {fileID: 11400000, guid: d29aa9c55e3576d4bad55ec71545fe82, type: 2}
|
||||
@@ -0,0 +1,15 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0906b01f0f78cfc4dad64f8257ffaf66
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/Data/EffectsGroups/EffectGroupGlobalConfigCollection.asset
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,17 @@
|
||||
%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: 6b755efcb87425049878cf9532c736c7, type: 3}
|
||||
m_Name: EffectGroup_AlphaEffects
|
||||
m_EditorClassIdentifier:
|
||||
groupID: AlphaEffects
|
||||
displayName: Alpha Effects
|
||||
libraryFileName: AllIn13DShader_AlphaEffects
|
||||
@@ -0,0 +1,15 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d45649322d809684a8f280736df5ebc7
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/Data/EffectsGroups/EffectGroup_AlphaEffects.asset
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,17 @@
|
||||
%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: 6b755efcb87425049878cf9532c736c7, type: 3}
|
||||
m_Name: EffectGroup_ColorEffects
|
||||
m_EditorClassIdentifier:
|
||||
groupID: ColorEffects
|
||||
displayName: Color Effects
|
||||
libraryFileName: AllIn13DShader_FragmentEffects
|
||||
@@ -0,0 +1,15 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fcdc7c904b0215f4aabfa8ced0068841
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/Data/EffectsGroups/EffectGroup_ColorEffects.asset
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,17 @@
|
||||
%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: 6b755efcb87425049878cf9532c736c7, type: 3}
|
||||
m_Name: EffectGroup_Lighting
|
||||
m_EditorClassIdentifier:
|
||||
groupID: Lighting
|
||||
displayName: Lighting
|
||||
libraryFileName:
|
||||
@@ -0,0 +1,15 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 05a6bce58cfc83a4293b054fcfc62a81
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/Data/EffectsGroups/EffectGroup_Lighting.asset
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,17 @@
|
||||
%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: 6b755efcb87425049878cf9532c736c7, type: 3}
|
||||
m_Name: EffectGroup_MeshEffects
|
||||
m_EditorClassIdentifier:
|
||||
groupID: MeshEffects
|
||||
displayName: Mesh Effects
|
||||
libraryFileName: AllIn13DShader_VertexEffects
|
||||
@@ -0,0 +1,15 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 987f969d8d3fec24bbb35df7779ba52b
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/Data/EffectsGroups/EffectGroup_MeshEffects.asset
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,16 @@
|
||||
%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: 6b755efcb87425049878cf9532c736c7, type: 3}
|
||||
m_Name: EffectGroup_OtherEffects
|
||||
m_EditorClassIdentifier:
|
||||
groupID: OtherEffects
|
||||
displayName: Other Effects
|
||||
@@ -0,0 +1,15 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d29aa9c55e3576d4bad55ec71545fe82
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/Data/EffectsGroups/EffectGroup_OtherEffects.asset
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,17 @@
|
||||
%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: 6b755efcb87425049878cf9532c736c7, type: 3}
|
||||
m_Name: EffectGroup_UVEffects
|
||||
m_EditorClassIdentifier:
|
||||
groupID: UVEffects
|
||||
displayName: UV Effects
|
||||
libraryFileName: AllIn13DShader_UVEffects
|
||||
@@ -0,0 +1,15 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2f3fcb0996a83b64599ce17553aa6b13
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 316173
|
||||
packageName: All In 1 3D-Shader
|
||||
packageVersion: 2.72
|
||||
assetPath: Assets/Plugins/AllIn13DShader/Editor/Data/EffectsGroups/EffectGroup_UVEffects.asset
|
||||
uploadId: 865720
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8da84111dbb07224ab02fcbcd7ad8a4c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,102 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AllIn13DShader
|
||||
{
|
||||
public class AdvancedPropertiesDrawer
|
||||
{
|
||||
private List<int> advancedPropertiesIndices;
|
||||
private int blendSrcIndex;
|
||||
private int blendDstIndex;
|
||||
|
||||
private AllIn13DShaderInspectorReferences references;
|
||||
|
||||
private MaterialProperty advancedPropertiesEnabledMatProperty;
|
||||
|
||||
private bool AdvancedPropertiesEnabled
|
||||
{
|
||||
get
|
||||
{
|
||||
bool res = advancedPropertiesEnabledMatProperty.floatValue > 0;
|
||||
return res;
|
||||
}
|
||||
set
|
||||
{
|
||||
float floatValue = value ? 1.0f : 0f;
|
||||
advancedPropertiesEnabledMatProperty.floatValue = floatValue;
|
||||
}
|
||||
}
|
||||
|
||||
public AdvancedPropertiesDrawer(List<int> advancedPropertiesIndices, int blendSrcIndex, int blendDstIndex, AllIn13DShaderInspectorReferences references)
|
||||
{
|
||||
this.advancedPropertiesIndices = advancedPropertiesIndices;
|
||||
this.blendSrcIndex = blendSrcIndex;
|
||||
this.blendDstIndex = blendDstIndex;
|
||||
|
||||
this.references = references;
|
||||
|
||||
advancedPropertiesEnabledMatProperty = references.matProperties[advancedPropertiesIndices[0]];
|
||||
}
|
||||
|
||||
public void Draw()
|
||||
{
|
||||
AdvancedPropertiesEnabled = GUILayout.Toggle(AdvancedPropertiesEnabled, new GUIContent("Show Advanced Configuration"), references.toggleButtonStyle);
|
||||
if (AdvancedPropertiesEnabled)
|
||||
{
|
||||
EditorGUILayout.BeginVertical(references.propertiesStyle);
|
||||
|
||||
MaterialProperty matPropertyBlendSrc = references.matProperties[blendSrcIndex];
|
||||
MaterialProperty matProeprtyBlendDst = references.matProperties[blendDstIndex];
|
||||
|
||||
EffectPropertyDrawer.DrawProperty(
|
||||
materialProperty: matPropertyBlendSrc,
|
||||
labelPrefix: string.Empty,
|
||||
displayName: matPropertyBlendSrc.displayName,
|
||||
customValue: string.Empty,
|
||||
allowReset: false,
|
||||
isKeywordProperty: false,
|
||||
propertyType: EffectProperty.PropertyType.BASIC,
|
||||
references);
|
||||
|
||||
EffectPropertyDrawer.DrawProperty(
|
||||
materialProperty: matProeprtyBlendDst,
|
||||
labelPrefix: string.Empty,
|
||||
displayName: matProeprtyBlendDst.displayName,
|
||||
customValue: string.Empty,
|
||||
allowReset: false,
|
||||
isKeywordProperty: false,
|
||||
propertyType: EffectProperty.PropertyType.BASIC,
|
||||
references);
|
||||
|
||||
EditorUtils.DrawThinLine();
|
||||
|
||||
for (int i = 1; i < advancedPropertiesIndices.Count; i++)
|
||||
{
|
||||
//if(i == blendSrcIndex || i == blendDstIndex) { continue; }
|
||||
MaterialProperty matProperty = references.matProperties[advancedPropertiesIndices[i]];
|
||||
EffectPropertyDrawer.DrawProperty(
|
||||
materialProperty: matProperty,
|
||||
labelPrefix: string.Empty,
|
||||
displayName: matProperty.displayName,
|
||||
customValue: string.Empty,
|
||||
allowReset: false,
|
||||
isKeywordProperty: false,
|
||||
propertyType: EffectProperty.PropertyType.BASIC,
|
||||
references: references);
|
||||
|
||||
EditorUtils.DrawThinLine();
|
||||
}
|
||||
|
||||
references.editorMat.EnableInstancingField();
|
||||
|
||||
Rect rect = EditorGUILayout.GetControlRect();
|
||||
rect.x += 3f;
|
||||
rect.width -= 3f;
|
||||
references.editorMat.RenderQueueField(rect);
|
||||
|
||||
EditorGUILayout.EndVertical();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||