Jump to content

list of loaded shaders


Recommended Posts

Here's what I get with a very simple dump... Maybe it'll be helpful

AtmosphereFromGround
Bumped Diffuse
Bumped Specular
Decal/Blended
Depth Mask
DepthMask
Diffuse
Diffuse Detail
Diffuse Detail (Alpha)
Diffuse Multiply
Diffuse Wrapped
Emissive Multi Ramp Sunspots
GUI/3D Text Shader
GUI/Text Shader
Hidden/Blend
Hidden/BlendModesOverlay
Hidden/BlendOneOne
Hidden/BrightPassFilterForBloom
Hidden/ChromaticAberrationShader
Hidden/ColorCorrectionCurves
Hidden/ColorCorrectionCurvesSimple
Hidden/ColorCorrectionSelective
Hidden/ContrastComposite
Hidden/ConvertDepth
Hidden/CreaseApply
Hidden/Dof/DepthOfField34
Hidden/Dof/DepthOfFieldHdr
Hidden/EdgeDetectGeometry
Hidden/FisheyeShader
Hidden/GlobalFog
Hidden/InternalErrorShader
Hidden/Internal-Flare
Hidden/Internal-GUITexture
Hidden/Internal-GUITextureClip
Hidden/Internal-GUITextureClipText
Hidden/LensFlareCreate
Hidden/MultipassHollywoodFlares
Hidden/Noise Shader RGB
Hidden/Noise Shader YUV
Hidden/NoiseAndGrain
Hidden/SeparableBlur
Hidden/SeparableBlurPlus
Hidden/SeparableWeightedBlurDof34
Hidden/Shadow-ScreenBlur
Hidden/Shadow-ScreenBlurRotated
Hidden/SimpleClear
Hidden/SunShaftsComposite
Hidden/tiltShift
Hidden/Tonemapper
Hidden/VignetteShader
Hidden/VignettingShader
KerbalSpacePart
KSP/Alpha/Cutoff
KSP/Alpha/Cutoff Bumped
KSP/Alpha/Translucent
KSP/Alpha/Translucent Specular
KSP/Alpha/Unlit Transparent
KSP/Bumped
KSP/Bumped Specular
KSP/Diffuse
KSP/Emissive/Bumped Specular
KSP/Emissive/Diffuse
KSP/Emissive/Specular
KSP/FX/Depth Projection
KSP/FX/ReentryFlames 20-Pass
KSP/Particles/Additive
KSP/Particles/Alpha Blended
KSP/Specular
KSP/Sprite
KSP/Unlit
MaskedTexture
Parallax Specular (Alpha)
Particles/Additive
Particles/Additive (Soft)
Particles/Alpha Blended
Particles/Alpha Blended Premultiply
PieChart
Reflective/Bumped Diffuse
Reflective/VertexLit
Solid Color (Alpha)
Specular
Sprite/Simple Texture (Unlit)
Sprite/Vertex Colored
Sprite/Vertex Colored, Fast
Sprites/Default
Terrain/PQS/Aerial Cutout
Terrain/PQS/Ocean Surface Quad
Terrain/PQS/Ocean Surface Quad (Fallback)
Terrain/PQS/PQS Main - Optimised
Terrain/PQS/PQS Main Shader
Terrain/PQS/Sphere Projection SURFACE QUAD
Terrain/PQS/Sphere Projection SURFACE QUAD (AP)
Terrain/PQS/Sphere Projection SURFACE QUAD (Fallback)
Terrain/Scaled Planet (RimAerial)
Terrain/Scaled Planet (Simple)
Transparent/Cutout/Bumped Diffuse
Transparent/Cutout/Bumped Specular
Transparent/Cutout/Diffuse
Transparent/Cutout/VertexLit
Transparent/Diffuse
Transparent/Specular
Transparent/VertexLit
Unlit/Texture
Unlit/Transparent
Unlit/Transparent Cutout
Unlit/Transparent Tint
UnlitAlpha
VertexLit

HashSet<string> shaders = new HashSet<string>();

FindObjectsOfType<Shader>().ToList().ForEach(sh => shaders.Add(sh.name));
Resources.FindObjectsOfTypeAll<Shader>().ToList().ForEach(sh => shaders.Add(sh.name));

Log.Normal("{0} loaded shaders", shaders.Count);
List<string> sorted = new List<string>(shaders); sorted.Sort();

