This Unity package allows for the creation of normal maps from 2D textures using compute shaders. The package offers various customization options including Smoothness, Intensity, Tiling, and the choice between Scharr and Sobel operators.
- Compute Shaders: Utilizes compute shaders for efficient and fast normal map generation.
- Color Curve LUT Adjust the grayscale curve of the input texture for better results.
- Smoothness Control: Adjust the smoothness (Gaussian filter) of the generated normal map.
- Intensity Control: Modify the intensity of the normal map effect.
- Tiling Options: Set the seamless tiling for the normal map.
- Operator Selection: Choose between Scharr and Sobel operators for edge detection.
Install a package from Git URL https://github.com/sudohubdev/normalprocessor.git
- Right click the Texture2D asset
- Choose
Dark/Normal Processor
- Alternatively, you can access the Window in
Assets/Dark/Normal Processor
- Adjust the parameters as needed
- At the bottom of the window, click
Save
to create the normal map. You will be prompted to save the generated normal map.
- Input Texture: The source 2D texture to convert into a normal map.
- Grayscale Curve: Adjusts the curve (Linear by default). Logarithmic curve can be useful in some cases.
- Smoothness: Controls the smoothness of the generated normal map using a Gaussian filter. Zero value bypasses the filter.
- Intensity: Adjusts the intensity of the normal map effect.
- Do Tiling: Sets the seamless tiling for the normal map.
- Use Scharr Operator: If enabled, uses the Scharr operator for edge detection; otherwise, uses the Sobel operator. Try both and pick a better one for your needs.
Add support for texture atlases- Add support for Sprite texture atlases with different sizes and offsets
- Add support for Texture2DArray
This project is licensed under the MIT License - see the LICENSE file for details.