UnityEditor.BabylonShaderInterface.HasValidEmissiveKeyword C# (CSharp) Method

HasValidEmissiveKeyword() private method

private HasValidEmissiveKeyword ( Material material ) : bool
material UnityEngine.Material
return bool
		bool HasValidEmissiveKeyword (Material material)
		{
			// Material animation might be out of sync with the material keyword.
			// So if the emission support is disabled on the material, but the property blocks have a value that requires it, then we need to show a warning.
			// (note: (Renderer MaterialPropertyBlock applies its values to emissionColorForRendering))
			bool hasEmissionKeyword = material.IsKeywordEnabled ("_EMISSION");
			if (!hasEmissionKeyword && ShouldEmissionBeEnabled (material, emissionColorForRendering.colorValue))
				return false;
			else
				return true;
		}