SO3Engine
|
SCOLLighting.cpp
Go to the documentation of this file.
1095 else if (scene->O3SceneManager->getShadowTechnique() == Ogre::SHADOWTYPE_TEXTURE_ADDITIVE_INTEGRATED)
1360 // To avoid Rendering Problem Disable the possibility to set Stencil Based Shadow when scene has Texture Unit States with content_type shadow
1362 if(((Ogre::ShadowTechnique)tec==SO3_SHADOWTYPE_STENCIL_ADDITIVE ||(Ogre::ShadowTechnique)tec==SO3_SHADOWTYPE_STENCIL_MODULATIVE||(Ogre::ShadowTechnique)tec==SO3_SHADOWTYPE_NONE))
1364 Ogre::ResourceManager::ResourceMapIterator it = scene->O3MaterialManager->getResourceIterator();
1371 if(curMat->getTechnique(i)->getPass(j)->getTextureUnitState(k)->getContentType()==Ogre::TextureUnitState::CONTENT_SHADOW)
1374 Ogre::LogManager::getSingleton().logMessage("Reset material : " + curMat->getName() + " cause it used a shadow map texture integrated \n ", Ogre::LML_CRITICAL,true) ;
1381 if (((Ogre::ShadowTechnique)tec == SO3_SHADOWTYPE_STENCIL_ADDITIVE || (Ogre::ShadowTechnique)tec == SO3_SHADOWTYPE_STENCIL_MODULATIVE))
1583 { "SO3_SHADOWDETAILTYPE_MODULATIVE", TYPVAR, "I", SCOL_TYPTYPE(SO3_SHADOWDETAILTYPE_MODULATIVE) },
1584 { "SO3_SHADOWDETAILTYPE_INTEGRATED", TYPVAR, "I", SCOL_TYPTYPE(SO3_SHADOWDETAILTYPE_INTEGRATED) },
1587 { "SO3_SHADOWTYPE_STENCIL_MODULATIVE", TYPVAR, "I", SCOL_TYPTYPE(SO3_SHADOWTYPE_STENCIL_MODULATIVE) },
1588 { "SO3_SHADOWTYPE_STENCIL_ADDITIVE", TYPVAR, "I", SCOL_TYPTYPE(SO3_SHADOWTYPE_STENCIL_ADDITIVE) },
1589 { "SO3_SHADOWTYPE_TEXTURE_MODULATIVE", TYPVAR, "I", SCOL_TYPTYPE(SO3_SHADOWTYPE_TEXTURE_MODULATIVE) },
1590 { "SO3_SHADOWTYPE_TEXTURE_ADDITIVE", TYPVAR, "I", SCOL_TYPTYPE(SO3_SHADOWTYPE_TEXTURE_ADDITIVE) },
1591 { "SO3_SHADOWTYPE_TEXTURE_ADDITIVE_INTEGRATED", TYPVAR, "I", SCOL_TYPTYPE(SO3_SHADOWTYPE_TEXTURE_ADDITIVE_INTEGRATED) },
1592 { "SO3_SHADOWTYPE_TEXTURE_MODULATIVE_INTEGRATED", TYPVAR, "I", SCOL_TYPTYPE(SO3_SHADOWTYPE_TEXTURE_MODULATIVE_INTEGRATED) },
1598 { "SO3_SHADOWS_PRESET_STENCIL", TYPVAR, "I", SCOL_TYPTYPE(SShadowManager::SO3_SHADOWS_STENCIL) },
1599 { "SO3_SHADOWS_PRESET_LISPSM", TYPVAR, "I", SCOL_TYPTYPE(SShadowManager::SO3_SHADOWS_LISPSM) },
1602 { "SO3_SHADOWS_PRESET_DEFERRED", TYPVAR, "I", SCOL_TYPTYPE(SShadowManager::SO3_SHADOWS_DEFERRED) },
1603 { "SO3_ADDITIVE_SHADOWS_PRESET_TECHNIQUE", TYPVAR, "I", SCOL_TYPTYPE(SShadowManager::SO3_ADDITIVE_SHADOWS_LIGHTING) },
1604 { "SO3_MODULATIVE_SHADOWS_PRESET_TECHNIQUE", TYPVAR, "I", SCOL_TYPTYPE(SShadowManager::SO3_MODULATIVE_SHADOWS_LIGHTING) },
1605 { "SO3_SHADOWS_QUALITY_VERYLOW", TYPVAR, "I", SCOL_TYPTYPE(SShadowManager::SO3_SHADOWS_QUALITY_VERYLOW) },
1606 { "SO3_SHADOWS_QUALITY_LOW", TYPVAR, "I", SCOL_TYPTYPE(SShadowManager::SO3_SHADOWS_QUALITY_LOW) },
1607 { "SO3_SHADOWS_QUALITY_MEDIUM", TYPVAR, "I", SCOL_TYPTYPE(SShadowManager::SO3_SHADOWS_QUALITY_MEDIUM) },
1608 { "SO3_SHADOWS_QUALITY_HIGH", TYPVAR, "I", SCOL_TYPTYPE(SShadowManager::SO3_SHADOWS_QUALITY_HIGH) },
1609 { "SO3_SHADOWS_QUALITY_VERYHIGH", TYPVAR, "I", SCOL_TYPTYPE(SShadowManager::SO3_SHADOWS_QUALITY_VERYHIGH) },
1619 { "SO3SceneSetPlaneShadowCamera", 3, "fun [SO3_SCENE [F F F] F] I", SO3SceneSetPlaneShadowCamera },
1620 { "SO3SceneSetShadowDirectionalLightExtrusionDistance", 2, "fun [SO3_SCENE F] I", SO3SceneSetShadowDirectionalLightExtrusionDistance },
1622 { "SO3SceneSetShadowTextureFadeStart", 2, "fun [SO3_SCENE F] I", SO3SceneSetShadowTextureFadeStart },
1623 { "SO3SceneGetShadowTextureFadeStart", 1, "fun [SO3_SCENE] F", SO3SceneGetShadowTextureFadeStart },
1625 { "SO3SceneSetShadowTextureFadeEnd", 2, "fun [SO3_SCENE F] I", SO3SceneSetShadowTextureFadeEnd },
1626 { "SO3SceneGetShadowTextureFadeEnd", 1, "fun [SO3_SCENE] F", SO3SceneGetShadowTextureFadeEnd },
1627 { "SO3SceneSetShadowDirLightTextureOffset", 2, "fun [SO3_SCENE F] I", SO3SceneSetShadowDirLightTextureOffset },
1630 { "SO3SceneGetShadowDirectionalLightExtrusionDistance", 1, "fun [SO3_SCENE] F", SO3SceneGetShadowDirectionalLightExtrusionDistance },
1632 { "SO3SceneGetShadowDirLightTextureOffset", 1, "fun [SO3_SCENE] F", SO3SceneGetShadowDirLightTextureOffset },
1641 { "SO3SceneGetShadowLightingTechnique", 1, "fun [SO3_SCENE] I", SO3SceneGetShadowLightingTechnique },
1642 { "SO3SceneSetShadowLightingTechnique", 2, "fun [SO3_SCENE I] I", SO3SceneSetShadowLightingTechnique },
1655 return PKhardpak2(m, "SO3Lighting.pkg", sizeof(natSO3Lighting) / sizeof(natSO3Lighting[0]), natSO3Lighting);
int SCOLloadLighting(mmachine m, cbmachine w)
Load the SO3Engine Shadows functions.
Definition SCOLLighting.cpp:1653
MMechostr(MSKDEBUG, " > Start loading Plugin SO3Engine dll\n")
int SO3SceneSetShadowLightingTechnique(mmachine m)
SO3SceneSetShadowLightingTechnique : function to set the shadows technique.
Definition SCOLLighting.cpp:458
int SO3SceneGetShadowTextureCount(mmachine m)
SO3SceneGetShadowTextureCount : function to get the shadows texture count.
Definition SCOLLighting.cpp:1297
int SO3SceneSetShadowQuality(mmachine m)
SO3SceneSetShadowQuality : function to defines shadow quality to use with current shadow technique Th...
Definition SCOLLighting.cpp:504
int SO3SceneSetLISPSMShadowCamera(mmachine m)
SO3SceneSetLISPSMShadowCamera : function to set LISPSM shadow camera.
Definition SCOLLighting.cpp:706
int SO3SceneGetShadowQuality(mmachine m)
SO3SceneGetShadowQuality : function to get the shadow quality in use This works only with texture sha...
Definition SCOLLighting.cpp:554
int SO3SceneGetSelfShadowTexture(mmachine m)
SO3SceneGetSelfShadowTexture : function to get the self shadow texture.
Definition SCOLLighting.cpp:188
int SO3SceneSetShadowTechnique(mmachine m)
SO3SceneSetShadowTechnique : function to get the shadows technique.
Definition SCOLLighting.cpp:1344
int SO3SceneSetShadowReceiver(mmachine m)
SO3SceneSetShadowReceiver : function to defines shadows receiver.
Definition SCOLLighting.cpp:1455
int SO3SceneSetShadowPreset(mmachine m)
SO3SceneSetShadowPreset : function to defines a preset shadow subsystem to use.
Definition SCOLLighting.cpp:324
int SO3SceneGetShadowTextureFadeEnd(mmachine m)
SO3SceneGetShadowTextureFadeEnd : function to get the shadows fade end distance.
Definition SCOLLighting.cpp:1007
int SO3SceneGetShadowReceiver(mmachine m)
SO3SceneGetShadowReceiver : function to retrieve shadows receiver.
Definition SCOLLighting.cpp:1546
int SO3SceneSetShadowFarDistance(mmachine m)
SO3SceneSetShadowFarDistance : function to defines distance maximum for shadows.
Definition SCOLLighting.cpp:853
int SO3SceneSetShadowTextureSize(mmachine m)
SO3SceneSetShadowTextureSize : function to defines shadow texture size.
Definition SCOLLighting.cpp:228
int SO3SceneSetShadowColor(mmachine m)
SO3SceneSetShadowColor : function to defines shadow color of the scene.
Definition SCOLLighting.cpp:70
int SO3SceneSetDefaultShadowCamera(mmachine m)
SO3SceneSetDefaultShadowCamera : function to defines default shadow camera.
Definition SCOLLighting.cpp:630
int SO3SceneSetShadowTextureCount(mmachine m)
SO3SceneSetShadowTextureCount : function to defines shadow texture count in the scene.
Definition SCOLLighting.cpp:588
int SO3SceneGetShadowTechnique(mmachine m)
SO3SceneGetShadowTechnique : function to defines technique for shadows.
Definition SCOLLighting.cpp:1059
int SO3SceneSetShadowDirLightTextureOffset(mmachine m)
SO3SceneSetShadowDirLightTextureOffset : function to defines texture offset.
Definition SCOLLighting.cpp:1116
int SO3SceneSetShadowTextureFadeEnd(mmachine m)
SO3SceneSetShadowTextureFadeEnd : function to defines fade end distance for shadows.
Definition SCOLLighting.cpp:969
int SO3SceneSetShadowDirectionalLightExtrusionDistance(mmachine m)
SO3SceneSetShadowDirectionalLightExtrusionDistance : function to defines shadow directional light ext...
Definition SCOLLighting.cpp:812
int SO3SceneGetShadowDirLightTextureOffset(mmachine m)
SO3SceneGetShadowDirLightTextureOffset : function to get the shadows direction light texture offset.
Definition SCOLLighting.cpp:1264
int SO3SceneSetShadowTextureFadeStart(mmachine m)
SO3SceneSetShadowTextureFadeStart : function to defines fade start distance for shadows.
Definition SCOLLighting.cpp:892
int SO3SceneGetShadowTextureSize(mmachine m)
SO3SceneGetShadowTextureSize : function to get the shadow texture size.
Definition SCOLLighting.cpp:275
int SO3SceneSetFocusedShadowCamera(mmachine m)
SO3SceneSetFocusedShadowCamera : function to set focused shadow camera.
Definition SCOLLighting.cpp:664
int SO3SceneGetShadowTextureFadeStart(mmachine m)
SO3SceneGetShadowTextureFadeStart : function to get the shadows fade start distance.
Definition SCOLLighting.cpp:930
int SO3SceneGetShadowPreset(mmachine m)
SO3SceneGetShadowPreset : function to get the shadow subsystem in use.
Definition SCOLLighting.cpp:378
int SO3SceneGetShadowCameraSetup(mmachine m)
SO3SceneGetShadowCameraSetup : function to get the shadow camera setup mode.
Definition SCOLLighting.cpp:1152
int SO3SceneSetShadowCaster(mmachine m)
SO3SceneSetShadowCaster : function to defines shadows caster.
Definition SCOLLighting.cpp:1406
int SO3SceneGetShadowFarDistance(mmachine m)
SO3SceneGetShadowFarDistance : function to get the shadows far distance.
Definition SCOLLighting.cpp:1227
int SO3SceneSetPlaneShadowCamera(mmachine m)
SO3SceneSetPlaneShadowCamera : function to set Plane shadow camera.
Definition SCOLLighting.cpp:750
int SO3SceneGetShadowColor(mmachine m)
SO3SceneGetShadowColor : function to get the shadow color of the scene.
Definition SCOLLighting.cpp:108
int SO3SceneGetShadowDirectionalLightExtrusionDistance(mmachine m)
SO3SceneGetShadowDirectionalLightExtrusionDistance : function to get the shadows direction light extr...
Definition SCOLLighting.cpp:1184
int SO3SceneGetShadowLightingTechnique(mmachine m)
SO3SceneGetShadowLightingTechnique : function to get technique for shadows.
Definition SCOLLighting.cpp:415
int SO3SceneSetSelfShadowTexture(mmachine m)
SO3SceneSetSelfShadowTexture : function to defines self shadow texture.
Definition SCOLLighting.cpp:147
int SO3SceneGetShadowCaster(mmachine m)
SO3SceneGetShadowCaster : function to retrieve shadows caster material name.
Definition SCOLLighting.cpp:1505
Generated by 1.9.8