Class ShaderHelper
Various static utility methods for working with Shaders
Inherited Members
Namespace: Jotunn.Utils
Assembly: Jotunn.dll
Syntax
public static class ShaderHelper
Methods
Name | Description |
---|---|
CreateScaledTexture(Texture2D, int) | Create a new, scaled texture from a given texture. |
GetAllRendererMaterials(GameObject) | Get a list of all normal and shared renderer Material of a GameObject and its childs |
GetRendererMaterials(GameObject) | Get a list of all renderer Material of a GameObject and its childs |
GetRendererSharedMaterials(GameObject) | Get a list of all shared renderer Material of a GameObject and its childs |
GetRenderers(GameObject) | Get a list of all MeshRenderer and SkinnedMeshRenderer in this GameObject and its childs. |
ScaleTexture(Texture2D, int) | Scale a texture to a certain width, aspect ratio is preserved. |
ShaderDump(GameObject) | Dumps all shader information of a GameObject and its childs onto debug log |