Show / Hide Table of Contents

Class ShaderHelper

Various static utility methods for working with Shaders
Inheritance
object
ShaderHelper
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