// Token: 0x060008D1 RID: 2257 RVA: 0x000500A4 File Offset: 0x0004E2A4 public static void GmGmkNeedleSetLight() { NNS_RGBA nns_RGBA = new NNS_RGBA(1f, 1f, 1f, 1f); NNS_VECTOR nns_VECTOR = GlobalPool <NNS_VECTOR> .Alloc(); if (AppMain.g_gs_main_sys_info.stage_id == 14) { nns_VECTOR.x = -0.1f; nns_VECTOR.y = -0.09f; nns_VECTOR.z = -0.93f; } else { nns_VECTOR.x = -1f; nns_VECTOR.y = -1f; nns_VECTOR.z = -1f; } nns_RGBA.r = 1f; nns_RGBA.g = 1f; nns_RGBA.b = 1f; AppMain.nnNormalizeVector(nns_VECTOR, nns_VECTOR); float intensity; if (AppMain.g_gs_main_sys_info.stage_id == 14) { intensity = 0.8f; } else { intensity = 1f; } AppMain.ObjDrawSetParallelLight(AppMain.NNE_LIGHT_2, ref nns_RGBA, intensity, nns_VECTOR); GlobalPool <NNS_VECTOR> .Release(nns_VECTOR); }
// Token: 0x06000D7D RID: 3453 RVA: 0x00076148 File Offset: 0x00074348 private static void GmSplStageSetLight() { NNS_RGBA nns_RGBA = new NNS_RGBA(1f, 1f, 1f, 1f); NNS_VECTOR nns_VECTOR = GlobalPool <NNS_VECTOR> .Alloc(); nns_VECTOR.x = -0.4f; nns_VECTOR.y = -0.4f; nns_VECTOR.z = -1f; AppMain.nnNormalizeVector(nns_VECTOR, nns_VECTOR); AppMain.ObjDrawSetParallelLight(AppMain.NNE_LIGHT_1, ref nns_RGBA, 1f, nns_VECTOR); }
// Token: 0x06000D88 RID: 3464 RVA: 0x00076598 File Offset: 0x00074798 private static void gmSplStageLightCtrl(AppMain.GMS_SPL_STG_WORK tcb_work) { NNS_RGBA nns_RGBA = new NNS_RGBA(1f, 1f, 1f, 1f); NNS_VECTOR nns_VECTOR = GlobalPool <NNS_VECTOR> .Alloc(); AppMain.UNREFERENCED_PARAMETER(tcb_work); nns_VECTOR = AppMain.gmSplStageLightRot(-1f, -1f, -1f); AppMain.nnNormalizeVector(nns_VECTOR, nns_VECTOR); AppMain.ObjDrawSetParallelLight(AppMain.NNE_LIGHT_0, ref nns_RGBA, 1f, nns_VECTOR); nns_VECTOR = AppMain.gmSplStageLightRot(-0.4f, -0.4f, -1f); AppMain.nnNormalizeVector(nns_VECTOR, nns_VECTOR); AppMain.ObjDrawSetParallelLight(AppMain.NNE_LIGHT_1, ref nns_RGBA, 1f, nns_VECTOR); }
// Token: 0x060009AE RID: 2478 RVA: 0x00056D80 File Offset: 0x00054F80 public void dmLogoSonicStart() { NNS_RGBA nns_RGBA = new NNS_RGBA(1f, 1f, 1f, 1f); NNS_RGB nns_RGB = new NNS_RGB(1f, 1f, 1f); MTS_TASK_TCB mts_TASK_TCB = AppMain.MTM_TASK_MAKE_TCB(this.dmLogoSonicMainFunc, null, 0U, 0, 4096U, 0, () => new AppMain.DMS_LOGO_SONIC_WORK(), "DM_LSONT_MAIN"); AppMain.DMS_LOGO_SONIC_WORK dms_LOGO_SONIC_WORK = (AppMain.DMS_LOGO_SONIC_WORK)mts_TASK_TCB.work; AppMain.nnSetPrimitive3DMaterial(ref nns_RGBA, ref nns_RGB, 1f); AppMain.AoActSysSetDrawStateEnable(false); this.dmLogoSonicActionCreate(dms_LOGO_SONIC_WORK); AppMain.IzFadeInitEasy(0U, 2U, 60f, true); dms_LOGO_SONIC_WORK.func = this.dmLogoSonicFadeInWaitFunc; }
// Token: 0x0600066B RID: 1643 RVA: 0x00038BA8 File Offset: 0x00036DA8 public static OBS_OBJECT_WORK GmGmkTruckInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, () => new AppMain.GMS_GMK_TRUCK_WORK(), "GMK_TRUCK"); AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)obs_OBJECT_WORK; AppMain.GMS_GMK_TRUCK_WORK gms_GMK_TRUCK_WORK = (AppMain.GMS_GMK_TRUCK_WORK)obs_OBJECT_WORK; AppMain.mtTaskChangeTcbDestructor(obs_OBJECT_WORK.tcb, AppMain.gmGmkTruckDest); AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_gmk_truck_obj_3d_list[0], gms_ENEMY_3D_WORK.obj_3d); AppMain.ObjObjectAction3dNNMotionLoad(obs_OBJECT_WORK, 0, true, AppMain.ObjDataGet(930), null, 0, null); AppMain.ObjDrawObjectActionSet(obs_OBJECT_WORK, 0); AppMain.ObjCopyAction3dNNModel(AppMain.gm_gmk_truck_obj_3d_list[1], gms_GMK_TRUCK_WORK.obj_3d_tire); gms_ENEMY_3D_WORK.obj_3d.mtn_cb_func = AppMain.gmGmkTruckMotionCallback; gms_ENEMY_3D_WORK.obj_3d.mtn_cb_param = gms_GMK_TRUCK_WORK; obs_OBJECT_WORK.ppOut = AppMain.gmGmkTruckDispFunc; obs_OBJECT_WORK.flag |= 1U; obs_OBJECT_WORK.move_flag |= 128U; obs_OBJECT_WORK.disp_flag |= 16777220U; obs_OBJECT_WORK.disp_flag |= 16U; obs_OBJECT_WORK.obj_3d.blend_spd = 0.125f; gms_GMK_TRUCK_WORK.trans_r.x = 0f; gms_GMK_TRUCK_WORK.trans_r.y = 0f; gms_GMK_TRUCK_WORK.trans_r.z = 4f / AppMain.FXM_FX32_TO_FLOAT(AppMain.g_obj.draw_scale.x); AppMain.nnMakeUnitMatrix(gms_ENEMY_3D_WORK.obj_3d.user_obj_mtx_r); AppMain.nnTranslateMatrix(gms_ENEMY_3D_WORK.obj_3d.user_obj_mtx_r, gms_ENEMY_3D_WORK.obj_3d.user_obj_mtx_r, gms_GMK_TRUCK_WORK.trans_r.x, gms_GMK_TRUCK_WORK.trans_r.y, gms_GMK_TRUCK_WORK.trans_r.z); AppMain.ObjObjectFieldRectSet(obs_OBJECT_WORK, ( short )AppMain.GMD_GMK_TRUCK_FIELD_RECT_LEFT, ( short )AppMain.GMD_GMK_TRUCK_FIELD_RECT_TOP, ( short )AppMain.GMD_GMK_TRUCK_FIELD_RECT_RIGHT, ( short )AppMain.GMD_GMK_TRUCK_FIELD_RECT_BOTTOM); gms_ENEMY_3D_WORK.ene_com.rect_work[0].flag &= 4294967291U; gms_ENEMY_3D_WORK.ene_com.rect_work[1].flag &= 4294967291U; AppMain.OBS_RECT_WORK obs_RECT_WORK = gms_ENEMY_3D_WORK.ene_com.rect_work[2]; obs_RECT_WORK.ppDef = AppMain.gmGmkTruckBodyDefFunc; obs_RECT_WORK.ppHit = null; AppMain.ObjRectAtkSet(obs_RECT_WORK, 0, 0); AppMain.ObjRectWorkSet(obs_RECT_WORK, -64, -64, 64, 64); NNS_RGBA nns_RGBA = new NNS_RGBA(1f, 1f, 1f, 1f); NNS_VECTOR nns_VECTOR = GlobalPool <NNS_VECTOR> .Alloc(); nns_VECTOR.x = -0.85f; nns_VECTOR.y = -0.45f; nns_VECTOR.z = -3.05f; AppMain.nnNormalizeVector(nns_VECTOR, nns_VECTOR); AppMain.ObjDrawSetParallelLight(AppMain.NNE_LIGHT_1, ref nns_RGBA, 1f, nns_VECTOR); gms_ENEMY_3D_WORK.obj_3d.use_light_flag &= 4294967294U; gms_GMK_TRUCK_WORK.obj_3d_tire.use_light_flag &= 4294967294U; gms_ENEMY_3D_WORK.obj_3d.use_light_flag |= 2U; gms_GMK_TRUCK_WORK.obj_3d_tire.use_light_flag |= 2U; AppMain.gmGmkTruckCreateLightEfct(gms_GMK_TRUCK_WORK); gms_ENEMY_3D_WORK.ene_com.enemy_flag |= 65536U; obs_OBJECT_WORK.obj_3d.command_state = 16U; return(obs_OBJECT_WORK); }
// Token: 0x060007AB RID: 1963 RVA: 0x00043C0C File Offset: 0x00041E0C private void dmLogoSegaObjSysytemInit() { NNS_RGBA nns_RGBA = new NNS_RGBA(1f, 1f, 1f, 1f); NNS_VECTOR nns_VECTOR = GlobalPool <NNS_VECTOR> .Alloc(); NNS_VECTOR pos = new NNS_VECTOR(0f, 0f, 50f); AppMain.ObjInit(4, 61435, 0, AppMain.GMD_OBJ_LCD_X, AppMain.GMD_OBJ_LCD_Y, ( float )AppMain.GSD_DISP_WIDTH, ( float )AppMain.GSD_DISP_HEIGHT); AppMain.ObjDataAlloc(10); AppMain.ObjDrawESEffectSystemInit(0, 20480U, 0U); AppMain.ObjDrawSetNNCommandStateTbl(0U, 0U, true); AppMain.AoActSysClearPeak(); AppMain.g_obj.flag = 4259848U; AppMain.g_obj.ppPre = null; AppMain.g_obj.ppPost = null; AppMain.g_obj.ppCollision = null; AppMain.g_obj.ppObjPre = null; AppMain.g_obj.ppObjPost = null; AppMain.g_obj.ppRegRecAuto = null; AppMain.g_obj.draw_scale.x = (AppMain.g_obj.draw_scale.y = (AppMain.g_obj.draw_scale.z = 29127)); AppMain.g_obj.inv_draw_scale.x = (AppMain.g_obj.inv_draw_scale.y = (AppMain.g_obj.inv_draw_scale.z = AppMain.FX_Div(4096, AppMain.g_obj.draw_scale.x))); AppMain.g_obj.depth = 128; AppMain.g_obj.ambient_color.r = 0.8f; AppMain.g_obj.ambient_color.g = 0.8f; AppMain.g_obj.ambient_color.b = 0.8f; nns_VECTOR.x = -1f; nns_VECTOR.y = -1f; nns_VECTOR.z = -1f; AppMain.nnNormalizeVector(nns_VECTOR, nns_VECTOR); AppMain.ObjDrawSetParallelLight(AppMain.NNE_LIGHT_0, ref nns_RGBA, 1f, nns_VECTOR); GlobalPool <NNS_VECTOR> .Release(nns_VECTOR); ObjCamera.Init(0, pos, 0, 0, 6144); ObjCamera.Init3d(0); AppMain.g_obj.glb_camera_id = 0; AppMain.g_obj.glb_camera_type = 1; OBS_CAMERA obs_CAMERA = ObjCamera.Get(0); obs_CAMERA.user_func = this.dmLogoSegaCamera; obs_CAMERA.command_state = 0U; obs_CAMERA.scale = 0.9f; obs_CAMERA.ofst.z = 1000f; this.amTrailEFInitialize(); }
// Token: 0x060007AA RID: 1962 RVA: 0x00043B1C File Offset: 0x00041D1C private void dmLogoSegaStart() { NNS_RGBA nns_RGBA = new NNS_RGBA(1f, 1f, 1f, 1f); NNS_RGB nns_RGB = new NNS_RGB(1f, 1f, 1f); this.dmLogoSegaObjSysytemInit(); GsSound.Reset(); GsSound.Begin(3, 32767U, 0); MTS_TASK_TCB mts_TASK_TCB = AppMain.MTM_TASK_MAKE_TCB(this.dmLogoSegaMainFunc, null, 0U, 0, 4096U, 0, () => new AppMain.DMS_LOGO_SEGA_WORK(), "DM_LSEGA_MAIN"); AppMain.DMS_LOGO_SEGA_WORK dms_LOGO_SEGA_WORK = (AppMain.DMS_LOGO_SEGA_WORK)mts_TASK_TCB.work; AppMain.nnSetPrimitive3DMaterial(ref nns_RGBA, ref nns_RGB, 1f); AppMain.AoActSysSetDrawStateEnable(false); this.dmLogoSegaActionCreate(dms_LOGO_SEGA_WORK); dms_LOGO_SEGA_WORK.ply_obj = this.dmLogoSegaCreatePlayer(); dms_LOGO_SEGA_WORK.timer = 0; dms_LOGO_SEGA_WORK.func = this.dmLogoSegaStartWaitFunc; dms_LOGO_SEGA_WORK.h_se = GsSound.AllocSeHandle(); }
// Token: 0x060018C0 RID: 6336 RVA: 0x000E1CDC File Offset: 0x000DFEDC private void DmTitleOpInit() { NNS_RGBA nns_RGBA = new NNS_RGBA(1f, 1f, 1f, 1f); NNS_VECTOR nns_VECTOR = GlobalPool <NNS_VECTOR> .Alloc(); nns_VECTOR.Clear(); NNS_VECTOR pos = new NNS_VECTOR(0f, 0f, 50f); AppMain.g_obj.flag = 4259848U; AppMain.g_obj.ppPre = null; AppMain.g_obj.ppPost = null; AppMain.g_obj.ppCollision = null; AppMain.g_obj.ppObjPre = null; AppMain.g_obj.ppObjPost = null; AppMain.g_obj.ppRegRecAuto = null; AppMain.g_obj.draw_scale.x = (AppMain.g_obj.draw_scale.y = (AppMain.g_obj.draw_scale.z = 13107)); AppMain.g_obj.inv_draw_scale.x = (AppMain.g_obj.inv_draw_scale.y = (AppMain.g_obj.inv_draw_scale.z = AppMain.FX_Div(4096, AppMain.g_obj.draw_scale.x))); AppMain.g_obj.depth = 128; AppMain.g_obj.ambient_color.r = 0.8f; AppMain.g_obj.ambient_color.g = 0.8f; AppMain.g_obj.ambient_color.b = 0.8f; nns_VECTOR.x = -1f; nns_VECTOR.y = -1f; nns_VECTOR.z = -1f; AppMain.nnNormalizeVector(nns_VECTOR, nns_VECTOR); AppMain.ObjDrawSetParallelLight(AppMain.NNE_LIGHT_0, ref nns_RGBA, 1f, nns_VECTOR); ObjCamera.Init(0, pos, 0, 0, 12288); ObjCamera.Init3d(0); AppMain.g_obj.glb_camera_id = 0; AppMain.g_obj.glb_camera_type = 0; OBS_CAMERA obs_CAMERA = ObjCamera.Get(0); obs_CAMERA.user_func = this.dmTitleOpCamera; obs_CAMERA.command_state = 0U; obs_CAMERA.fovy = AppMain.NNM_DEGtoA32(40f); obs_CAMERA.znear = 0.1f; obs_CAMERA.zfar = 32768f; this.dmTitleOpMgrInit(); GlobalPool <NNS_VECTOR> .Release(nns_VECTOR); }
// Token: 0x060018AE RID: 6318 RVA: 0x000E130C File Offset: 0x000DF50C private static void GmGmkBreakLandSetLight() { NNS_RGBA nns_RGBA = default(NNS_RGBA); NNS_VECTOR nns_VECTOR = GlobalPool <NNS_VECTOR> .Alloc(); nns_VECTOR.x = -0.5f; nns_VECTOR.y = -0.05f; nns_VECTOR.z = -1f; nns_RGBA.r = 0.65f; nns_RGBA.g = 0.65f; nns_RGBA.b = 0.65f; AppMain.nnNormalizeVector(nns_VECTOR, nns_VECTOR); AppMain.ObjDrawSetParallelLight(AppMain.NNE_LIGHT_1, ref nns_RGBA, 1f, nns_VECTOR); nns_VECTOR.x = 0.4f; nns_VECTOR.y = -0.05f; nns_VECTOR.z = -1f; nns_RGBA.r = 0.65f; nns_RGBA.g = 0.65f; nns_RGBA.b = 0.65f; AppMain.nnNormalizeVector(nns_VECTOR, nns_VECTOR); AppMain.ObjDrawSetParallelLight(AppMain.NNE_LIGHT_2, ref nns_RGBA, 1f, nns_VECTOR); GlobalPool <NNS_VECTOR> .Release(nns_VECTOR); }
// Token: 0x06000036 RID: 54 RVA: 0x000030B0 File Offset: 0x000012B0 private static void _amTrailDrawNormal(AppMain.AMS_TRAIL_EFFECT pEffect) { AppMain.AMS_TRAIL_PARAM work = pEffect.Work; AppMain.AMS_TRAIL_PARTSDATA ams_TRAIL_PARTSDATA = AppMain.pTr.trailData[(int)work.trailId]; AppMain.AMS_TRAIL_PARTS trailTail = ams_TRAIL_PARTSDATA.trailTail; AppMain.AMS_TRAIL_PARTS trailHead = ams_TRAIL_PARTSDATA.trailHead; AppMain.AMS_TRAIL_PARTS pPrev = trailTail.pPrev; if (trailTail.pPrev.pPrev == trailHead) { return; } if (work.time <= 0f) { return; } NNS_RGBA startColor = work.startColor; NNS_RGBA ptclColor = work.ptclColor; NNS_VECTOR nns_VECTOR = GlobalPool <NNS_VECTOR> .Alloc(); NNS_VECTOR nns_VECTOR2 = GlobalPool <NNS_VECTOR> .Alloc(); NNS_VECTOR nns_VECTOR3 = GlobalPool <NNS_VECTOR> .Alloc(); float num = 1f; AppMain.AMS_PARAM_DRAW_PRIMITIVE ams_PARAM_DRAW_PRIMITIVE = GlobalPool <AppMain.AMS_PARAM_DRAW_PRIMITIVE> .Alloc(); int ablend = 1; AppMain.amDrawGetPrimBlendParam((int)work.blendType, ams_PARAM_DRAW_PRIMITIVE); if (work.zTest != 0) { ams_PARAM_DRAW_PRIMITIVE.zTest = 1; } if (work.zMask != 0) { ams_PARAM_DRAW_PRIMITIVE.zMask = 1; } AppMain.amVectorSet(nns_VECTOR3, 0f, 0f, 1f); if (work.time < work.vanish_time) { num = work.time / work.vanish_time; } work.vanish_rate = num; startColor.a = work.startColor.a * num; ptclColor.a = work.ptclColor.a * num; float startSize = work.startSize; float ptclSize = work.ptclSize; if (work.ptclFlag != 0 && work.ptclTexId != -1) { AppMain.NNS_PRIM3D_PCT_ARRAY nns_PRIM3D_PCT_ARRAY = AppMain.amDrawAlloc_NNS_PRIM3D_PCT(6); AppMain.NNS_PRIM3D_PCT[] buffer = nns_PRIM3D_PCT_ARRAY.buffer; int offset = nns_PRIM3D_PCT_ARRAY.offset; float sortZ = AppMain.nnDistanceVector(pPrev.pos, AppMain._am_ef_camPos); AppMain.mppAssertNotImpl(); buffer[offset].Col = AppMain.AMD_FCOLTORGBA8888(ptclColor.r, ptclColor.g, ptclColor.b, ptclColor.a); buffer[offset + 1].Col = (buffer[offset + 2].Col = (buffer[offset + 5].Col = buffer[offset].Col)); buffer[offset].Tex.u = 0f; buffer[offset].Tex.v = 0f; buffer[offset + 1].Tex.u = 1f; buffer[offset + 1].Tex.v = 0f; buffer[offset + 2].Tex.u = 0f; buffer[offset + 2].Tex.v = 1f; buffer[offset + 5].Tex.u = 1f; buffer[offset + 5].Tex.v = 1f; buffer[offset + 3] = buffer[offset + 1]; buffer[offset + 4] = buffer[offset + 2]; ams_PARAM_DRAW_PRIMITIVE.format3D = 4; ams_PARAM_DRAW_PRIMITIVE.type = 0; ams_PARAM_DRAW_PRIMITIVE.vtxPCT3D = nns_PRIM3D_PCT_ARRAY; ams_PARAM_DRAW_PRIMITIVE.texlist = work.texlist; ams_PARAM_DRAW_PRIMITIVE.texId = (int)work.ptclTexId; ams_PARAM_DRAW_PRIMITIVE.count = 6; ams_PARAM_DRAW_PRIMITIVE.ablend = ablend; ams_PARAM_DRAW_PRIMITIVE.sortZ = sortZ; AppMain.amDrawPrimitive3D(pEffect.drawState, ams_PARAM_DRAW_PRIMITIVE); } if (work.trailPartsNum < 3) { return; } if (work.texlist == null || work.texId == -1) { AppMain.NNS_PRIM3D_PC[] array = AppMain.amDrawAlloc_NNS_PRIM3D_PC((int)(6 * (work.trailPartsNum - 1))); AppMain.NNS_PRIM3D_PC[] vtxPC3D = array; int num2 = 0; float sortZ = AppMain.nnDistanceVector(pPrev.pos, AppMain._am_ef_camPos); AppMain.nnCrossProductVector(nns_VECTOR, nns_VECTOR3, pPrev.dir); AppMain.nnNormalizeVector(nns_VECTOR, nns_VECTOR); AppMain.nnScaleVector(nns_VECTOR2, nns_VECTOR, startSize); AppMain.nnAddVector(ref array[0].Pos, pPrev.pos, nns_VECTOR2); AppMain.nnAddVector(ref array[1].Pos, pPrev.pPrev.pos, nns_VECTOR2); AppMain.nnSubtractVector(ref array[2].Pos, pPrev.pos, nns_VECTOR2); AppMain.nnSubtractVector(ref array[5].Pos, pPrev.pPrev.pos, nns_VECTOR2); array[5].Col = AppMain.AMD_FCOLTORGBA8888(startColor.r, startColor.g, startColor.b, startColor.a); array[0].Col = (array[1].Col = (array[2].Col = array[5].Col)); array[3] = array[1]; array[4] = array[2]; num2 += 6; pPrev = pPrev.pPrev; work.list_no = 1; while (pPrev != trailHead.pNext) { AppMain.mppAssertNotImpl(); pPrev.m_Flag &= 4294967293U; AppMain.AMS_TRAIL_PARAM ams_TRAIL_PARAM = work; ams_TRAIL_PARAM.list_no += 1; AppMain._amTrailDrawPartsNormal(pPrev, work, array, num2); pPrev = pPrev.pPrev; num2 += 6; } ams_PARAM_DRAW_PRIMITIVE.format3D = 2; ams_PARAM_DRAW_PRIMITIVE.type = 0; ams_PARAM_DRAW_PRIMITIVE.vtxPC3D = vtxPC3D; ams_PARAM_DRAW_PRIMITIVE.texlist = work.texlist; ams_PARAM_DRAW_PRIMITIVE.texId = work.texId; ams_PARAM_DRAW_PRIMITIVE.count = (int)(6 * (work.trailPartsNum - 1)); ams_PARAM_DRAW_PRIMITIVE.ablend = ablend; ams_PARAM_DRAW_PRIMITIVE.sortZ = sortZ; AppMain.amDrawPrimitive3D(pEffect.drawState, ams_PARAM_DRAW_PRIMITIVE); } else { AppMain.NNS_PRIM3D_PCT_ARRAY nns_PRIM3D_PCT_ARRAY2 = AppMain.amDrawAlloc_NNS_PRIM3D_PCT((int)(6 * (work.trailPartsNum - 1))); AppMain.NNS_PRIM3D_PCT[] buffer2 = nns_PRIM3D_PCT_ARRAY2.buffer; int offset2 = nns_PRIM3D_PCT_ARRAY2.offset; int num3 = offset2; float num4 = (float)(work.trailPartsNum - 1) / (float)work.trailPartsNum; num4 *= work.vanish_rate; float sortZ = AppMain.nnDistanceVector(pPrev.pos, AppMain._am_ef_camPos); AppMain.nnCrossProductVector(nns_VECTOR, nns_VECTOR3, pPrev.dir); AppMain.nnNormalizeVector(nns_VECTOR, nns_VECTOR); AppMain.nnScaleVector(nns_VECTOR2, nns_VECTOR, startSize); AppMain.nnAddVector(ref buffer2[offset2].Pos, pPrev.pos, nns_VECTOR2); AppMain.nnAddVector(ref buffer2[offset2 + 1].Pos, pPrev.pPrev.pos, nns_VECTOR2); AppMain.nnSubtractVector(ref buffer2[offset2 + 2].Pos, pPrev.pos, nns_VECTOR2); AppMain.nnSubtractVector(ref buffer2[offset2 + 5].Pos, pPrev.pPrev.pos, nns_VECTOR2); buffer2[offset2 + 5].Col = AppMain.AMD_FCOLTORGBA8888(startColor.r, startColor.g, startColor.b, startColor.a); buffer2[offset2].Col = (buffer2[offset2 + 1].Col = (buffer2[offset2 + 2].Col = buffer2[offset2 + 5].Col)); buffer2[offset2].Tex.u = 1f; buffer2[offset2].Tex.v = 0f; buffer2[offset2 + 1].Tex.u = num4; buffer2[offset2 + 1].Tex.v = 0f; buffer2[offset2 + 2].Tex.u = 1f; buffer2[offset2 + 2].Tex.v = 1f; buffer2[offset2 + 5].Tex.u = num4; buffer2[offset2 + 5].Tex.v = 1f; buffer2[offset2 + 3] = buffer2[offset2 + 1]; buffer2[offset2 + 4] = buffer2[offset2 + 2]; num3 += 6; pPrev = pPrev.pPrev; work.list_no = 1; while (pPrev != trailHead.pNext) { pPrev.m_Flag &= 4294967293U; AppMain.AMS_TRAIL_PARAM ams_TRAIL_PARAM2 = work; ams_TRAIL_PARAM2.list_no += 1; AppMain._amTrailDrawPartsNormalTex(pPrev, work, buffer2, num3); pPrev = pPrev.pPrev; num3 += 6; } ams_PARAM_DRAW_PRIMITIVE.format3D = 4; ams_PARAM_DRAW_PRIMITIVE.type = 0; ams_PARAM_DRAW_PRIMITIVE.vtxPCT3D = nns_PRIM3D_PCT_ARRAY2; ams_PARAM_DRAW_PRIMITIVE.texlist = work.texlist; ams_PARAM_DRAW_PRIMITIVE.texId = work.texId; ams_PARAM_DRAW_PRIMITIVE.count = (int)(6 * (work.trailPartsNum - 1)); ams_PARAM_DRAW_PRIMITIVE.ablend = ablend; ams_PARAM_DRAW_PRIMITIVE.sortZ = sortZ; AppMain.amDrawPrimitive3D(pEffect.drawState, ams_PARAM_DRAW_PRIMITIVE); } GlobalPool <NNS_VECTOR> .Release(nns_VECTOR); GlobalPool <NNS_VECTOR> .Release(nns_VECTOR2); GlobalPool <NNS_VECTOR> .Release(nns_VECTOR3); }
// Token: 0x060007AE RID: 1966 RVA: 0x00043EFC File Offset: 0x000420FC private void dmLogoSegaMainFunc(MTS_TASK_TCB tcb) { AppMain.DMS_LOGO_SEGA_WORK dms_LOGO_SEGA_WORK = (AppMain.DMS_LOGO_SEGA_WORK)tcb.work; if (AppMain.GsSystemBgmIsPlay()) { dms_LOGO_SEGA_WORK.h_se.snd_ctrl_param.volume = 0f; } else { dms_LOGO_SEGA_WORK.h_se.snd_ctrl_param.volume = 1f; } if (AppMain.AoSysIsShowPlatformUI()) { if (AppMain.IzFadeIsExe()) { AppMain.IzFadeSetStopUpdate1Frame(null); } } else { if (dms_LOGO_SEGA_WORK.func != null) { dms_LOGO_SEGA_WORK.func(dms_LOGO_SEGA_WORK); } if ((dms_LOGO_SEGA_WORK.flag & 1U) != 0U) { this.dmLogoSegaPreEnd(dms_LOGO_SEGA_WORK); AppMain.mtTaskChangeTcbProcedure(tcb, this.gmLogoSegaPreEndWaitFunc); dms_LOGO_SEGA_WORK.timer = 0; return; } } float frame = 0f; if (!AppMain.AoSysIsShowPlatformUI() && (dms_LOGO_SEGA_WORK.flag & 2U) != 0U) { frame = 1f; } AppMain.AoActSysSetDrawTaskPrio(); for (int i = 0; i < 8; i++) { AppMain.AoActSetTexture(AppMain.AoTexGetTexList(AppMain.dm_logo_sega_aos_tex[( int )AppMain.dm_logo_sega_tex_id_tbl[i]])); AppMain.AoActUpdate(dms_LOGO_SEGA_WORK.act[i], frame); AppMain.AoActDraw(dms_LOGO_SEGA_WORK.act[i]); } NNS_RGBA nns_RGBA = new NNS_RGBA(1f, 1f, 1f, 1f); NNS_RGB nns_RGB = new NNS_RGB(1f, 1f, 1f); if (!AppMain.AoSysIsShowPlatformUI()) { AppMain.amTrailEFUpdate(1); } if (AppMain.g_obj.glb_camera_id != -1) { SNNS_VECTOR snns_VECTOR = default(SNNS_VECTOR); SNNS_VECTOR snns_VECTOR2 = default(SNNS_VECTOR); SNNS_MATRIX snns_MATRIX = default(SNNS_MATRIX); AppMain.nnMakeUnitMatrix(ref snns_MATRIX); AppMain.ObjDraw3DNNSetCameraEx(AppMain.g_obj.glb_camera_id, AppMain.g_obj.glb_camera_type, 0U); ObjCamera.DispPosGet(AppMain.g_obj.glb_camera_id, out snns_VECTOR); AppMain.amVectorSet(ref snns_VECTOR2, -snns_MATRIX.M03, -snns_MATRIX.M13, -snns_MATRIX.M23); AppMain.nnAddVector(ref snns_VECTOR, ref snns_VECTOR2, ref snns_VECTOR); AppMain.amEffectSetCameraPos(ref snns_VECTOR); } AppMain.nnSetPrimitive3DMaterial(ref nns_RGBA, ref nns_RGB, 1f); AppMain.NNS_TEXLIST texlist = AppMain.dm_logo_sega_aos_tex[0].texlist; AppMain.amTrailEFDraw(1, texlist, 0U); }
// Token: 0x06002835 RID: 10293 RVA: 0x00152975 File Offset: 0x00150B75 public GMS_PLY_EFCT_TRAIL_COLOR(NNS_RGBA s_col, NNS_RGBA e_col) { this.start_col = s_col; this.end_col = e_col; }
// Token: 0x06001161 RID: 4449 RVA: 0x00098858 File Offset: 0x00096A58 private static void IzFadeSetWork(AppMain.IZS_FADE_WORK fade_work, ushort dt_prio, uint draw_state, uint fade_set_type, byte start_col_r, byte start_col_g, byte start_col_b, byte start_col_a, byte end_col_r, byte end_col_g, byte end_col_b, byte end_col_a, float time, bool draw_start, bool conti_state) { NNS_RGBA start_col = default(NNS_RGBA); ushort vtx_no = 1; if (!conti_state) { fade_work.Clear(); start_col.r = ( float )start_col_r; start_col.g = ( float )start_col_g; start_col.b = ( float )start_col_b; start_col.a = ( float )start_col_a; } else if (fade_set_type == 1U) { start_col = fade_work.now_col; vtx_no = fade_work.vtx_no; } else { start_col.r = ( float )start_col_r; start_col.g = ( float )start_col_g; start_col.b = ( float )start_col_b; start_col.a = ( float )start_col_a; } fade_work.count = 0f; fade_work.start_col = start_col; fade_work.end_col.r = ( float )end_col_r; fade_work.end_col.g = ( float )end_col_g; fade_work.end_col.b = ( float )end_col_b; fade_work.end_col.a = ( float )end_col_a; fade_work.now_col = fade_work.start_col; fade_work.time = time; fade_work.speed = 1f; fade_work.dt_prio = dt_prio; fade_work.draw_state = draw_state; fade_work.vtx_no = vtx_no; AppMain.nnMakeUnitMatrix(fade_work.mtx); fade_work.flag &= 4294967294U; if (draw_start) { fade_work.flag |= 1U; } AppMain.AMS_PARAM_DRAW_PRIMITIVE prim_param = fade_work.prim_param; prim_param.vtxPC2D = fade_work.vtx[( int )fade_work.vtx_no]; prim_param.mtx = fade_work.mtx; prim_param.format2D = 1; prim_param.type = 1; prim_param.count = 4; prim_param.texlist = null; prim_param.texId = -1; prim_param.ablend = 1; prim_param.zOffset = -1f; AppMain.amDrawGetPrimBlendParam(0, prim_param); prim_param.aTest = 0; prim_param.zMask = 1; prim_param.zTest = 0; for (int i = 0; i < 2; i++) { fade_work.vtx[i][0].Pos.x = 0f; fade_work.vtx[i][0].Pos.y = 0f; fade_work.vtx[i][1].Pos.x = 0f; fade_work.vtx[i][1].Pos.y = AppMain.AMD_SCREEN_HEIGHT; fade_work.vtx[i][2].Pos.x = AppMain.AMD_SCREEN_WIDTH; fade_work.vtx[i][2].Pos.y = 0f; fade_work.vtx[i][3].Pos.x = AppMain.AMD_SCREEN_WIDTH; fade_work.vtx[i][3].Pos.y = AppMain.AMD_SCREEN_HEIGHT; } }