Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8667

How to know if a material is emissive or not?

$
0
0

@binigya wrote:

Hi,

So, I have a CRhinoMaterial, and would like to know if it has an emissive property or not.

What would be the correct way of doing this?

Is this pseudo-code okay :

ON_Color rhinoColorEmissive = currentMaterial.Emission();
	if (rhinoColorEmissive != NULL)
	{
		// THe material contains emission ?
	}

Is this the way to proceed ? Thanks!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 8667

Trending Articles