Click or drag to resize
AB4D logo

ModelColorLineMaterial Properties

The ModelColorLineMaterial type exposes the following members.

Properties
 NameDescription
Public propertyDefaultLineColor Color of the line that is used when the color cannot be determined from WPF material
Public propertyDepthBias Gets a float that specifies a bias that is used when doing a depth test. A bias is a value that specifies how much the line is moved closer to the camera. The value is specified in world coordinates. When camera is farther away from the object, then a bigger DepthBias is needed.
Public propertyDynamicDepthBiasFactor When DynamicDepthBiasFactor is bigger then 0 then this factor is multiplied by the distance of the position to the camera and this is then multiplied by the DepthBias. This can be used to correctly set the depth bias for objects that are close (require small depth bias) to the camera and to the objects that are far away from the camera (require big depth bias). Recommended values are: DepthBias: 0.1, DynamicDepthBiasFactor: 0.02; or LineDepthBias: 0.002, LineDynamicBiasFactor: 1. For backwards compatibility the default value is 0.
Public propertyLineColor Gets the color of the line that is determined from the WpfModel material.
Public propertyLineThickness Thickness of the line in screen space units.
Public propertyReadZBuffer Gets or sets a Boolean that specifies if Z buffer is read when rendering the line - if the depth test is done when rendering the line. If false then the line is rendered regardless of its depth - if is rendered even if it is behind some other 3D objects.
Public propertyWpfModel Wpf model used to get the line color from.
Public propertyWriteZBuffer Gets or sets a Boolean that specifies if Z buffer is written when rendering the line - if the line can occlude other 3D objects. If true then the objects behind the line will not be rendered. If false the line will not prevent rendering objects behind it.
Top
See Also