open3mod.MaterialMapper.ApplyMaterial C# (CSharp) Method

ApplyMaterial() public abstract method

Applies a material to the Gl state machine. Depending on the renderer, this either sets GLSL shaders (GL3) or it configures the fixed function pipeline (legacy/classic).
public abstract ApplyMaterial ( Mesh mesh, Assimp.Material mat, bool textured, bool shaded ) : void
mesh Assimp.Mesh Mesh to be drawn. This parameter may be left null /// to use a material with geometry other than assimp meshes (i.e. /// for the material preview tab). In this case, it is assumed that /// the geometry to be used with the materials specifies normals, /// one set of UV coordinates but no vertex colors. /// TODO tangents, bitangents? ///
mat Assimp.Material Material to be applied, must be non-null
textured bool
shaded bool
return void
        public abstract void ApplyMaterial(Mesh mesh, Material mat, bool textured, bool shaded);