/// <summary>Creates a material from a shader, and uses the shader's default settings.</summary> /// <param name="id">Set the material's id to this.</param> /// <param name="shader">Any valid shader.</param> public Material(string id, Shader shader) { _materialInst = NativeAPI.material_create(shader == null ? IntPtr.Zero : shader._shaderInst); NativeAPI.material_set_id(_materialInst, id); }
public Model(string id, Mesh mesh, Material material) { _modelInst = NativeAPI.model_create_mesh(mesh._meshInst, material._materialInst); NativeAPI.material_set_id(_modelInst, id); }