Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Assembly: Visual3D.Engine (in Visual3D.Engine.dll) Version: 1.0.0.0 (1.0.0.0)
Creates a new Technique for this Material.
Namespace: Visual3D.Graphics3DAssembly: Visual3D.Engine (in Visual3D.Engine.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# | Visual Basic |
public OgreRenderTechnique CreateTechnique()
Public Function CreateTechnique As OgreRenderTechnique
Return Value
Remarks
A Technique is a single way of rendering geometry in order to achieve the effect
you are intending in a material. There are many reason why you would want more than
one - the main one being to handle variable graphics card abilities; you might have
one technique which is impressive but only runs on 4th-generation graphics cards,
for example. In this case you will want to create at least one fallback Technique.
The engine will work out which Techniques a card can support and pick the best one.
If multiple Techniques are available, the order in which they are created is
important - the engine will consider lower-indexed Techniques to be preferable
to higher-indexed Techniques, ie when asked for the 'best' technique it will
return the first one in the technique list which is supported by the hardware.