original_docstring:  Creates a UsdShade.Material based on the provided MagicaVoxel material.
  
          Args:
              name (str): Material prim name
              vox_mtl (VoxBaseMaterial): The source vox material
  
          Returns:
              UsdShade.Material: The created USD material
          
docstring: Creates a UsdShade.Material based on the provided MagicaVoxel material.
docstring_tokens: Creates a UsdShade . Material based on the provided MagicaVoxel material .
code: def create_material(self, name, vox_mtl):
          """ Creates a UsdShade.Material based on the provided MagicaVoxel material.
  
          Args:
              name (str): Material prim name
              vox_mtl (VoxBaseMaterial): The source vox material
  
          Returns:
              UsdShade.Material: The created USD material
          """
          mtl = UsdShade.Material.Define(self.model_stage, self.looks_scope.GetPath().AppendPath(name))
          self.shader_varset.SetVariantSelection(ShaderVariantSetNames.PREVIEW)
          with self.shader_varset.GetVariantEditContext():
              prvw_shader = UsdShade.Shader.Define(self.model_stage, mtl.GetPath().AppendPath("prvw_shader"))
              prvw_shader = vox_mtl.populate_usd_preview_surface(prvw_shader)
              mtl.CreateSurfaceOutput().ConnectToSource(prvw_shader.ConnectableAPI(), "surface")
          self.shader_varset.SetVariantSelection(ShaderVariantSetNames.OMNIVERSE)
          with self.shader_varset.GetVariantEditContext():
              omni_shader = UsdShade.Shader.Define(self.model_stage, mtl.GetPath().AppendPath("omni_shader"))
              omni_shader = vox_mtl.populate_omni_shader(omni_shader)
              mtl.CreateSurfaceOutput().ConnectToSource(omni_shader.ConnectableAPI(), "surface")
  
          return mtl
code_tokens: def create_material ( self , name , vox_mtl ) : mtl = UsdShade . Material . Define ( self . model_stage , self . looks_scope . GetPath ( ) . AppendPath ( name ) ) self . shader_varset . SetVariantSelection ( ShaderVariantSetNames . PREVIEW ) with self . shader_varset . GetVariantEditContext ( ) : prvw_shader = UsdShade . Shader . Define ( self . model_stage , mtl . GetPath ( ) . AppendPath ( "prvw_shader" ) ) prvw_shader = vox_mtl . populate_usd_preview_surface ( prvw_shader ) mtl . CreateSurfaceOutput ( ) . ConnectToSource ( prvw_shader . ConnectableAPI ( ) , "surface" ) self . shader_varset . SetVariantSelection ( ShaderVariantSetNames . OMNIVERSE ) with self . shader_varset . GetVariantEditContext ( ) : omni_shader = UsdShade . Shader . Define ( self . model_stage , mtl . GetPath ( ) . AppendPath ( "omni_shader" ) ) omni_shader = vox_mtl . populate_omni_shader ( omni_shader ) mtl . CreateSurfaceOutput ( ) . ConnectToSource ( omni_shader . ConnectableAPI ( ) , "surface" ) return mtl
short_docstring: Creates a UsdShade.Material based on the provided MagicaVoxel material.
short_docstring_tokens: Creates a UsdShade . Material based on the provided MagicaVoxel material .
comment: """ Creates a UsdShade.Material based on the provided MagicaVoxel material.
  
          Args:
              name (str): Material prim name
              vox_mtl (VoxBaseMaterial): The source vox material
  
          Returns:
              UsdShade.Material: The created USD material
          """