Home

Awesome

MayaToonOutlineShader

preview

Realtime Toon Shader for Maya Hardware 2.0 Renderer

日本語ドキュメントはこちら

This is a toon shader for Maya Hardware 2.0 Renderer that implements a feature commonly used in game engines.

This shader is useful for previewing a model without exporting it to a game engine.

※ Arnold Renderer is not supported.

Download: https://kamone416.gumroad.com/l/hnddn

twitter: https://twitter.com/kamone416

Usage

  1. Enable the dx11Shader.mll plugin.

preview

  1. Set the rendering engine to DirextX11.
Preferences Window: Display > Viewport 2.0 > Rendering engine

preview

  1. Set Color Management Preferences to Legacy.

preview

  1. Save the preferences and restart MAYA.

  2. Create DirectX 11 Shader material.

Hypershade Window: Create > Materials > DirextX 11 Shader

preview

  1. Open the material's attributes and change the shader file to the MayaToonOutline.fx file you downloaded.

preview

  1. Apply the material to the object.
  2. Enable Textured for a real-time preview.

preview

Parameters

Shader

ParametersDescription
Shader FileSelect the MayaToonOutline.fx file.
TechniqueToonOutline: Toon shading and Outline.<br>Toon: Toon shading only.<br>Outline: Outline only.

Lighting

ParametersDescription
Linear Space LightingDisable this option to refrain from correcting gamma in the textures. Enabling this option assumes that the textures have gamma applied and therefore removes this gamma and re-applies it later on.
ShadowsSelect this option to enable shadow casting.
Shadow StrengthUse this slider to control the intensity of the shadows.
Shadow BiasSometimes, real-time shadows can cause artifacts on your objects caused by limited precision in the shadow map or differences in scene scale. Use this attribute to remove shadow artifacts on your object.
Shadow Filter WidthBlur the shadow boundary.
Shadow Filter CountSpecify the number of times to draw shadows. A higher number of draws will result in smoother shadows.

Transparent

Transparency will only work with the Toon technique.

ParametersDescription
Opacity Map UVSelect the UV for the Opacity Map. If you don't want to use the Opacity Map, select None.
Opacity MapSpecifies the Opacity Map Texture.
OpacityGlobal opacity.

Color

BaseColor

ParametersDescription
Base ColorBase Color.
Base Color Map UVSelect the UV for the Base Color Map. If you don't want to use the Base Color Map, select None.
Base Color MapSpecifies the Base Color Map Texture.

Detail Color Map

Set this option if you want to display a texture on top of the basic color, such as a decal.

ParametersDescription
Detail Color Map UVSelect the UV for the Detail Color Map. If you don't want to use the Detail Color Map, select None.
Detail Color MapSpecifies the Detail Color Map Texture.

Grade Map

A Grade Map is a texture or vertex color used to control shadows. Black areas will always be in shadow.

ParametersDescription
Grade Map UVSelect the UV for the Grade Map. If you don't want to use the Grade Map, select None.
Grade MapSpecifies the Grade Map Texture.
Grade Map Vertex ColorSelect a vertex color channel to use as the Grade Map.
Grade Map LevelUse this slider to control the intensity of the Grade Map.

Shadow Color

ParametersDescription
Shadow Color Map UVSelect the UV for the Shadow Color Map. If you don't want to use the Shadow Color Map, select None.
Shadow Color MapSpecifies the Shadow Color Map Texture.
Shadow 1 ColorSets the color of the first layer of shadow.<br>This color will be multiplied by Shadow Color Map.<br>If Shadow Color Map is not set, it will be multiplied by Base Color.
Shadow 1 StepSets the boundary between the Base Color and the Shadow 1 Color.
Shadow 1 FeatherFeathers the boundary between the Base Color and the Shadow 1 Color.
Shadow 2 ColorSets the color of the second layer of shadow.<br>This color will be multiplied by Shadow Color Map.<br>If Shadow Color Map is not set, it will be multiplied by Base Color.
Shadow 2 StepSets the boundary between the Shadow 1 Color and the Shadow 2 Color.
Shadow 2 FeatherFeathers the boundary between the Shadow 1 Color and the Shadow 2 Color.

Speclar

ParametersDescription
Speclar ColorSpecifies the color of the speclar.
Speclar Map UVSelect the UV for the Speclar Map. If you don't want to use the Speclar Map, select None.
Speclar MapSpecifies the Speclar Map Texture.
Speclar StepSpecifies the intensity of the speclar. Speclar.
Speclar FeatherSpecifies the smoothness of the speclar.

RimLight

ParametersDescription
Rim Light ColorSpecifies the color of the rim light.
Rim Light StepSpecifies the intensity of the rim light.
Rim Light FeatherSpecifies the smoothness of the rim light.
Light Direction EffectSpecifies how much the rim light will be shifted toward the main light.
Invert Light DirectionReverses the effect of the main light.

Outline

ParametersDescription
Outline WidthSpecifies the width of the outline.
Outline Width MapSelect a vertex color channel to use for adjusting the width of the outline.<br>The width of the outline will be multiplied by the vertex color.
Outline Color Map UVSelect the UV for the Outline Color Map. If you don't want to use the Outline Color Map, select None.
Outline Color MapSpecifies the Outline Color Map.
Outline ColorSpecifies the color of the outline.
Z OffsetOffset the outline in the Z direction by the specified value.
Z Offset MapSelect a vertex color channel to use for adjusting the Z Offset.<br>The Z Offset will be multiplied by the vertex color.

Debug

Debug ParametersDescription
NoneNo Debugging.
HalfLambertShading with HalfLambert.
GradeMapDisplay the grade map.
HalfLambert * GradeMapDisplay the result of HalfLambert * GradeMap.
Normal XYZDisplay the normal value.
Normal XDisplay the normal X value.
Normal YDisplay the normal Y value.
Normal ZDisplay the normal Z value.
VertexColor1 RGBDisplay the vertex color of ColorSet1.
VertexColor1 RedDisplay the red channel of the vertex color of ColorSet1.
VertexColor1 GreenDisplay the blue channel of the vertex color of ColorSet1.
VertexColor1 BlueDisplay the green channel of the vertex color of ColorSet1.
VertexColor1 AlphaDisplay the alpha channel of the vertex color of ColorSet1.
VertexColor2 RGBDisplay the vertex color of ColorSet2.
VertexColor2 RedDisplay the red channel of the vertex color of ColorSet2.
VertexColor2 GreenDisplay the blue channel of the vertex color of ColorSet2.
VertexColor2 BlueDisplay the green channel of the vertex color of ColorSet2.
VertexColor2 AlphaDisplay the alpha channel of the vertex color of ColorSet2.