Shader & Graphics Calculator

Instantly convert gamma, calculate light attenuation, swap normal map channels, convert roughness ↔ gloss, and generate shader code—all in one online tool for artists, technical artists, and game devs.
Accurate, mobile-friendly, SEO-optimized for real-time workflows in Unity, Unreal, Godot, Blender & more.


Gamma Correction (Linear ↔ sRGB)

PBR Roughness ↔ Gloss Converter

Note: Roughness and Glossiness are inverses in PBR (gloss = 1 – roughness). Make sure your value matches the input type selected.

Normal Map Channel Swapper

Original
Swapped

FAQ: Shader, Normal Map, and PBR Converters

How do I convert between PBR Roughness and Glossiness?
Use the converter above: Roughness and Glossiness are mathematical inverses, so gloss = 1 - roughness and roughness = 1 - glossiness.
How do I swap or invert channels in a normal map?
Upload your normal map, check the swaps/inverts you need (for engine compatibility), and download the result as PNG. Use this for Unity, Unreal, Godot, Blender, etc.
What is gamma correction? What is sRGB?
Gamma correction changes color values between Linear and sRGB color spaces. Use sRGB for textures; linear for lighting and calculations. This tool uses the correct mathematical conversion.
Does this tool work on mobile?
Yes—all converters and previews are mobile optimized, touch-friendly, and require no login or install.
Are these calculations industry-standard?
Yes. The math is based on widely accepted equations for PBR, gamma correction, and normal map conversion. References include Unity, Unreal, and Blender documentation.
Scroll to Top