@@ -255,6 +255,7 @@ pl_renderer_initialize(plRendererSettings tSettings)
255255 gptData -> tRuntimeOptions .bShowSelectedBoundingBox = true;
256256 gptData -> tRuntimeOptions .bImageBasedLighting = true;
257257 gptData -> tRuntimeOptions .bPunctualLighting = true;
258+ gptData -> tRuntimeOptions .bNormalMapping = true;
258259 gptData -> tRuntimeOptions .fShadowConstantDepthBias = -1.25f ;
259260 gptData -> tRuntimeOptions .fShadowSlopeDepthBias = -10.75f ;
260261 gptData -> tRuntimeOptions .fExposure = 1.0f ;
@@ -1692,6 +1693,8 @@ pl_renderer_outline_entities(plScene* ptScene, uint32_t uCount, plEntity* atEnti
16921693 iSceneWideRenderingFlags |= PL_RENDERING_FLAG_USE_PUNCTUAL ;
16931694 if (gptData -> tRuntimeOptions .bImageBasedLighting )
16941695 iSceneWideRenderingFlags |= PL_RENDERING_FLAG_USE_IBL ;
1696+ if (gptData -> tRuntimeOptions .bNormalMapping )
1697+ iSceneWideRenderingFlags |= PL_RENDERING_FLAG_USE_NORMAL_MAPS ;
16951698
16961699 // reset old entities
16971700 const uint32_t uOldSelectedEntityCount = pl_sb_size (ptScene -> sbtOutlinedEntities );
@@ -1778,7 +1781,8 @@ pl_renderer_outline_entities(plScene* ptScene, uint32_t uCount, plEntity* atEnti
17781781 (int )ptMesh -> ulVertexStreamMask ,
17791782 iTextureMappingFlags ,
17801783 PL_INFO_MATERIAL_METALLICROUGHNESS ,
1781- gptData -> tRuntimeOptions .tShaderDebugMode
1784+ gptData -> tRuntimeOptions .tShaderDebugMode ,
1785+ iObjectRenderingFlags
17821786 };
17831787
17841788 int aiVertexConstantData0 [] = {
@@ -1880,6 +1884,8 @@ pl_renderer_reload_scene_shaders(plScene* ptScene)
18801884 iSceneWideRenderingFlags |= PL_RENDERING_FLAG_USE_PUNCTUAL ;
18811885 if (gptData -> tRuntimeOptions .bImageBasedLighting )
18821886 iSceneWideRenderingFlags |= PL_RENDERING_FLAG_USE_IBL ;
1887+ if (gptData -> tRuntimeOptions .bNormalMapping )
1888+ iSceneWideRenderingFlags |= PL_RENDERING_FLAG_USE_NORMAL_MAPS ;
18831889
18841890 plLightComponent * ptLights = NULL ;
18851891 const uint32_t uLightCount = gptECS -> get_components (ptScene -> ptComponentLibrary , gptData -> tLightComponentType , (void * * )& ptLights , NULL );
@@ -1967,6 +1973,8 @@ pl_renderer_finalize_scene(plScene* ptScene)
19671973 iSceneWideRenderingFlags |= PL_RENDERING_FLAG_USE_PUNCTUAL ;
19681974 if (gptData -> tRuntimeOptions .bImageBasedLighting )
19691975 iSceneWideRenderingFlags |= PL_RENDERING_FLAG_USE_IBL ;
1976+ if (gptData -> tRuntimeOptions .bNormalMapping )
1977+ iSceneWideRenderingFlags |= PL_RENDERING_FLAG_USE_NORMAL_MAPS ;
19701978
19711979 // create lighting shader
19721980 int aiLightingConstantData [] = {iSceneWideRenderingFlags , pl_sb_capacity (ptScene -> sbtLightData ), pl_sb_size (ptScene -> sbtProbeData ), gptData -> tRuntimeOptions .tShaderDebugMode };
0 commit comments