private static void dwaterDrawSurface(uint state, uint drawflag) { AppMain.amMatrixPush(); AppMain.NNS_MATRIX current = AppMain.amMatrixGetCurrent(); AppMain.DMAP_WATER_OBJ dmapWaterObj = AppMain._dmap_water._object[0]; AppMain.AMS_MOTION motion = dmapWaterObj.motion; AppMain.amMotionMaterialSetFrame(motion, AppMain._dmap_water._object[0].frame); AppMain.amMotionMaterialCalc(motion); float x = AppMain.floorf(AppMain._dmap_water.pos_x / (AppMain._dmap_water.repeat_pos_x * AppMain._dmap_water.scale) - 0.5f) * (AppMain._dmap_water.repeat_pos_x * AppMain._dmap_water.scale); float y = AppMain._dmap_water.pos_y + AppMain._dmap_water.pos_dy; for (int index = 0; index < 2; ++index) { AppMain.nnMakeTranslateMatrix(current, x, y, AppMain.FX_FX32_TO_F32(917504)); AppMain.nnScaleMatrix(current, current, AppMain._dmap_water.scale, AppMain._dmap_water.scale * 2f, 1f); AppMain.ObjDraw3DNNMotionMaterialMotion(motion, dmapWaterObj.texlist, drawflag, 0U, (AppMain.MPP_VOID_OBJECT_DELEGATE)null, (object)null, state, (AppMain.MPP_VOID_ARRAYNNSMATRIX_NNSOBJECT_OBJECT)null, (object)null, (AppMain.MPP_BOOL_NNSDRAWCALLBACKVAL_OBJECT_DELEGATE)null, (object)null, (AppMain.AMS_DRAWSTATE)null, 1U); x += AppMain._dmap_water.repeat_pos_x * AppMain._dmap_water.scale; } AppMain.amMatrixPop(); }
// Token: 0x06001198 RID: 4504 RVA: 0x0009A370 File Offset: 0x00098570 private static void dwaterDrawSurface(uint state, uint drawflag) { AppMain.amMatrixPush(); AppMain.NNS_MATRIX nns_MATRIX = AppMain.amMatrixGetCurrent(); AppMain.DMAP_WATER_OBJ dmap_WATER_OBJ = AppMain._dmap_water._object[0]; AppMain.AMS_MOTION motion = dmap_WATER_OBJ.motion; AppMain.amMotionMaterialSetFrame(motion, AppMain._dmap_water._object[0].frame); AppMain.amMotionMaterialCalc(motion); float num = AppMain._dmap_water.pos_x / (AppMain._dmap_water.repeat_pos_x * AppMain._dmap_water.scale); num = AppMain.floorf(num - 0.5f) * (AppMain._dmap_water.repeat_pos_x * AppMain._dmap_water.scale); float y = AppMain._dmap_water.pos_y + AppMain._dmap_water.pos_dy; for (int i = 0; i < 2; i++) { AppMain.nnMakeTranslateMatrix(nns_MATRIX, num, y, AppMain.FX_FX32_TO_F32(917504)); AppMain.nnScaleMatrix(nns_MATRIX, nns_MATRIX, AppMain._dmap_water.scale, AppMain._dmap_water.scale * 2f, 1f); AppMain.ObjDraw3DNNMotionMaterialMotion(motion, dmap_WATER_OBJ.texlist, drawflag, 0U, null, null, state, null, null, null, null, null, 1U); num += AppMain._dmap_water.repeat_pos_x * AppMain._dmap_water.scale; } AppMain.amMatrixPop(); }