Click or drag to resize
AB4D logo

XRayEffect Class

XRayEffect effect rendered the geometry as it would be photographed by an x-ray. The transparency level of a triangle is determined by the angle between the triangle's normal and the camera. The triangles that face towards or away from the camera are transparent, the triangles that face in perpendicular direction are visible. The Falloff value can change how fast the triangles become transparent.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXDXResourceBase
    Ab3d.DirectXSharedDXResource
      Ab3d.DirectXSharedDXDeviceResource
        Ab3d.DirectXEffect
          Ab3d.DirectX.EffectsXRayEffect

Namespace: Ab3d.DirectX.Effects
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public class XRayEffect : Effect

The XRayEffect type exposes the following members.

Constructors
 NameDescription
Public methodXRayEffect Constructor
Top
Properties
 NameDescription
Public propertyColor Gets or sets a Color4 that is used to render all 3D models when OverrideModelColor property is set to true.
Public propertyOverrideBlendState When set (is not null), then this effect will use this BlendState.
Public propertyOverrideDepthStencilState When set (is not null), then this effect will use this DepthStencilState.
Public propertyOverrideFalloff Gets or sets a float that can be used as a Falloff value of all objects rendered by this effect (instead of a Falloff value from XRayMaterial). When 0 (by default), then the Falloff value from XRayMaterial is used.
Public propertyOverrideModelColor When true then the Color is used to render all the 3D models. When false (by default) the color defined in the model's material is used.
Public propertyOverrideRasterizerState When set (is not null), then this effect will use this RasterizerState.
Public propertyRequiredInputLayoutType Gets the input layout that is required to render this effect.
(Overrides EffectRequiredInputLayoutType)
Top
Methods
 NameDescription
Public methodApplyMaterial Applies the material and object's world matrix to this effect.
(Overrides EffectApplyMaterial(Material, RenderablePrimitiveBase))
Public methodPreloadShaders PreloadShaders can be called to load the shaders in advance before they are used. Calling this method increases the startup time, but when the 3D object needs to be shown, it is shown faster because all the shaders have already been created.
(Overrides EffectPreloadShaders)
Top
Fields
 NameDescription
Public fieldStatic memberEffectName Effect name
Top
See Also