Last active
December 10, 2021 12:11
-
-
Save float3/afce1f343d3c5f912fb8943bf25f7fcb to your computer and use it in GitHub Desktop.
Information on the builtin unity 2019.4.31f1 shaders and post processing stack 3.1.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
namespace _Float3 | |
{ | |
public class UnityBuiltin2019431F1 | |
{ | |
//the keywords listed are only those used by the shaders listed below | |
//all of this information was found by using $grep | |
public static readonly HashSet<string> BuiltInGlobalShaderKeywords = new HashSet<string>(new[] | |
{ | |
"BILLBOARD_FACE_CAMERA_POS", | |
"EDITOR_VISUALIZATION", | |
"ETC1_EXTERNAL_ALPHA", | |
"FOG_EXP", | |
"FOG_EXP2", | |
"FOG_LINEAR", | |
"LOD_FADE_CROSSFADE", | |
"OUTLINE_ON", | |
"SHADOWS_SHADOWMASK", | |
"SOFTPARTICLES_ON", | |
"STEREO_INSTANCING_ON", | |
"STEREO_MULTIVIEW_ON", | |
"UNITY_HDR_ON", | |
"UNITY_SINGLE_PASS_STEREO", | |
"VERTEXLIGHT_ON", | |
"_EMISSION", | |
//"UNDERLAY_ON", //these are commented out in the builtin shaders | |
//"UNDERLAY_INNER", | |
}); | |
public static readonly HashSet<string> BuiltInLocalShaderKeywords = new HashSet<string>(new[] | |
{ | |
"ADJUST_TO_LINEARSPACE", | |
"EFFECT_BILLBOARD", | |
"EFFECT_BUMP", | |
"EFFECT_EXTRA_TEX", | |
"EFFECT_HUE_VARIATION", | |
"EFFECT_SUBSURFACE", | |
"GEOM_TYPE_BRANCH", | |
"GEOM_TYPE_BRANCH_DETAIL", | |
"GEOM_TYPE_FROND", | |
"GEOM_TYPE_LEAF", | |
"GEOM_TYPE_MESH", | |
"PIXELSNAP_ON", | |
"UNITY_UI_ALPHACLIP", | |
"UNITY_UI_CLIP_RECT", | |
"_ALPHABLEND_ON", | |
"_ALPHAMODULATE_ON", | |
"_ALPHAPREMULTIPLY_ON", | |
"_ALPHATEST_ON", | |
"_COLORADDSUBDIFF_ON", | |
"_COLORCOLOR_ON", | |
"_COLOROVERLAY_ON", | |
"_DETAIL_MULX2", | |
"_FADING_ON", | |
"_GLOSSYREFLECTIONS_OFF", | |
"_MAPPING_6_FRAMES_LAYOUT", | |
"_METALLICGLOSSMAP", | |
"_NORMALMAP", | |
"_PARALLAXMAP", | |
"_REQUIRE_UV2", | |
"_SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A", | |
"_SPECGLOSSMAP", | |
"_SPECULARHIGHLIGHTS_OFF", | |
"_SUNDISK_HIGH_QUALITY", | |
"_SUNDISK_NONE", | |
"_SUNDISK_SIMPLE", | |
"_WINDQUALITY_BEST", | |
"_WINDQUALITY_BETTER", | |
"_WINDQUALITY_FAST", | |
"_WINDQUALITY_FASTEST", | |
"_WINDQUALITY_NONE", | |
"_WINDQUALITY_PALM", | |
}); | |
public static readonly HashSet<string> BuiltInMultiCompiles = new HashSet<string>(new[] | |
{ | |
"fog", | |
"fwdadd_fullshadows", | |
"fwdbase", | |
"instancing", | |
"lightpass", | |
"nolightmap", //#pragma multi_compile_fwdbase nolightmap | |
"particles", | |
"prepassfinal", | |
"shadowcaster", | |
"shadowcollector", | |
}); | |
public static readonly HashSet<string> PostProcessingGlobalShaderKeywords = new HashSet<string>(new[] | |
{ | |
"APPLY_FORWARD_FOG", | |
"AUTO_EXPOSURE", | |
"BLOOM", | |
"BLOOM_LOW", | |
"CHROMATIC_ABERRATION", | |
"CHROMATIC_ABERRATION_LOW", | |
"COLOR_GRADING_HDR", | |
"COLOR_GRADING_HDR_2D", | |
"COLOR_GRADING_HDR_3D", | |
"COLOR_GRADING_LDR_2D", | |
"DISTORT", | |
"FINALPASS", | |
"FOG_EXP", | |
"FOG_EXP2", | |
"FOG_LINEAR", | |
"FXAA", | |
"FXAA_KEEP_ALPHA", | |
"FXAA_LOW", | |
"FXAA_NO_ALPHA", | |
"GRAIN", | |
"SOURCE_GBUFFER", | |
"STEREO_DOUBLEWIDE_TARGET", | |
"STEREO_INSTANCING_ENABLED", | |
"TONEMAPPING_ACES", | |
"TONEMAPPING_CUSTOM", | |
"TONEMAPPING_NEUTRAL", | |
"VIGNETTE", | |
}); | |
public static readonly HashSet<string> BuiltInShaders = new HashSet<string>(new[] | |
{ | |
"AR/TangoARRender", | |
"Autodesk Interactive", | |
"FX/Flare", | |
"GUI/Text Shader", | |
"Hidden/BlitCopy", | |
"Hidden/BlitCopyDepth", | |
"Hidden/BlitCopyWithDepth", | |
"Hidden/BlitToDepth", | |
"Hidden/BlitToDepth_MSAA", | |
"Hidden/Compositing", | |
"Hidden/ConvertTexture", | |
"Hidden/CubeBlend", | |
"Hidden/CubeBlur", | |
"Hidden/CubeBlurOdd", | |
"Hidden/CubeCopy", | |
"Hidden/FrameDebuggerRenderTargetDisplay", | |
"Hidden/GIDebug/ShowLightMask", | |
"Hidden/GIDebug/TextureUV", | |
"Hidden/GIDebug/UV1sAsPositions", | |
"Hidden/GIDebug/VertexColors", | |
"Hidden/Internal-Colored", | |
"Hidden/Internal-CombineDepthNormals", | |
"Hidden/Internal-CubemapToEquirect", | |
"Hidden/Internal-DeferredReflections", | |
"Hidden/Internal-DeferredShading", | |
"Hidden/Internal-DepthNormalsTexture", | |
"Hidden/Internal-Flare", | |
"Hidden/Internal-GUIRoundedRect", | |
"Hidden/Internal-GUIRoundedRectWithColorPerBorder", | |
"Hidden/Internal-GUITexture", | |
"Hidden/Internal-GUITextureBlit", | |
"Hidden/Internal-GUITextureClip", | |
"Hidden/Internal-GUITextureClipText", | |
"Hidden/Internal-Halo", | |
"Hidden/Internal-MotionVectors", | |
"Hidden/Internal-ODSWorldTexture", | |
"Hidden/Internal-PrePassLighting", | |
"Hidden/Internal-ScreenSpaceShadows", | |
"Hidden/Internal-StencilWrite", | |
"Hidden/Internal-UIRAtlasBlitCopy", | |
"Hidden/Internal-UIRDefault", | |
"Hidden/InternalClear", | |
"Hidden/InternalErrorShader", | |
"Hidden/Nature/Terrain/Utilities", | |
"Hidden/Nature/Tree Creator Albedo Rendertex", | |
"Hidden/Nature/Tree Creator Bark Optimized", | |
"Hidden/Nature/Tree Creator Bark Rendertex", | |
"Hidden/Nature/Tree Creator Leaves Fast Optimized", | |
"Hidden/Nature/Tree Creator Leaves Optimized", | |
"Hidden/Nature/Tree Creator Leaves Rendertex", | |
"Hidden/Nature/Tree Creator Normal Rendertex", | |
"Hidden/Nature/Tree Soft Occlusion Bark Rendertex", | |
"Hidden/Nature/Tree Soft Occlusion Leaves Rendertex", | |
"Hidden/TerrainEngine/BillboardTree", | |
"Hidden/TerrainEngine/BrushPreview", | |
"Hidden/TerrainEngine/CameraFacingBillboardTree", | |
"Hidden/TerrainEngine/CrossBlendNeighbors", | |
"Hidden/TerrainEngine/Details/BillboardWavingDoublePass", | |
"Hidden/TerrainEngine/Details/Vertexlit", | |
"Hidden/TerrainEngine/Details/WavingDoublePass", | |
"Hidden/TerrainEngine/GenerateNormalmap", | |
"Hidden/TerrainEngine/HeightBlitCopy", | |
"Hidden/TerrainEngine/PaintHeight", | |
"Hidden/TerrainEngine/Splatmap/Diffuse-AddPass", | |
"Hidden/TerrainEngine/Splatmap/Diffuse-Base", | |
"Hidden/TerrainEngine/Splatmap/Diffuse-BaseGen", | |
"Hidden/TerrainEngine/Splatmap/Specular-AddPass", | |
"Hidden/TerrainEngine/Splatmap/Specular-Base", | |
"Hidden/TerrainEngine/Splatmap/Standard-AddPass", | |
"Hidden/TerrainEngine/Splatmap/Standard-Base", | |
"Hidden/TerrainEngine/Splatmap/Standard-BaseGen", | |
"Hidden/TerrainEngine/TerrainLayerUtils", | |
"Hidden/TextCore/Distance Field SSD", | |
"Hidden/TextCore/Distance Field", | |
"Hidden/UI/CompositeOverdraw", | |
"Hidden/UI/Overdraw", | |
"Hidden/VideoComposite", | |
"Hidden/VideoDecode", | |
"Hidden/VideoDecodeAndroid", | |
"Hidden/VideoDecodeML", | |
"Hidden/VideoDecodeOSX", | |
"Hidden/VR/BlitFromTex2DToTexArraySlice", | |
"Hidden/VR/BlitTexArraySlice", | |
"Hidden/VR/BlitTexArraySliceToDepth", | |
"Hidden/VR/BlitTexArraySliceToDepth_MSAA", | |
"Hidden/VR/Internal-VRDistortion", | |
"Legacy Shaders/Bumped Diffuse", | |
"Legacy Shaders/Bumped Specular", | |
"Legacy Shaders/Decal", | |
"Legacy Shaders/Diffuse Detail", | |
"Legacy Shaders/Diffuse Fast", | |
"Legacy Shaders/Diffuse", | |
"Legacy Shaders/Lightmapped/Bumped Diffuse", | |
"Legacy Shaders/Lightmapped/Bumped Specular", | |
"Legacy Shaders/Lightmapped/Diffuse", | |
"Legacy Shaders/Lightmapped/Specular", | |
"Legacy Shaders/Lightmapped/VertexLit", | |
"Legacy Shaders/Parallax Diffuse", | |
"Legacy Shaders/Parallax Specular", | |
"Legacy Shaders/Particles/Additive (Soft)", | |
"Legacy Shaders/Particles/Additive", | |
"Legacy Shaders/Particles/Alpha Blended Premultiply", | |
"Legacy Shaders/Particles/Alpha Blended", | |
"Legacy Shaders/Particles/Anim Alpha Blended", | |
"Legacy Shaders/Particles/Blend", | |
"Legacy Shaders/Particles/Multiply (Double)", | |
"Legacy Shaders/Particles/Multiply", | |
"Legacy Shaders/Particles/VertexLit Blended", | |
"Legacy Shaders/Particles/~Additive-Multiply", | |
"Legacy Shaders/Reflective/Bumped Diffuse", | |
"Legacy Shaders/Reflective/Bumped Specular", | |
"Legacy Shaders/Reflective/Bumped Unlit", | |
"Legacy Shaders/Reflective/Bumped VertexLit", | |
"Legacy Shaders/Reflective/Diffuse", | |
"Legacy Shaders/Reflective/Parallax Diffuse", | |
"Legacy Shaders/Reflective/Parallax Specular", | |
"Legacy Shaders/Reflective/Specular", | |
"Legacy Shaders/Reflective/VertexLit", | |
"Legacy Shaders/Self-Illumin/Bumped Diffuse", | |
"Legacy Shaders/Self-Illumin/Bumped Specular", | |
"Legacy Shaders/Self-Illumin/Diffuse", | |
"Legacy Shaders/Self-Illumin/Parallax Diffuse", | |
"Legacy Shaders/Self-Illumin/Parallax Specular", | |
"Legacy Shaders/Self-Illumin/Specular", | |
"Legacy Shaders/Self-Illumin/VertexLit", | |
"Legacy Shaders/Specular", | |
"Legacy Shaders/Transparent/Bumped Diffuse", | |
"Legacy Shaders/Transparent/Bumped Specular", | |
"Legacy Shaders/Transparent/Cutout/Bumped Diffuse", | |
"Legacy Shaders/Transparent/Cutout/Bumped Specular", | |
"Legacy Shaders/Transparent/Cutout/Diffuse", | |
"Legacy Shaders/Transparent/Cutout/Soft Edge Unlit", | |
"Legacy Shaders/Transparent/Cutout/Specular", | |
"Legacy Shaders/Transparent/Cutout/VertexLit", | |
"Legacy Shaders/Transparent/Diffuse", | |
"Legacy Shaders/Transparent/Parallax Diffuse", | |
"Legacy Shaders/Transparent/Parallax Specular", | |
"Legacy Shaders/Transparent/Specular", | |
"Legacy Shaders/Transparent/VertexLit", | |
"Legacy Shaders/VertexLit", | |
"Mobile/Bumped Diffuse", | |
"Mobile/Bumped Specular (1 Directional Realtime Light)", | |
"Mobile/Bumped Specular", | |
"Mobile/Diffuse", | |
"Mobile/Particles/Additive", | |
"Mobile/Particles/Alpha Blended", | |
"Mobile/Particles/Multiply", | |
"Mobile/Particles/VertexLit Blended", | |
"Mobile/Skybox", | |
"Mobile/Unlit (Supports Lightmap)", | |
"Mobile/VertexLit (Only Directional Lights)", | |
"Mobile/VertexLit", | |
"Nature/SpeedTree Billboard", | |
"Nature/SpeedTree", | |
"Nature/SpeedTree8", | |
"Nature/Terrain/Diffuse", | |
"Nature/Terrain/Specular", | |
"Nature/Terrain/Standard", | |
"Nature/Tree Creator Bark", | |
"Nature/Tree Creator Leaves Fast", | |
"Nature/Tree Creator Leaves", | |
"Nature/Tree Soft Occlusion Bark", | |
"Nature/Tree Soft Occlusion Leaves", | |
"Particles/Standard Surface", | |
"Particles/Standard Unlit", | |
"Skybox/6 Sided", | |
"Skybox/Cubemap", | |
"Skybox/Panoramic", | |
"Skybox/Procedural", | |
"Sprites/Default", | |
"Sprites/Diffuse", | |
"Sprites/Mask", | |
"Standard (Specular setup)", | |
"Standard", | |
"UI/Default Font", | |
"UI/Default", | |
"UI/DefaultETC1", | |
"UI/Lit/Bumped", | |
"UI/Lit/Detail", | |
"UI/Lit/Refraction Detail", | |
"UI/Lit/Refraction", | |
"UI/Lit/Transparent", | |
"UI/Unlit/Detail", | |
"UI/Unlit/Text Detail", | |
"UI/Unlit/Text", | |
"UI/Unlit/Transparent", | |
"Unlit/Color", | |
"Unlit/Texture", | |
"Unlit/Transparent Cutout", | |
"Unlit/Transparent", | |
"VR/SpatialMapping/Occlusion", | |
"VR/SpatialMapping/Wireframe" | |
}); | |
public static readonly HashSet<string> BuiltInIncludes = new HashSet<string>(new[] | |
{ | |
"AutoLight.cginc", | |
"GLSLSupport.glslinc", | |
"HLSLSupport.cginc", | |
"Lighting.cginc", | |
"SpeedTreeBillboardCommon.cginc", | |
"SpeedTreeCommon.cginc", | |
"SpeedTreeVertex.cginc", | |
"SpeedTreeWind.cginc", | |
"TerrainEngine.cginc", | |
"TerrainSplatmapCommon.cginc", | |
"Tessellation.cginc", | |
"UnityBuiltin2xTreeLibrary.cginc", | |
"UnityBuiltin3xTreeLibrary.cginc", | |
"UnityCG.cginc", | |
"UnityCG.glslinc", | |
"UnityCustomRenderTexture.cginc", | |
"UnityDeferredLibrary.cginc", | |
"UnityDeprecated.cginc", | |
"UnityGBuffer.cginc", | |
"UnityGlobalIllumination.cginc", | |
"UnityImageBasedLighting.cginc", | |
"UnityInstancing.cginc", | |
"UnityLightingCommon.cginc", | |
"UnityMetaPass.cginc", | |
"UnityPBSLighting.cginc", | |
"UnityShaderUtilities.cginc", | |
"UnityShaderVariables.cginc", | |
"UnityShadowLibrary.cginc", | |
"UnitySprites.cginc", | |
"UnityStandardBRDF.cginc", | |
"UnityStandardConfig.cginc", | |
"UnityStandardCore.cginc", | |
"UnityStandardCoreForward.cginc", | |
"UnityStandardCoreForwardSimple.cginc", | |
"UnityStandardInput.cginc", | |
"UnityStandardMeta.cginc", | |
"UnityStandardParticleInstancing.cginc", | |
"UnityStandardParticles.cginc", | |
"UnityStandardParticleShadow.cginc", | |
"UnityStandardShadow.cginc", | |
"UnityStandardUtils.cginc", | |
"UnityUI.cginc", | |
}); | |
public static readonly HashSet<string> PostProcessingShaders = new HashSet<string>(new[] | |
{ | |
"Hidden/PostProcessing/Bloom", | |
"Hidden/PostProcessing/Copy", | |
"Hidden/PostProcessing/CopyStd", | |
"Hidden/PostProcessing/CopyStdFromDoubleWide", | |
"Hidden/PostProcessing/CopyStdFromTexArray", | |
"Hidden/PostProcessing/Debug/Histogram", | |
"Hidden/PostProcessing/Debug/LightMeter", | |
"Hidden/PostProcessing/Debug/Overlays", | |
"Hidden/PostProcessing/Debug/Vectorscope", | |
"Hidden/PostProcessing/Debug/Waveform", | |
"Hidden/PostProcessing/DeferredFog", | |
"Hidden/PostProcessing/DepthOfField", | |
"Hidden/PostProcessing/DiscardAlpha", | |
"Hidden/PostProcessing/Editor/ConvertToLog", | |
"Hidden/PostProcessing/Editor/CurveGrid", | |
"Hidden/PostProcessing/Editor/Trackball", | |
"Hidden/PostProcessing/FinalPass", | |
"Hidden/PostProcessing/GrainBaker", | |
"Hidden/PostProcessing/Lut2DBaker", | |
"Hidden/PostProcessing/MotionBlur", | |
"Hidden/PostProcessing/MultiScaleVO", | |
"Hidden/PostProcessing/ScalableAO", | |
"Hidden/PostProcessing/ScreenSpaceReflections", | |
"Hidden/PostProcessing/SubpixelMorphologicalAntialiasing", | |
"Hidden/PostProcessing/TemporalAntialiasing", | |
"Hidden/PostProcessing/Texture2DLerp", | |
"Hidden/PostProcessing/Uber", | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment