IMultiMapMaterial read only
#1
the interface imultimapmaterial is read only so how do i add my material list ??

Code:
#Region "Assembly Ab3d.DXEngine, Version=5.1.8153.1045, Culture=neutral, PublicKeyToken=d45c8e156fba2841"
' F:\Users\kevan\Documents\VS2022 Projects\x3DViewer\DLL\Ab3d.DXEngine.dll
#End Region

Imports System.Collections.Generic
Imports SharpDX.Direct3D11

Namespace Ab3d.DirectX.Materials
    '
    ' Summary:
    '     IMultiMapMaterial interface defines TextureMaps property that is a list of Ab3d.DirectX.Materials.TextureMapInfo
    '     objects and is used to define a material that uses multiple texture maps.
    Public Interface IMultiMapMaterial
        '
        ' Summary:
        '     Gets a list of Ab3d.DirectX.Materials.TextureMapInfo object that defines texture
        '     maps that should be rendered with this material.
        ReadOnly Property TextureMaps As List(Of TextureMapInfo)
        '
        ' Summary:
        '     Gets a BlendState that is used to render the base texture. If null a Ab3d.DirectX.CommonStates.Opaque
        '     or a Ab3d.DirectX.CommonStates.PremultipliedAdditiveBlend (in case of transparency)
        '     will be used.
        ReadOnly Property BlendState As BlendState
    End Interface
End Namespace

i have this declared
    Public Property MY_PBRmaterial As IMultiMapMaterial

when i try to add a texture to the list my app crashes

MY_PBRmaterial.TextureMaps.Add(_textureMapInfo) 'BREAKS HERE

so how do i add my textures to the list ?
Kevan Hampson
  


Messages In This Thread
IMultiMapMaterial read only - by GraPhiX - 01-26-2023, 06:35 PM
RE: IMultiMapMaterial read only - by abenedik - 03-13-2023, 12:15 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)