Raymarcher Texture Utilities - RMTextureUtils
Namespace: Raymarcher.Utilities
Raymarcher contains a texture utilities library (RMTextureUtils) that allows you to work with Unity textures within the Raymarcher framework.
Use this library to create Raymarcher-friendly 3D render textures, compare texture dimensions, and convert the working 3D render texture to a 3D texture.
public static Texture2DArray GenerateTextureArray(List<Texture2D> existingTextures)
public static int GetInstanceTextureIndexFromCachedTextureList(Texture2D existingTextureEntry, List<Texture2D> textureList)
public static RenderTexture CreateDynamic3DRenderTexture(int uniformResolution, string name)
public static RenderTexture CreateDynamic3DRenderTexture(int width, int height, int depth, string name)
public static bool CompareTex3DDimensions(Texture3D tex3D, int targetResolution)
public static bool CompareRT3DDimensions(RenderTexture rt3D, int targetResolution)
public static RenderTexture ConvertTexture3DToRenderTexture3D(Texture3D source)
public static void ConvertRenderTexture3DToTexture3D(RenderTexture renderTexture3D, Action<Texture3D> callbackResult)
public static void SaveRenderTexture3DToEditorAssets(RenderTexture entryRT3D)