using (System.IO.StreamWriter file = new System.IO.StreamWriter(KSPUtil.ApplicationRootPath + "/shaders.txt"))
foreach (var sh in sorted)
file.WriteLine(sh);

Link to comment
Share on other sites

I put it in a simple KSPAddon initialized during flight. Something like this:

[KSPAddon(KSPAddon.Startup.Flight, true)]
class DumpShaderList : MonoBehaviour
{
void Start()
{
HashSet<string> shaders = new HashSet<string>();

FindObjectsOfType<Shader>().ToList().ForEach(sh => shaders.Add(sh.name));
Resources.FindObjectsOfTypeAll<Shader>().ToList().ForEach(sh => shaders.Add(sh.name));

Log.Normal("{0} loaded shaders", shaders.Count);
List<string> sorted = new List<string>(shaders); sorted.Sort();

using (System.IO.StreamWriter file = new System.IO.StreamWriter(KSPUtil.ApplicationRootPath + "/shaders.txt"))
foreach (var sh in sorted)
file.WriteLine(sh);
}
}

Writes to a text file instead of the log to avoid having every line timestamped

Link to comment
Share on other sites

  • 6 months later...
  • 6 months later...
great help thanks..

Just curiouse

Does anyone know what the "hidden" means?

I googled some of those shader names - but didn't find a lot

Hidden is a way of hiding shaders form menus in Unity. When assigning a shader to a material in Unity, you can select from a menu of shaders that Unity has found in your project. Pre-pending them with 'hidden/' just tells Unity to not show them in that menu.

Link to comment
Share on other sites

  • 5 years later...

Updated list for KSP 1.12

