Syntax

dbSetReflectionShadingOn(ObjectID)

Description

This command will set the specified object to use reflection. Use this command when you want to give your object a reflective quality, though not all 3D hardware will support Vertex Shaders which are required to produce this effect. Be aware that you need to point the object you are using to reflect the scene in the direction you want the reflection to deflect on. All primitive objects when created are pointing into the screen. You will need to rotate such objects in order to orient them for your desired reflection plane. Also be aware that there is only one reflection plane per session given the performance hit of this technique, so you cannot have two reflection planes pointing in different directions.

See Also

dbSetAlphaMappingOn, dbSetBlendMappingOn, dbSetBumpMappingOn, dbSetCartoonMappingOn, dbSetCubeMappingOn, dbSetDetailMappingOn, dbSetEffectOn, dbSetLightMappingOn, dbSetRainbowShadingOndbSetShadingOff, dbSetShadowShadingOn, dbSetSphereMappingOn