Deprecated: Function split() is deprecated in /home/wiki/public_html/inc/common.php on line 533

Warning: Cannot modify header information - headers already sent by (output started at /home/wiki/public_html/inc/common.php:533) in /home/wiki/public_html/inc/actions.php on line 71
tvmesh:setlightingmode [TV3DWiki]
 

Wiki > TV3D65 Index > TVMesh

SetLightingMode

DESCRIPTION

-This page has been generated automatically. Please improve it by adding a description and additional information.

DECLARATION

VB.NET SetLightingMode(eLightingMode As CONST_TV_LIGHTINGMODE , iMaxDirLight As Integer , iMaxPointLight As Integer)
C++ void SetLightingMode(cCONST_TV_LIGHTINGMODE eLightingMode , int iMaxDirLight , int iMaxPointLight )

PARAMETERS

NAMEOPTIONALDESCRIPTION
eLightingModeNoeLightingMode description
iMaxDirLightYesiMaxDirLight description
iMaxPointLightYesiMaxPointLight description

RETURN VALUE

Null Does not return a value.

EXAMPLES

ExampleBasic example.

TIPS

  • LightingMode should be set prior to loading in Geometry via .LoadXFile() or .LoadTVM(). This is especially true when using the TVMesh to create a TVMinimesh. The TVMinimesh will look at the lightingMode of the TVMesh to determine what vertex format to use so that the proper information will be available to vertex shaders. For instance, TangentBumpMapping lighting mode requires Binormal, Tangent and Normal informat be included in the Vertex format. This gets created automatically by TVMinimesh if the TVMesh it is created off of has the TangentBumpMapping lighting mode set. So in a sense, LightingMode can be viewed as a SetMeshFormat shortcut. It should not be viewed as something that really has anything to do with Lights, Materials and Textures.
  • If you’re creating an Editor, think of LightingMode as something that requires the mesh to be unloaded and reloaded whenever the mode is changed. In other words, the same as you would for changing the MeshFormat.
 
tvmesh/setlightingmode.txt · Last modified: 2011/11/02 22:05 by 50.54.151.50