|
@@ -29,8 +29,31 @@ void GFXSCENE_Apply(CLightingLUTSceneSettings const* plightingLUTSceneSettings0)
|
|
|
//------------------------------------------------------------------------------------------------
|
|
|
//0018c19c ^_^ resetgame到 加载Hero场景没问题
|
|
|
void GFXSCENE_CheckLUTs(ELightingLUTMat emat0) {
|
|
|
+ //LOGI("GFXSCENE_CheckLUTs entry %d", emat0);
|
|
|
//LOGE("GFXSCENE_CheckLUTs");
|
|
|
//0018C19C
|
|
|
+ if (gs_plightingLUTState_46121C[emat0].pTexture_0) {
|
|
|
+ if (gs_plightingLUTState_46121C[emat0].Matches(emat0))
|
|
|
+ return;
|
|
|
+
|
|
|
+ //loc_18C1BC
|
|
|
+ if (gs_plightingLUTState_46121C[emat0].pTexture_0) {
|
|
|
+ // LOGE("GFXSCENE_CheckLUTs");
|
|
|
+ delete gs_plightingLUTState_46121C[emat0].pTexture_0;
|
|
|
+ }
|
|
|
+ gs_plightingLUTState_46121C[emat0].pTexture_0 = 0;
|
|
|
+ //loc_18C1C6
|
|
|
+ if (gs_plightingLUTState_46121C[emat0].pTexture_4)
|
|
|
+ delete gs_plightingLUTState_46121C[emat0].pTexture_4;
|
|
|
+ gs_plightingLUTState_46121C[emat0].pTexture_4 = 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ //LOGI("GFXSCENE_CheckLUTs loc_18C1DE");
|
|
|
+
|
|
|
+ //loc_18C1DE
|
|
|
+ memcpy(&gs_plightingLUTState_46121C[emat0].tSetting_8, pLUTSceneSettings_33F448, sizeof(CLightingLUTSceneSettings));
|
|
|
+ gs_plightingLUTState_46121C[emat0].Generate(emat0);
|
|
|
+ //LOGI("GFXSCENE_CheckLUTs end");
|
|
|
}
|
|
|
//------------------------------------------------------------------------------------------------
|
|
|
//0018c8d8 ^_^ resetgame 到没问题
|