The Fragment Visualizer is a runtime tool that will help Unity developers "visualize" certain fragment properties that are processed by shaders, and all the while running on the target platform.
​
With this tool, it'll be easier than ever for developers to optimize and debug graphics in their Unity applications. They'll be able to narrow down causes for shading issues, identify where texture sizes can be reduced, they'll even be able to see the scale of models relative to the world.
​
Uses:
-
Identify if texture size can be reduced
-
Determine cause for dynamic lighting issues
-
Determine cause for baked lighting issues
-
Identify which objects are dynamic vs. ones with baked lighting
-
Identify where there are mangled UVs and island borders
-
Identify models that use mirrored textures
-
Determine if textures are square or not
-
Determine the scale of the world at a glance
​
See below for an entire list of visualizers.
Key Features
Version 1.0.3 (3.29.2018)
-
Integrates with your application so that the visualizers run on the target platform.
-
Easy to use UI that can be minimized down to a small button so that it doesn't get in the way.
-
Wide selection of visualizers to help you to see what your shaders are processing.
-
Heads up description of each of the visualizers.
The Visualizers
BumpmapObjectSpace
-
Draws _BumpMap normals in object space.
-
Can be used to solve lighting and reflection issues
BumpmapTangentSpace
-
Draws _BumpMap normals.
-
Can be used to solve lighting and reflection issues
BumpmapViewSpace
-
Draws _BumpMap normals in view space.
-
Can be used to solve lighting and reflection issues
BumpmapWorldSpace
-
Draws _BumpMap normals in world space.
-
Can be used to solve lighting and reflection issues
Depth
Draws depth fragment.
GoochObjectNormal
-
Shades object space normals from orange to violet in view space.
-
Can be used to solve lighting and reflection issues
GoochTangentNormal
-
Shades tangent space normals from orange to violet in view space.
-
Can be used to solve lighting and reflection issues
GridObject
-
Draws a grid in object space.
-
Can be used to view the orientation and scale of the object
GridWorld
-
Draws a grid in world space.
-
Can be used to view the scale of an object in relation to the world.
Lightmap
-
Draws lightmap baked into static objects, while unbaked or dynamic objects are drawn blue.
-
Can be used to see light baking artifacts and dynamic objects
LightmapRes
-
Draws checker pattern representing lightmap pixels for static objects with baked lighting, while unbaked or dynamic objects are drawn blue.
-
Can be used to see the size of baked pixels, light baking artifacts, and dynamic objects
Alpha
-
Draws _MainTex alpha in greyscale.
-
Will help to determine how much alpha is in the scene.
MaintexTexelSize
-
Tints _MainTex texels red or blue depending on if it's being scaled down or up, respectively. No tinting means the texel is one to one.
-
Can be used to tell if a texture is too large or too small at a given distance to a surface.
MaintexTextureSize
-
Draws greater texture dimension as a color.
-
Will help to identify the size of textures in a scene.
-
Texture
MaintexTile
-
Draws the scale of _MainTex. A scale of 1 or less will draw a solid color. A scale greater than 1 will result in a checker pattern.
-
Will tell you where textures are being tiled or not, and if UVs are are outside of the typical 0,1 UV range.
MaintexUniformity
-
Draws a checker pattern in place of _MainTex.
-
Will tell you if pixels are being stretched or not. Square checkers means square pixels.
MaintexUv
-
Draws UVs as colors.
-
Will tell you where there are mangled UVs. It'll also help you to see UV islands and if textures are being tiled.
NormalObjectSpace
-
Draws object normals in object space.
-
Can be used to solve lighting and reflection issues
NormalViewSpace
-
Draws object normals in view space.
-
Can be used to solve lighting and reflection issues
NormalWorldSpace
-
Draws object normals in world space.
-
Can be used to solve lighting and reflection issues
ReflectionObjectNormal
-
Draws reflection using object normals.
-
Can be used to solve lighting and reflection issues
ReflectionTangentNormal
-
Draws reflection using _BumpMap normals.
-
Can be used to solve lighting and reflection issues
VertexColor
-
Draws vertex colors.