protected virtual string GetUnlitShaderName(UnlitShaderFeatures features) { var doubleSided = (features & UnlitShaderFeatures.DoubleSided) != 0; var alphaBlend = (features & UnlitShaderFeatures.AlphaBlend) != 0; var shaderName = $"{SHADER_UNLIT}{(alphaBlend ? "-Blend" : "-Opaque")}{(doubleSided ? "-double" : "")}"; return(shaderName); }
protected virtual string GetUnlitShaderName(UnlitShaderFeatures features) { var doubleSided = (features & UnlitShaderFeatures.DoubleSided) != 0; var alphaBlend = (features & UnlitShaderFeatures.AlphaBlend) != 0; var shaderName = string.Format( "{0}{1}{2}", SHADER_UNLIT, alphaBlend ? "-Blend" : "-Opaque", doubleSided ? "-double" : "" ); return(shaderName); }
protected override string GetUnlitShaderName(UnlitShaderFeatures features) { return(SHADER_UNLIT); }