public void SetAlphaMode(ColoringComponent.COLORING_MAP_ALPHA_MODE alphaMode) { if (alphaMode == ColoringComponent.COLORING_MAP_ALPHA_MODE.NONE) { this.alphaModeDropdown.value = 0; } else if (alphaMode == ColoringComponent.COLORING_MAP_ALPHA_MODE.AS_EMISSION_MASK) { this.alphaModeDropdown.value = 1; } else if (alphaMode == ColoringComponent.COLORING_MAP_ALPHA_MODE.AS_SMOOTHNESS) { this.alphaModeDropdown.value = 2; } }
public void UpdateColoring(Color color, TextureData coloringTexture, ColoringComponent.COLORING_MAP_ALPHA_MODE alphaMode, TextureData normalMap, float normalScale, float metallic, bool overrideSmoothness, float smoothnessStrenght, bool useIntensityThreshold, float intensityThreshold) { this.coloringTexture = coloringTexture; this.normalMap = normalMap; this.newColoring.color = color; this.newColoring.coloringTextureAlphaMode = alphaMode; this.newColoring.coloringTexture = (coloringTexture == null) ? null : coloringTexture.texture2D; this.newColoring.coloringNormalMap = (normalMap == null) ? null : normalMap.texture2D; this.newColoring.coloringNormalScale = normalScale; this.newColoring.metallic = metallic; this.newColoring.overwriteSmoothness = overrideSmoothness; this.newColoring.smoothnessStrength = smoothnessStrenght; this.newColoring.useColoringIntensityThreshold = useIntensityThreshold; this.newColoring.coloringMaskThreshold = intensityThreshold; this.tankConstructor.ChangeColoring(this.newColoring); }