NoMSAA supervariant support
Added a ShaderSystem supervariant to provide a system-wide supervariant name. Changed ShaderAsset to append the system-wide supervariant name when searching for supervariants. Added the NoMSAA supervariant to several shaders.
This commit is contained in:
@@ -658,7 +658,7 @@ namespace AZ
|
||||
if (!m_shaderResourceGroup)
|
||||
{
|
||||
auto& shaderAsset = material->GetAsset()->GetMaterialTypeAsset()->GetShaderAssetForObjectSrg();
|
||||
m_shaderResourceGroup = RPI::ShaderResourceGroup::Create(shaderAsset, RPI::DefaultSupervariantIndex, objectSrgLayout->GetName());
|
||||
m_shaderResourceGroup = RPI::ShaderResourceGroup::Create(shaderAsset, objectSrgLayout->GetName());
|
||||
if (!m_shaderResourceGroup)
|
||||
{
|
||||
AZ_Warning("MeshFeatureProcessor", false, "Failed to create a new shader resource group, skipping.");
|
||||
|
||||
Reference in New Issue
Block a user