Files
docs-desktop/dotnet-desktop-guide/framework/wpf/graphics-multimedia/how-to-apply-emissive-material-to-a-3-d-object.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

2.5 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
How to: Apply Emissive Material to a 3D Object 03/30/2017
csharp
vb
EmissiveMaterial [WPF], applying to 3D objects
3D objects [WPF], applying EmissiveMaterial
fd442cc2-5adc-487a-ba70-e45ed54bb3b4

How to: Apply Emissive Material to a 3D Object

The following example shows how to use xref:System.Windows.Media.Media3D.EmissiveMaterial to add color to an existing Material equal to the color of the EmissiveMaterial's brush. The code below shows xref:System.Windows.Media.Media3D.DiffuseMaterial and xref:System.Windows.Media.Media3D.EmissiveMaterial applied in combination to add blue to the DiffuseMaterial's appearance.

[!code-xaml3DGallery_snip#EmmisiveMaterialAnimationExampleInline1]

In procedural code:

[!code-csharp3DGallery_procedural_snip#EmissiveMaterialCodeExampleInline1] [!code-vb3DGallery_procedural_snip#EmissiveMaterialCodeExampleInline1]

Example

The following code shows the entire sample in XAML.

[!code-xaml3DGallery_snip#EmissiveMaterialExampleWholePage]

Example

Below is the entire sample in procedural code.

[!code-csharp3DGallery_procedural_snip#EmissiveMaterialCodeExampleWholePage] [!code-vb3DGallery_procedural_snip#EmissiveMaterialCodeExampleWholePage]

See also