Advanced SS/Volumetric/Sphere Volume
Aerodynamics/DragRender
Aerodynamics/DragRenderNoBump
ArrowPointer
AtmosphereFromGround
Depth Mask
DepthMask
Diffuse Wrapped
Emissive Multi Ramp Sunspots
GUI/Text Shader
Hidden/BlitCopy
Hidden/CubeBlend
Hidden/CubeBlur
Hidden/CubeCopy
Hidden/CustomDeferredShading
Hidden/CustomScreenSpaceShadows
Hidden/Highlighted/Blur
Hidden/Highlighted/Composite
Hidden/Highlighted/Cut
Hidden/Highlighted/Opaque
Hidden/Highlighted/Transparent
Hidden/InternalErrorShader
Hidden/Internal-Flare
Hidden/Internal-GUIRoundedRect
Hidden/Internal-GUIRoundedRectWithColorPerBorder
Hidden/Internal-GUITexture
Hidden/Internal-GUITextureClip
Hidden/Internal-MotionVectors
Hidden/Noise Shader RGB
Hidden/Noise Shader YUV
Hidden/UI Default (Soft Masked)
Hidden/UI Default ETC1 (Soft Masked)
KSP/Alpha/Cutoff
KSP/Alpha/Cutoff Bumped
KSP/Alpha/CutoffBackground
KSP/Alpha/Translucent
KSP/Alpha/Translucent Additive
KSP/Alpha/Translucent Specular
KSP/Alpha/Unlit Transparent
KSP/Bumped
KSP/Bumped Specular
KSP/Bumped Specular (Mapped)
KSP/Bumped Specular (Stencil)
KSP/Bumped Specular (Transparent)
KSP/Diffuse
KSP/EditorGizmos
KSP/EditorGizmos (Emissive)
KSP/Emissive/Bumped Specular
KSP/Emissive/Bumped Specular (Mapped)
KSP/Emissive/Diffuse
KSP/Emissive/Specular
KSP/FX/Depth Projection
KSP/FX/ReentryDepth
KSP/FX/ReentryFlames 10-Pass
KSP/FX/ReentryFlames 20-Pass
KSP/FX/ReentryFlames 5-Pass
KSP/InternalSpace
KSP/Lightwrapped/Specular
KSP/Orbit Line
KSP/Particles/Additive
KSP/Particles/Additive (Self-Illuminated)
KSP/Particles/Additive (Soft)
KSP/Particles/Alpha Blended
KSP/Particles/Alpha Blended Scenery
KSP/Scenery/Alpha/Translucent
KSP/Scenery/Bumped
KSP/Scenery/Bumped Specular
KSP/Scenery/Decal/Blended
KSP/Scenery/Decal/Multiply
KSP/Scenery/Diffuse
KSP/Scenery/Diffuse Detail
KSP/Scenery/Diffuse Ground KSC
KSP/Scenery/Diffuse Ground KSC Specular
KSP/Scenery/Diffuse Ground KSC Specular Far Fix
KSP/Scenery/Diffuse Multiply
KSP/Scenery/Diffuse Multiply (Fixed UV)
KSP/Scenery/Emissive/Bumped Specular
KSP/Scenery/Emissive/Diffuse
KSP/Scenery/Emissive/Specular
KSP/Scenery/Reflective Water
KSP/Scenery/Specular
KSP/Scenery/Unlit/Transparent
KSP/ScreenSpaceMask
KSP/ScreenSpaceMaskAlphaCutoffBackground
KSP/ScreenSpaceMaskBumped
KSP/ScreenSpaceMaskBumpedSpecular(Transparent)
KSP/ScreenSpaceMaskNoAmbientHue
KSP/ScreenSpaceMaskNoAmbientHueBumped
KSP/ScreenSpaceMaskSpecular
KSP/ScreenSpaceMaskUnlit
KSP/Specular
KSP/Specular (Transparent)
KSP/Unlit
KSP/UnlitColor
Legacy Shaders/Bumped Diffuse
Legacy Shaders/Bumped Specular
Legacy Shaders/Diffuse
Legacy Shaders/Diffuse Detail
Legacy Shaders/Particles/~Additive-Multiply
Legacy Shaders/Particles/Additive
Legacy Shaders/Particles/Additive (Soft)
Legacy Shaders/Particles/Alpha Blended
Legacy Shaders/Particles/Alpha Blended Premultiply
Legacy Shaders/Particles/Alpha Blended Premultiply - UI
Legacy Shaders/Self-Illumin/Diffuse
Legacy Shaders/Self-Illumin/VertexLit
Legacy Shaders/Specular
Legacy Shaders/Transparent/Cutout/Bumped Diffuse
Legacy Shaders/Transparent/Cutout/Bumped Specular
Legacy Shaders/Transparent/Cutout/Diffuse
Legacy Shaders/Transparent/Cutout/VertexLit
Legacy Shaders/Transparent/Diffuse
Legacy Shaders/Transparent/VertexLit
Legacy Shaders/VertexLit
MaskedTexture
Mobile/Diffuse
Mobile/Particles/Additive
Mobile/Particles/Alpha Blended
Mobile/Particles/Multiply
Mobile/VertexLit
Parallax Specular (Alpha)
Particles/Standard Unlit
PieChart
Shader Forge/Monolith
Shader Forge/Tumbler
Solid Color (Alpha)
Sprite/Simple Texture (Unlit)
Sprites/Default
Sprites/Mask
Standard
Standard (Specular setup)
Terrain/Gas Giant
Terrain/PQS/Aerial Cutout
Terrain/PQS/Ocean Surface Quad
Terrain/PQS/Ocean Surface Quad (Fallback)
Terrain/PQS/PQS Main - Optimised
Terrain/PQS/PQS Main - Optimised With Fast Blend
Terrain/PQS/PQS Main Shader
Terrain/PQS/PQS Main Shader - Fast Blend
Terrain/PQS/PQS Main Shader - Triplanar Zoom Rotation
Terrain/PQS/PQS Triplanar Zoom Rotation
Terrain/PQS/PQS Triplanar Zoom Rotation Texture Array
Terrain/PQS/PQS Triplanar Zoom Rotation Texture Array - 1 Blend
Terrain/PQS/PQS Triplanar Zoom Rotation Texture Array - 2 Blend
Terrain/PQS/PQS Triplanar Zoom Rotation Texture Array - 3 Blend
Terrain/PQS/PQS Triplanar Zoom Rotation Texture Array - 4 Blend
Terrain/PQS/Sphere Projection SURFACE QUAD
Terrain/PQS/Sphere Projection SURFACE QUAD (AP) 
Terrain/PQS/Sphere Projection SURFACE QUAD (Fallback) 
Terrain/Scaled Planet (RimAerial)
Terrain/Scaled Planet (RimAerial) Standard
Terrain/Scaled Planet (Simple)
TextMeshPro/Distance Field
TextMeshPro/Mobile/Distance Field
TextMeshPro/Sprite
UI/Default
UI/Default Font
UI/KSP/Color Overlay
UI/KSP/Default (Transparent +2)
UI/KSP/UnlitMeshStencil
UI/KSP/UnlitMeshStencil (+2)
UI/Unlit/Text
Unlit/Color
Unlit/Transparent
Unlit/Transparent Cutout
UnlitAlpha

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...