publicreadonlyGUIContentvertexColorModeText=newGUIContent("Vertex Color Mode","Mode multiply: vertex color is multiply with the mask. Mode additive: vertex color values are remapped between -1 and 1 and added to the mask (neutral at 0.5 vertex color).");
publicreadonlyGUIContentlayerCountText=newGUIContent("Layer Count","Number of layers.");
publicreadonlyGUIContentlayerTilingBlendMaskText=newGUIContent("Tiling","Tiling for the blend mask.");
publicreadonlyGUIContentobjectScaleAffectTileText=newGUIContent("Object Scale affect tiling","Tiling will be affected by the object scale.");
publicreadonlyGUIContentUVBlendMaskText=newGUIContent("BlendMask UV Mapping","Base UV Mapping mode of the layer.");
publicreadonlyGUIContentUVDetailText=newGUIContent("Detail UV Mapping","Detail UV Mapping mode of the layer.");
layerUVMappingMask[i].colorValue=(i==0)?newColor(1.0f,0.0f,0.0f,0.0f):newColor(X,Y,Z,W);// Special case for Main Layer and Blend Mask, only UV0. As Layer0 is share by both here, need to force X to 1.0 in all case
layerUVMappingPlanar[i].floatValue=(layerUVBaseMapping==LayerUVBaseMapping.Planar)?1.0f:0.0f;// Planar have priority on UV0
// All the following properties that concern the UV mapping are the same as in the Lit shader.
_TexWorldScale1("Tiling", Float) = 1.0
_TexWorldScale2("Tiling", Float) = 1.0
_TexWorldScale3("Tiling", Float) = 1.0
[Enum(UV0, 0, Planar, 4, Triplanar, 5)] _UVBase0("UV Set for base0", Float) = 0 // no UV1/2/3 for main layer (matching Lit.shader and for PPDisplacement restriction)
[Enum(UV0, 0, UV1, 1, UV2, 2, UV3, 3, Planar, 4, Triplanar, 5)] _UVBase1("UV Set for base1", Float) = 0
[Enum(UV0, 0, UV1, 1, UV2, 2, UV3, 3, Planar, 4, Triplanar, 5)] _UVBase2("UV Set for base2", Float) = 0