Method and apparatus for switching sky light in game, and electronic device

By providing a graphical user interface in the game, dynamically updating and rendering sky lighting parameters, the problem that the existing technology cannot switch sky lighting effects in game levels is solved, and the player experience and game freedom is improved.

WO2024239465A9PCT designated stage expired Publication Date: 2025-04-03NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/114272
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-25
Filing Date
2023-08-22
Publication Date
2025-04-03

AI Technical Summary

Technical Problem

The existing technology cannot switch the sky lighting effect in the game level, resulting in poor player experience.

Method used

By providing a graphical user interface on the terminal device, responding to sky lighting switching events, determining the target sky lighting parameters and lighting switching parameters, dynamically update the sky lighting parameters of the game scene, and rendering and displaying effects in the graphical user interface in real time.

Benefits of technology

It realizes controllable switching of sky lighting effects in game levels, improving players' gaming experience and game freedom.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023114272_03042025_PF_FP_ABST
    Figure CN2023114272_03042025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present disclosure are a method and apparatus for switching sky light in a game, and an electronic device. The method comprises: in response to a sky light switching event, determining a target sky light parameter and a light switching parameter, which correspond to the sky light switching event (S102); and on the basis of the light switching parameter, updating a sky light parameter corresponding to a game scene from the current sky light parameter to the target sky light parameter, and dynamically displaying in a graphical user interface a dynamically changing sky light effect of the game scene that is obtained by means of rendering in the process of updating the sky light parameter, wherein the process of updating the sky light parameter is a process of updating the sky light parameter corresponding to the game scene from the current sky light parameter to the target sky light parameter (S104). In the method, by means of triggering the sky light switching event, a player can switch in a game level a sky light effect corresponding to the game scene, so that the switching of the sky light effect is controllable, thereby helping to enhance the gaming experience and the gaming degree-of-freedom of the player. (FIG. 1)
Need to check novelty before this filing date? Find Prior Art

Description

Sky lighting switching method, device and electronic device in game

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese patent application number 202310615007.3, filed on May 25, 2023, entitled “Method, device and electronic device for switching sky lighting in games”, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present disclosure relates to the technical field of game interaction design, and in particular to a method, device, and electronic device for switching sky lighting in a game. Background Art

[0004] When users display their original content on internet platforms or share it with other users, lighting switching is often necessary to indicate time changes or enhance emotions. In related technologies, players can only switch lighting by enclosing the game scene with components and then adjusting the lighting effects using self-luminous or non-luminous components. However, this method only allows lighting switching in the game level edit mode, not within the game level itself, resulting in a poor gaming experience for players.

[0005] It should be noted that the information disclosed in the above background technology section is only provided to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute prior art known to ordinary technicians in this field.

[0006] Summary of the Invention

[0007] The purpose of the present disclosure is to provide a method, device and electronic device for switching sky lighting in a game, so as to realize sky lighting switching in a game scene during game operation and enhance the player's gaming experience.

[0008] In a first aspect, the present disclosure provides a method for switching sky lighting in a game, providing a graphical user interface through a terminal device; the graphical user interface displays a scene screen of a part of the game scene and the sky lighting effect corresponding to the game scene; wherein the sky lighting effect is a lighting effect generated according to the sky lighting parameters; the method includes: responding to a sky lighting switching event, determining the target sky lighting parameters and lighting switching parameters corresponding to the sky lighting switching event; based on the lighting switching parameters, updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters, and dynamically displaying in the graphical user interface the sky lighting effect of the dynamically changing game scene rendered in the process of updating the sky lighting parameters; wherein, the process of updating the sky lighting parameters is the process of updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters.

[0009] In a second aspect, the present disclosure provides a sky lighting switching device in a game, which provides a graphical user interface through a terminal device; the graphical user interface displays a scene screen of a part of the game scene and the sky lighting effect corresponding to the game scene; wherein the sky lighting effect is a lighting effect generated according to the sky lighting parameters; the device includes: a parameter determination module, which is configured to respond to a sky lighting switching event, determine the target sky lighting parameters and lighting switching parameters corresponding to the sky lighting switching event; a parameter updating module, which is configured to update the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters based on the lighting switching parameters, and dynamically display in the graphical user interface the sky lighting effect of the dynamically changing game scene rendered in the process of updating the sky lighting parameters; wherein, the process of updating the sky lighting parameters is the process of updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters.

[0010] In a third aspect, the present disclosure provides an electronic device comprising a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the sky lighting switching method in the above-mentioned game.

[0011] In a fourth aspect, the present disclosure provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the sky lighting switching method in the above-mentioned game.

[0012] The embodiments of the present disclosure bring the following beneficial effects:

[0013] The present disclosure provides a method, device, and electronic device for switching sky lighting in a game. The method first responds to a sky lighting switching event and determines the target sky lighting parameters and lighting switching parameters corresponding to the sky lighting switching event. Then, based on the lighting switching parameters, the sky lighting parameters corresponding to the game scene are updated from the current sky lighting parameters to the target sky lighting parameters. The sky lighting effects of the game scene that are dynamically changed during the sky lighting parameter updating process are dynamically displayed in a graphical user interface. The sky lighting parameter updating process is the process of updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters. In this method, players can trigger a sky lighting switching event to switch the sky lighting effects corresponding to the game scene in the game level, making the switching of the sky lighting effects controllable and helping to enhance the player's gaming experience and gaming freedom.

[0014] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by practicing the above-mentioned technology of the present disclosure.

[0015] In order to make the above-mentioned objects, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically listed below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0017] FIG1 is a flowchart of a method for switching sky lighting in a game provided by one embodiment of the present disclosure;

[0018] FIG2 is a flowchart of another method for switching sky lighting in a game provided by one embodiment of the present disclosure;

[0019] FIG3 is a flowchart of another method for switching sky lighting in a game provided by one embodiment of the present disclosure;

[0020] FIG4 is a schematic diagram of a parameter setting panel provided in one embodiment of the present disclosure;

[0021] FIG5 is a schematic structural diagram of a sky lighting switching device in a game provided by one embodiment of the present disclosure;

[0022] FIG6 is a schematic structural diagram of an electronic device provided by one embodiment of the present disclosure. DETAILED DESCRIPTION

[0023] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present disclosure. Obviously, the described embodiments are only some of the embodiments of the present disclosure, but not all of them. Generally, the components of the embodiments of the present disclosure described and shown in the drawings herein can be arranged and designed in various different configurations.

[0024] Therefore, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the present disclosure as claimed, but merely represents selected embodiments of the present disclosure. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present disclosure without creative effort shall fall within the scope of protection of the present disclosure.

[0025] When users display their original content on an internet platform or provide it to other users, lighting switching is often necessary to indicate time changes or enhance emotions. In related technologies, players can only switch lighting by enclosing the game scene with components and then adjusting the lighting effects using self-luminous or non-luminous components. This method uses point light sources and cannot uniformly control the shadow effects of all virtual objects in the game scene. Furthermore, this method can only achieve lighting switching in the game level edit mode, not within the game level itself, resulting in a poor gaming experience for players.

[0026] Based on the above problems, the embodiments of the present disclosure provide a method, device and electronic device for switching sky lighting in games. This technology can be applied to game scenarios where users display their original content through Internet platforms, especially in lighting switching scenarios in games.

[0027] In one embodiment of the present disclosure, a method for switching sky lighting in a game can be executed on a local terminal device or a server. When the method is executed on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.

[0028] In an optional embodiment, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a gaming method based on cloud computing. In the cloud game operation mode, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the sky lighting switching method in the game are completed on the cloud game server. The role of the client device is set to receive and send data and present the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, TV, computer, PDA, etc.; but the cloud game server in the cloud is responsible for information processing. When playing the game, the player operates the client device to send operation instructions to the cloud game server. The cloud game server runs the game according to the operation instructions, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.

[0029] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is configured to present game screens. The local terminal device is configured to interact with the player via a graphical user interface (GUI), i.e., the game program is downloaded and installed and run conventionally via an electronic device. The local terminal device can provide the GUI to the player in a variety of ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen being configured to present a GUI including the game screen, and the processor being configured to run the game, generate the GUI, and control the display of the GUI on the display screen.

[0030] In one possible implementation, the present disclosure provides a method for switching sky lighting in a game, providing a graphical user interface (GUI) via a terminal device, wherein the terminal device may be the aforementioned local terminal device or a client device in the aforementioned cloud interaction system. The GUI displays a scene image of a portion of a game scene and a corresponding sky lighting effect; the sky lighting effect is generated based on sky lighting parameters. As shown in FIG1 , the method includes the following specific steps:

[0031] Step S102 : responding to a sky lighting switching event, determining target sky lighting parameters and lighting switching parameters corresponding to the sky lighting switching event.

[0032] In specific implementation, the above-mentioned sky lighting switching event can be determined according to player settings or R&D needs. Specifically, the player can set the sky lighting switching event, as well as the target sky lighting parameters and lighting switching parameters corresponding to the sky lighting switching event in the game editor. Among them, the sky lighting switching event is used to indicate the trigger event for starting to update the sky lighting parameters corresponding to the game scene. The sky lighting switching event can be a click operation on the switching control displayed in the graphical user interface, or it can be a controlled virtual object controlled by the terminal device entering the target area, etc., which is not specifically limited here. The above-mentioned lighting switching parameters may include lighting switching duration and other switching parameters, wherein the lighting switching duration is used to indicate the time required for the sky lighting parameters corresponding to the game scene to be updated from the current sky lighting parameters to the target sky lighting parameters. The lighting switching duration can be 0 seconds, 3 seconds, 5 seconds, etc.

[0033] In an optional embodiment, the game scene includes a preset light source, the sky lighting parameters are attribute information corresponding to the preset light source, and the sky lighting effect is the lighting effect created by rendering the game scene according to the sky lighting parameters of the preset light source. The preset light source may include parallel light or a point light source. If the preset light source is a point light source, the point light source may be set at a preset position in the game scene, which may be determined based on R&D requirements or player settings.

[0034] In an optional embodiment, the skylight parameter includes at least one of the following sub-lighting parameters: light intensity, light color, light yaw angle, and light pitch angle. The light yaw angle indicates the horizontal angle of a parallel light or point light source; the light pitch angle indicates the vertical angle of a parallel light or point light source. Both the light yaw angle and the light pitch angle have a value range of -180 degrees to 180 degrees.

[0035] In the specific implementation, when the player triggers the sky lighting switch event, the current sky lighting parameters of the game scene, as well as the target sky lighting parameters and lighting switch parameters corresponding to the sky lighting switch event are first obtained; among them, the current sky lighting parameters are also the sky lighting parameters corresponding to the game scene when the sky lighting switch event occurs.

[0036] Step S104, based on the lighting switching parameters, updates the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters, and dynamically displays the sky lighting effect of the dynamically changing game scene rendered in the process of updating the sky lighting parameters in the graphical user interface; wherein, the process of updating the sky lighting parameters is the process of updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters.

[0037] When a sky lighting switch event occurs, the sky lighting parameters corresponding to the game scene can be updated from the current sky lighting parameters to the target sky lighting parameters according to the lighting switch parameters. During the process of updating the sky lighting parameters, the updated sky lighting parameters corresponding to the game scene are calculated in real time for each update, and the sky lighting effect of the game scene rendered based on the updated sky lighting parameters is displayed in the graphical user interface. Therefore, the updated sky lighting effect can be dynamically displayed in the graphical user interface, allowing players to intuitively see the changes in the sky lighting effect of the game scene.

[0038] The disclosed embodiments provide a method for switching sky lighting in a game. In this method, players can trigger a sky lighting switching event to switch the sky lighting effects corresponding to the game scene in the game level, making the switching of the sky lighting effects controllable, which helps to improve the player's gaming experience and gaming freedom.

[0039] The following embodiment describes a method for implementing the sky lighting effect of a dynamically changing game scene rendered in the process of updating the sky lighting parameters, where the lighting switching parameter is the lighting switching duration and the sky lighting parameters corresponding to the game scene are updated from the current sky lighting parameters to the target sky lighting parameters based on the lighting switching parameters.

[0040] Specifically, according to the lighting switching duration, the change parameters of the sky lighting parameters corresponding to the unit time are determined in the process of updating the current sky lighting parameters corresponding to the game scene to the target sky lighting parameters; according to the change parameters of the sky lighting parameters corresponding to the unit time, the current sky lighting parameters and the target sky lighting parameters, the sky lighting parameters corresponding to the game scene are dynamically updated in chronological order; the sky lighting effect of the dynamically changing game scene rendered based on the dynamically updated sky lighting parameters is dynamically displayed in the graphical user interface. Specifically, in the process of rendering the game scene, for example, rendering the virtual objects (such as buildings, characters, etc.) in the game scene, the model is rendered according to the sky lighting parameters using a preset lighting model. In the process of rendering the model, the lighting will affect the visual performance of the model. Therefore, in the present disclosure, by dynamically adjusting the sky lighting information, different visual performance effects will be dynamically generated when rendering the virtual model in the game scene.

[0041] Generally, the longer the lighting switching duration is, the smaller the change parameter of the sky lighting parameter corresponding to the unit time is. In practical applications, the lighting switching duration is multiplied by the specified frame number to obtain the target number of unit time for updating the sky lighting parameter in the process of updating the current sky lighting parameter corresponding to the game scene to the target sky lighting parameter; wherein the specified frame number is used to indicate the number of times the sky lighting parameter is updated per second; the result of dividing one by the target number is determined as the change parameter of the sky lighting parameter corresponding to the unit time. wherein, the specified frame number can be determined according to R&D requirements or player settings, and the specified frame number is usually a fixed value. For example, the specified frame number can be 10 frames, which means that the sky lighting parameter needs to be updated 10 times per second; the specified frame number can be 15 frames, which means that the sky lighting parameter needs to be updated 15 times per second. Specifically, the process of updating the current sky lighting parameter corresponding to the game scene to the target sky lighting parameter can be regarded as the process of the sky lighting parameter changing from 0 to 1, so that the change parameter of the sky lighting parameter corresponding to the unit time can be determined as the result of one divided by the target number.

[0042] Based on the above description, after determining the change parameter of the sky lighting parameter corresponding to the unit time, you can continue to determine the subtraction result of the target sky lighting parameter and the current sky lighting parameter; multiply the change parameter of the sky lighting parameter corresponding to the unit time by the subtraction result to obtain the parameter change corresponding to the unit time; in chronological order, update the sky lighting parameter corresponding to the current unit time to the sum of the sky lighting parameter corresponding to the previous unit time of the current unit time and the parameter change; among them, in the process of updating the sky lighting parameter, the sky lighting parameter corresponding to the first unit time when the sky lighting parameter starts to be updated is the current sky lighting parameter, and the sky lighting parameter corresponding to the last unit time is the target sky lighting parameter.

[0043] In practical applications, the subtraction result obtained by subtracting the target sky lighting parameter from the current sky lighting parameter is multiplied by the change parameter of the sky lighting parameter corresponding to the unit time to obtain the parameter change between two adjacent unit times. It can also be understood that the value obtained by subtracting the sky lighting parameter corresponding to the current unit time from the sky lighting parameter corresponding to the previous unit time is the parameter change. Then, in the process of updating the sky lighting parameter, in chronological order, the sky lighting parameter corresponding to the first unit time at which the sky lighting parameter starts to be updated is determined as the current sky lighting parameter, the sky lighting parameter corresponding to the second unit time is determined as the sum of the current sky lighting parameter and the parameter change, the sky lighting parameter corresponding to the third unit time is determined as the sum of the sky lighting parameter corresponding to the second unit time and the parameter change, and so on, until the sky lighting parameter corresponding to the last unit time is the target sky lighting parameter.

[0044] In a specific implementation, the sky lighting parameter includes at least one sub-lighting parameter; this sub-lighting parameter can be any of the following: light intensity, light color, light yaw angle, and light pitch angle. Therefore, it is necessary to determine a process for dynamically updating each sub-lighting parameter in the sky lighting parameter in a chronological order. This process performs the following steps 10-11 for each sub-lighting parameter in the sky lighting parameter:

[0045] Step 10: Determine the subtraction result between the sub-illumination parameters in the target sky illumination parameters and the sub-illumination parameters in the current sky illumination parameters.

[0046] Step 11: multiply the change parameter of the sky illumination parameter corresponding to the unit time by the subtraction result to obtain the parameter change amount of the sub-illumination parameter corresponding to the unit time.

[0047] Step 12, in chronological order, updates the sub-lighting parameter corresponding to the current unit time to the sum of the sub-lighting parameter corresponding to the previous unit time of the current unit time and the parameter change of the sub-lighting parameter; wherein, in the process of updating the sub-lighting parameter, the sub-lighting parameter corresponding to the first unit time when the sub-lighting parameter starts to be updated is the sub-lighting parameter in the current sky lighting parameter, and the sub-lighting parameter corresponding to the last unit time is the sub-lighting parameter in the target sky lighting parameter.

[0048] In the process of updating the sub-lighting parameters, in chronological order, the sub-lighting parameter corresponding to the first unit time when the sub-lighting parameter starts to be updated is determined as the sub-lighting parameter in the current sky lighting parameter, the sub-lighting parameter corresponding to the second unit time is determined as the sum of the sub-lighting parameter in the current sky lighting parameter and the parameter change amount, the sub-lighting parameter corresponding to the third unit time is determined as the sum of the sub-lighting parameter corresponding to the second unit time and the parameter change amount, and so on, until the sub-lighting parameter corresponding to the last unit time is the sub-lighting parameter in the target sky lighting parameter.

[0049] Specifically, if the current lighting pitch angle is 0 degrees and the target lighting pitch angle is 90 degrees, the lighting switching duration is calculated to require 30 unit times. The lighting pitch angle corresponding to the game scene can be updated from 0 degrees to 90 degrees. In chronological order, the lighting pitch angle corresponding to each unit time is [3, 6, 9, 12, …, 90].

[0050] In the above method, the sky lighting parameters corresponding to the game scene can be updated from the current sky lighting parameters to the target sky lighting parameters according to the lighting switching duration, and the dynamic changes of the sky lighting effects during the sky lighting parameter update process can be displayed in the graphical user interface, thereby immersing players in the game and improving the player's gaming experience.

[0051] The present disclosure also provides another method for switching sky lighting in a game. This method is implemented based on the above embodiment and focuses on describing the specific process of pausing and switching sky lighting parameters. As shown in FIG2 , the method includes the following specific steps:

[0052] Step S202, responding to the game start instruction, controlling the graphical user interface to display the game scene corresponding to the game match.

[0053] The game start instruction can be determined based on the game rules. For example, the game start instruction can be triggered by the player triggering a start game control in the graphical user interface, or the game start instruction can be triggered by the player triggering any area in the graphical user interface. When the graphical user interface displays the game scene corresponding to the game match, the controlled virtual object controlled by the terminal device is in the game level or game match.

[0054] Step S204 , responding to a sky lighting switching event, determining target sky lighting parameters and lighting switching parameters corresponding to the sky lighting switching event.

[0055] Step S206, based on the lighting switching parameters, the sky lighting parameters corresponding to the game scene are updated from the current sky lighting parameters to the target sky lighting parameters, and the sky lighting effect of the dynamically changing game scene rendered in the process of updating the sky lighting parameters and the shadow effect of the virtual objects in the game scene rendered based on the lighting yaw angle and lighting pitch angle in the dynamically updated sky lighting parameters are dynamically displayed in the graphical user interface.

[0056] In a specific implementation, a game scene may include multiple virtual objects, including virtual characters, virtual buildings, or virtual components within the game scene. Since skylights illuminate virtual objects, occlusion may occur. Therefore, shadow effects on virtual objects can be rendered based on the vertical yaw angle and horizontal pitch angle of the skylight's light. Typically, when the yaw angle and pitch angle are both 90 degrees, virtual objects will not be shadowed.

[0057] In one embodiment, the process of updating the sky lighting parameters lasts for a preset time period, which matches the lighting switching time period. The specific time period corresponding to the preset time period can be determined according to the player's settings.

[0058] Step S208, in the process of updating the sky lighting parameters, respond to the sky lighting update pause event, suspend the process of updating the sky lighting parameters, and continuously display the sky lighting effect of the game scene rendered according to the corresponding sky lighting parameters when responding to the sky lighting update pause event in the graphical user interface.

[0059] In specific implementations, the above-mentioned skylight update pause event can be determined based on player settings or R&D requirements. Specifically, players can set a skylight update pause event in the game editor, which is used to indicate the trigger event for pausing the update of the skylight parameters corresponding to the game scene.

[0060] In an optional embodiment, the graphical user interface further displays a switch control and a pause control; the sky lighting switch event includes triggering the switch control; and the sky lighting pause update event includes triggering the pause control.

[0061] In another optional embodiment, before responding to the sky lighting switching event in step S202, the system may further respond to a control instruction for the controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to perform a first gaming behavior that satisfies a first preset condition, thereby triggering the sky lighting switching event. The first gaming behavior of the first preset condition may be determined based on the player's settings. Optionally, the first gaming behavior of the first preset condition may be controlling the controlled virtual object to move to a target area in the game scene. The target area is a specific area within the game scene, and the specific area within the game scene may be determined based on the player's settings. Based on this, before responding to the sky lighting pause and update event in step S208, the system may further respond to a control instruction for the controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to perform a second gaming behavior that satisfies a second preset condition, thereby triggering the sky lighting pause and update event. The second gaming behavior of the second preset condition may be determined based on the player's settings. Optionally, the second gaming behavior of the second preset condition may be controlling the controlled virtual object to separate from the target area in the game scene. In this manner, players can control the switching and pausing of sky lighting by controlling the movement of the controlled virtual object, enriching gameplay.

[0062] During the process of updating the sky lighting parameters, if the sky lighting parameters corresponding to the game scene have not switched to the target sky lighting parameters, the player triggers the sky lighting update pause event, which will immediately stop updating the sky lighting parameters corresponding to the game scene, and continue to display the sky lighting effect of the game scene rendered according to the corresponding sky lighting parameters when responding to the sky lighting update pause event in the graphical user interface.

[0063] If the sky lighting parameters corresponding to the game scene have been switched to the target sky lighting parameters, the switching will stop when switching to the target sky lighting parameters. At this time, if the player triggers the sky lighting pause update event, the sky lighting parameters corresponding to the game scene will not change, and the sky lighting effect of the game scene rendered based on the target sky lighting parameters will still be displayed in the graphical user interface, as well as the shadow effects of the virtual objects in the rendered game scene.

[0064] In actual applications, if during the process of updating the sky lighting parameters, the current sky lighting parameter is A, the target sky lighting parameter is B, and the current sky lighting parameter is C, then when a message is received that the sky lighting parameter needs to be switched to D, it will switch directly from C to D.

[0065] The above-mentioned skylight switching method in the game can change the skylight effect by receiving events during the game. At the same time, the skylight switching in this method can be overridden. When the skylight parameters are being updated, the new skylight parameters will be directly changed from the current updated skylight parameters after the replacement takes effect, thereby improving the player's gaming experience.

[0066] The present disclosure also provides another method for switching sky lighting in a game. This method is implemented based on the above embodiment. The method focuses on describing the process of setting a sky lighting switching event, a sky lighting pause update event, target sky lighting parameters, and lighting switching parameters. As shown in FIG3 , the method includes the following specific steps:

[0067] Step S302: Displaying a game editing scene and an editing window in a graphical user interface; wherein the editing window includes a plurality of editable components.

[0068] In a specific implementation, when a game editing command is triggered, a game editing scene and editing window may be displayed in the graphical user interface. The game editing command may be determined according to the game rules. For example, the editing command may be an operation to enter the game editor or an operation to select a scene map for editing. The above-mentioned game editing scene is a game scene in which editable components can be edited in the game editor.

[0069] The editing window can include multiple editable components. The specific component types and configurations of these editable components can be set according to R&D requirements. In actual applications, the editing window can include multiple different types of editable components, such as terrain components, mechanism components, decoration components, and combination components. Furthermore, each type of editable component also contains multiple editable components. Editable components of the same type have different display parameters in the game scene. This means that some editable components are visible in the game editing scene and in the game scene, while some are visible in the game editing scene but not in the game scene. For example, the large base plate component and sector frustum component in the terrain component, and the cylindrical component and gear component in the mechanism component are all editable components that are visible in the game editing scene and in the game scene. However, the spawn point component and respawn alternative point component corresponding to the logic component in the mechanism component are all editable components that are visible in the game editing scene but not in the game scene.

[0070] Step S304, in response to the selection operation on the target editable component, control the generation of a virtual object corresponding to the target editable component in the game editing scene; wherein the virtual object is configured to be displayed with preset display parameters, and the target editable component is a component among multiple editable components.

[0071] The preset display parameters include whether the display is visible or invisible in the game scene. In specific implementation, the specific operation of the above selection operation can be determined according to R&D requirements. For example, the selection operation can be dragging the target editable component into the game editing scene, or clicking or long pressing the target editing component in the editing window.

[0072] Step S306 , in response to the editing operation on the target editable component, determining the sky lighting switching event, target sky lighting parameters, and lighting switching parameters corresponding to the target editable component.

[0073] In a specific embodiment, a setting control is also displayed in the graphical user interface; the above step S306 can be implemented by the following steps 20-22:

[0074] Step 30, in response to the trigger operation for the setting control, the parameter setting panel corresponding to the target editable component is displayed in the editing window; wherein, the parameter setting panel includes multiple editable controls; the editable controls are used to set the sky lighting switching event, target sky lighting parameters and lighting switching parameters corresponding to the target editable component.

[0075] In specific implementation, the above-mentioned triggering operation for the setting control can be a click operation or a long press operation on the setting control. Triggering the setting control can display the parameter setting panel corresponding to the target editing component. The parameter setting panel is used to set the sky lighting switching event, target sky lighting parameters and lighting switching parameters corresponding to the target editable component.

[0076] Step 21 : In response to the event setting operation on the parameter setting panel, determine the sky lighting switching event corresponding to the target editable component.

[0077] In a specific implementation, the parameter setting panel includes a first editable control for setting a skylight toggle event and a second editable control for setting a skylight pause event. Therefore, in response to a first input operation on the first editable control, the skylight toggle event corresponding to the target editable component can be determined based on the first input operation. In response to a second input operation on the second editable control, the skylight pause event corresponding to the target editable component can be determined based on the second input operation.

[0078] The above-mentioned first input operation and second input operation can be determined according to the player's operation. In an optional embodiment, the above-mentioned first input operation includes: setting a target component associated with the target editable component, and setting the sky lighting switching event to: the controlled virtual object controlled by the terminal device moves to the scene area determined by the target component; the second input operation sets the sky lighting pause update event to: the controlled virtual object moves out of the scene area determined by the target component.

[0079] In another optional embodiment, the above-mentioned first input operation includes: setting a switch control in the graphical user interface, and setting the sky lighting switch event to trigger the switch control; the second input operation includes: setting a pause control in the graphical user interface, and setting the sky lighting pause update event to trigger the pause control.

[0080] Step 22 : In response to the parameter setting operation on the parameter setting panel, determine the target sky lighting parameters and lighting switching parameters corresponding to the target editable component.

[0081] In a specific implementation, the lighting switching parameters include the lighting switching duration; in response to an input operation on an editable control corresponding to the lighting switching duration in the parameter setting panel, the input value corresponding to the input operation can be determined as the lighting switching duration corresponding to the target editable component; in response to a setting operation on an editable control corresponding to the sky lighting parameter in the parameter setting panel, the target sky lighting parameter corresponding to the target editable component is determined based on the setting content of the setting operation. Specifically, the input value corresponding to the input operation can be determined based on the player's operation, and the setting content of the setting operation can also be determined based on the player's operation.

[0082] In actual applications, the lighting switching parameters, sky lighting switching events, sky lighting pause update events and target sky lighting parameters corresponding to the target editable component can be set according to the parameter setting panel. Table 1 shows the parameters that can be set in the parameter setting panel.

[0083] Table 1

[0084] The lighting intensity, lighting color, lighting yaw angle and lighting pitch angle in Table 1 are all settable lighting parameters. Based on the description in Table 1, the above parameter setting panel includes: an editable control for setting lighting switching parameters, an editable control for setting lighting intensity, an editable control for setting lighting yaw angle, an editable control for setting lighting pitch angle, an editable control for setting lighting color, an editable control for setting sky lighting switching events (equivalent to the above-mentioned first editable control) and an editable control for setting sky lighting pause update events (equivalent to the above-mentioned second editable control). As shown in Figure 4, a schematic diagram of a parameter setting panel provided by an embodiment of the present disclosure is shown. The component named sky lighting switcher in Figure 4 is also the target editable component. In Figure 4, by clicking the editable control corresponding to the lighting transformation duration, a numeric keypad with numbers can pop up. Players can set the lighting switching parameters by clicking the numbers in the numeric keypad. In Figure 4, the lighting switching parameters are set to 5 seconds. The light intensity in Figure 4 is set through a slider. The leftmost end of the slider corresponds to a light intensity of 0, and the rightmost end corresponds to a light intensity of 8. The step size of the slider can be determined according to R&D requirements. For example, the step size can be set to 0.2 or 0.5, etc. The light intensity in Figure 4 is set to 7.8.

[0085] The lighting yaw and pitch angles in Figure 4 are both set via the keypad. Clicking the editable control for the lighting yaw angle will bring up a keypad displaying numbers. Players can click on the numbers on the keypad to set the lighting yaw angle. Similarly, clicking the editable control for the lighting pitch angle will bring up a keypad displaying numbers. Players can click on the numbers on the keypad to set the lighting pitch angle. In Figure 4, the lighting yaw angle is set to 44.66 degrees, and the lighting pitch angle is set to 71.47 degrees. The lighting color in Figure 4 is set via the color palette. Clicking the editable control for the lighting color will bring up the color palette. Players can select a color from the palette to determine the lighting color, and the lighting color will be displayed on the editable control for the lighting color.

[0086] In Figure 4, the "event that starts lighting transitions" is the sky lighting toggle event, and its corresponding editable control is the first editable control. Clicking the first editable control will pop up a full keyboard. The "event that ends lighting transitions" is the sky lighting pause event, and its corresponding editable control is the second editable control. Clicking the second editable control will pop up a full keyboard, where players can enter corresponding events as sky lighting toggle events and sky lighting pause events.

[0087] In some embodiments, a lighting switch preview control is also displayed in the editing window; in response to a trigger operation on the lighting switch preview control, the lighting switch parameters corresponding to the target editable component are displayed in the graphical user interface, and in the process of updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters, the sky lighting effect of the dynamically changing game scene is rendered.

[0088] The triggering operation for the lighting switch preview control can be a click operation or a long press operation, which is not specifically limited here. The lighting switch preview control can provide a switch preview function for the sky lighting parameters corresponding to the target editable component. That is, when the lighting switch preview control is triggered, an animation of the sky lighting effect of the game scene rendered in the graphical user interface can be played during the process of switching the current sky lighting parameters to the target sky lighting parameters set for the target editable component according to the lighting switch parameters and sky lighting parameters.

[0089] In some embodiments, the editing window further displays a game trial control, and in response to a trigger operation for the game trial control, a game scene corresponding to the game editing scene is generated according to the editable components in the game editing scene, the game scene including a controlled virtual object corresponding to the terminal device and a virtual object generated according to the editable components and displayed with preset display parameters; wherein the preset display parameters include visible and invisible; in response to a movement instruction for the controlled virtual object, the controlled virtual object is controlled to move to a scene area corresponding to the target component, and it is determined that a sky lighting switching event is satisfied; in response to the sky lighting switching event, the target sky lighting parameters and the lighting switching parameters corresponding to the sky lighting switching event are determined; based on the lighting switching parameters, the sky lighting parameters corresponding to the game scene are changed from the current sky lighting parameters to the target sky lighting parameters. The lighting parameters are updated to the target sky lighting parameters, and the sky lighting of the dynamically changing game scene rendered in the process of updating the sky lighting parameters is dynamically displayed in the graphical user interface, wherein the process of updating the sky lighting parameters is the process of updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters; in the process of updating the sky lighting parameters, the movement instructions for the controlled virtual object are responded to, the controlled virtual object is controlled to separate from the scene area corresponding to the target component, and it is determined that the sky lighting pause update event is satisfied; in response to the sky lighting pause update event, the process of updating the sky lighting parameters is suspended, and the sky lighting of the game scene rendered according to the corresponding sky lighting parameters when responding to the sky lighting pause update event is continuously displayed in the graphical user interface.

[0090] In an optional embodiment, the graphical user interface further displays a target interactive control, and in response to a triggering operation on the target interactive control, controls the generation of game scene information corresponding to the game editing scene; wherein the game scene information includes component information of an edited component in the game editing scene, and the edited component is an editing component that responds to the editing operation among multiple editable components in the editing window; controls the transmission of the game scene information to a server; wherein the server is configured to be communicatively connected to a first terminal device, the first terminal device is configured with a game program, and the second terminal device is configured to obtain the game scene information from the server and generate a corresponding game scene according to the game scene information through the game program. The first terminal device can be a terminal device that touches the target interactive control, or can be another terminal device that is communicatively connected to the server.

[0091] After the target interactive control is triggered through the terminal device, the game scene information corresponding to the game editing scene can be generated, and the game scene information can be saved in a preset location, which can be a map file. The map file can not only save the game scene information, but also save other map information (including but not limited to screenshots, map names, logs and other information). After the map file saves the game scene information, it will be uploaded to the server. After the server reviews it, the game scene generated by the game scene information can be published in the preset map pool, so that the terminal device connected to the server can download the corresponding game scene information from the server, and generate the corresponding game scene according to the game scene information through the game program, and then experience the game in the game scene. This method can publish the game scene information in the game editor and be experienced by other players, thereby realizing a fast UGC function.

[0092] The sky lighting switching method in the above game can set the lighting switching parameters, sky lighting switching events, and sky lighting pause update events corresponding to the target editable components according to player needs, thereby increasing the freedom of lighting switching, meeting the diverse needs of players, and helping to enhance the player's gaming experience.

[0093] In response to the above method embodiment, the present disclosure also provides a sky lighting switching device in a game, which provides a graphical user interface through a terminal device; the graphical user interface displays a scene image of a portion of a game scene and a sky lighting effect corresponding to the game scene; wherein the sky lighting effect is a lighting effect generated according to sky lighting parameters; as shown in FIG5 , the device includes:

[0094] The parameter determination module 50 is configured to respond to a sky lighting switching event and determine a target sky lighting parameter and a lighting switching parameter corresponding to the sky lighting switching event.

[0095] The parameter updating module 51 is configured to update the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters based on the lighting switching parameters, and dynamically display the sky lighting effect of the dynamically changing game scene rendered in the process of updating the sky lighting parameters in the graphical user interface; wherein, the process of updating the sky lighting parameters is the process of updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters.

[0096] The sky lighting switching device in the above-mentioned game, in this way, players can trigger the sky lighting switching event to switch the sky lighting effects corresponding to the game scene in the game level, making the switching of the sky lighting effects controllable, which helps to improve the player's gaming experience and gaming freedom.

[0097] Specifically, the process of updating the sky lighting parameters lasts for a preset time period.

[0098] In an optional embodiment, the above-mentioned device also includes a game start module, which is configured to: respond to a game start instruction and control the graphical user interface to display the game scene corresponding to the game before determining the target sky lighting parameters and lighting switching parameters corresponding to the sky lighting switching event.

[0099] Furthermore, the above-mentioned game scene includes a preset light source, the sky lighting parameter is the attribute information corresponding to the preset light source, and the sky lighting effect is the lighting effect formed by rendering the game scene according to the sky lighting parameter of the preset light source.

[0100] In an optional embodiment, the preset light source includes parallel light.

[0101] In a specific implementation, the sky lighting parameter includes at least one of the following sub-lighting parameters: lighting intensity, lighting color, lighting yaw angle and lighting pitch angle; among which, the lighting yaw angle is used to indicate the angle of parallel light in the horizontal direction; the lighting pitch angle is used to indicate the angle of parallel light in the vertical direction.

[0102] In an optional embodiment, the above-mentioned game scene includes multiple virtual objects; the above-mentioned device also includes a shadow rendering module, which is configured to: in the process of updating the sky lighting parameters, dynamically display the lighting yaw angle and lighting pitch angle in the dynamically updated sky lighting parameters in the graphical user interface, and render the shadow effect of the virtual object.

[0103] Furthermore, the above-mentioned device also includes a pause switching module, which is configured to: respond to a sky lighting pause update event during the process of updating sky lighting parameters, pause the process of updating sky lighting parameters, and continuously display in the graphical user interface the sky lighting effect of the game scene rendered according to the corresponding sky lighting parameters when responding to the sky lighting pause update event.

[0104] In an optional embodiment, before responding to the sky lighting switching event, the system may further respond to a control instruction for a controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to perform a first gaming behavior that satisfies a first preset condition, thereby triggering the sky lighting switching event. Similarly, before responding to the sky lighting pause update event, the system may further respond to a control instruction for a controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to perform a second gaming behavior that satisfies a second preset condition, thereby triggering the sky lighting pause update event.

[0105] In an optional embodiment, the first game behavior of the first preset condition is to control the controlled virtual object to move to the target area in the game scene; the second game behavior of the second preset condition is to control the controlled virtual object to separate from the target area in the game scene.

[0106] In an optional embodiment, the graphical user interface further displays a switch control and a pause control; the sky lighting switch event includes triggering the switch control; and the sky lighting pause update event includes triggering the pause control.

[0107] Furthermore, the above-mentioned lighting switching parameters include the lighting switching duration; the above-mentioned parameter updating module 51 is configured to: determine the change parameters of the sky lighting parameters corresponding to unit time in the process of updating the current sky lighting parameters corresponding to the game scene to the target sky lighting parameters according to the lighting switching duration; dynamically update the sky lighting parameters corresponding to the game scene in chronological order according to the change parameters of the sky lighting parameters corresponding to the unit time, the current sky lighting parameters and the target sky lighting parameters; and dynamically display in the graphical user interface the sky lighting effect of the dynamically changing game scene rendered based on the dynamically updated sky lighting parameters.

[0108] Furthermore, the above-mentioned parameter updating module 51 is also configured to: multiply the lighting switching duration by the specified number of frames to obtain the target number of unit time for updating the sky lighting parameters in the process of updating the current sky lighting parameters corresponding to the game scene to the target sky lighting parameters; wherein the specified number of frames is used to indicate the number of times the sky lighting parameters are updated per second; and the result of dividing one by the target number is determined as the change parameter of the sky lighting parameters corresponding to the unit time.

[0109] In a specific implementation, the above-mentioned parameter updating module 51 is further configured to: determine the subtraction result between the target sky lighting parameter and the current sky lighting parameter; multiply the change parameter of the sky lighting parameter corresponding to the unit time by the subtraction result to obtain the parameter change corresponding to the unit time; and update the sky lighting parameter corresponding to the current unit time to the sum of the sky lighting parameter corresponding to the previous unit time of the current unit time and the parameter change in chronological order; wherein, in the process of updating the sky lighting parameter, the sky lighting parameter corresponding to the first unit time when the sky lighting parameter starts to be updated is the current sky lighting parameter, and the sky lighting parameter corresponding to the last unit time is the target sky lighting parameter.

[0110] In a specific implementation, the above-mentioned sky lighting parameter includes at least one sub-lighting parameter; the above-mentioned parameter updating module 51 is set to: for each sub-lighting parameter in the sky lighting parameter, perform the following operations: determine the subtraction result between the sub-lighting parameter in the target sky lighting parameter and the sub-lighting parameter in the current sky lighting parameter; multiply the change parameter of the sky lighting parameter corresponding to the unit time by the subtraction result to obtain the parameter change amount of the sub-lighting parameter corresponding to the unit time; update the sub-lighting parameter corresponding to the current unit time to the sum of the sub-lighting parameter corresponding to the previous unit time of the current unit time and the parameter change amount of the sub-lighting parameter in chronological order; wherein, in the process of updating the sub-lighting parameter, the sub-lighting parameter corresponding to the first unit time when the sub-lighting parameter starts to be updated is the sub-lighting parameter in the current sky lighting parameter, and the sub-lighting parameter corresponding to the last unit time is the sub-lighting parameter in the target sky lighting parameter.

[0111] Furthermore, the above-mentioned device also includes a setting module, including: a window display unit, configured to display a game editing scene and an editing window in a graphical user interface; wherein the editing window includes multiple editable components; a component selection unit, configured to respond to a selection operation on a target editable component, and control the generation of a virtual object corresponding to the target editable component in the game editing scene; wherein the virtual object is configured to be displayed with preset display parameters, and the target editable component is a component among the multiple editable components; a component editing unit, configured to respond to an editing operation on a target editable component, and determine the sky lighting switching event, target sky lighting parameters and lighting switching parameters corresponding to the target editable component.

[0112] In a specific implementation, a setting control is also displayed in the above-mentioned graphical user interface; the above-mentioned component editing unit is configured to: respond to a trigger operation on the setting control, and display a parameter setting panel corresponding to the target editable component in the editing window; wherein the parameter setting panel includes multiple editable controls; the editable controls are used to set the sky lighting switching event, target sky lighting parameters and lighting switching parameters corresponding to the target editable component; respond to an event setting operation on the parameter setting panel, and determine the sky lighting switching event corresponding to the target editable component; respond to a parameter setting operation on the parameter setting panel, and determine the target sky lighting parameters and lighting switching parameters corresponding to the target editable component.

[0113] Furthermore, the above-mentioned parameter setting panel includes: a first editable control for setting a sky lighting switching event; the above-mentioned component editing unit is configured to: respond to a first input operation on the first editable control, and determine the sky lighting switching event corresponding to the target editable component according to the first input operation.

[0114] Furthermore, the above-mentioned parameter setting panel includes: a second editable control for setting the sky lighting pause update event; the above-mentioned component editing unit is configured to: respond to a second input operation for the second editable control, and determine the sky lighting pause update event corresponding to the target editable component according to the second input operation.

[0115] In a specific implementation, the above-mentioned lighting switching parameters include the lighting switching duration; the above-mentioned component editing unit is also configured to: respond to the input operation of the editable control corresponding to the lighting switching duration in the parameter setting panel, and determine the input value corresponding to the input operation as the lighting switching duration corresponding to the target editable component; respond to the setting operation of the editable control corresponding to the sky lighting parameter in the parameter setting panel, and determine the target sky lighting parameter corresponding to the target editable component according to the setting content of the setting operation.

[0116] In an optional embodiment, the parameter setting panel further includes a lighting switch preview control; the device further includes a preview module configured to: respond to a trigger operation on the lighting switch preview control, display lighting switch parameters corresponding to the target editable component in a graphical user interface, and render the dynamically changing sky lighting effect of the game scene in the process of updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters.

[0117] The sky lighting switching device in the game provided by the embodiment of the present disclosure has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference can be made to the corresponding content in the aforementioned method embodiment.

[0118] An embodiment of the present disclosure also provides an electronic device, as shown in FIG6 , which includes a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the sky lighting switching method in the above-mentioned game.

[0119] Specifically, a graphical user interface is provided through a terminal device; the graphical user interface displays a scene screen of a part of the game scene and a sky lighting effect corresponding to the game scene; wherein the sky lighting effect is a lighting effect generated according to the sky lighting parameters; the sky lighting switching method in the game includes: responding to a sky lighting switching event, determining the target sky lighting parameters and lighting switching parameters corresponding to the sky lighting switching event; based on the lighting switching parameters, updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters, and dynamically displaying in the graphical user interface the sky lighting effect of the dynamically changing game scene rendered in the process of updating the sky lighting parameters; wherein, the process of updating the sky lighting parameters is the process of updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters.

[0120] In the sky lighting switching method in the above-mentioned game, players can trigger the sky lighting switching event to switch the sky lighting effect corresponding to the game scene in the game level, making the switching of the sky lighting effect controllable, which helps to improve the player's gaming experience and gaming freedom.

[0121] In an optional embodiment, the process of updating the sky lighting parameters continues for a preset time period.

[0122] In an optional embodiment, before the above-mentioned step of responding to a sky lighting switching event and determining the target sky lighting parameters and lighting switching parameters corresponding to the sky lighting switching event, the above-mentioned method also includes: responding to a game start instruction and controlling the graphical user interface to display a game scene corresponding to the game match.

[0123] In an optional embodiment, the above-mentioned game scene includes a preset light source, the sky lighting parameter is the attribute information corresponding to the preset light source, and the sky lighting effect is the lighting effect formed by rendering the game scene according to the sky lighting parameters of the preset light source.

[0124] In an optional embodiment, the preset light source includes parallel light.

[0125] In an optional embodiment, the above-mentioned sky lighting parameters include at least one of the following sub-lighting parameters: lighting intensity, lighting color, lighting yaw angle and lighting pitch angle; wherein the lighting yaw angle is used to indicate the angle of parallel light in the horizontal direction; the lighting pitch angle is used to indicate the angle of parallel light in the vertical direction.

[0126] In an optional embodiment, the above-mentioned game scene includes multiple virtual objects; the above-mentioned method also includes: in the process of updating the sky lighting parameters, dynamically displaying the lighting yaw angle and lighting pitch angle in the dynamically updated sky lighting parameters in the graphical user interface, and rendering the shadow effect of the virtual object.

[0127] In an optional embodiment, the above method also includes: in the process of updating the sky lighting parameters, responding to the sky lighting pause update event, pausing the process of updating the sky lighting parameters, and continuously displaying the sky lighting effect of the game scene rendered according to the corresponding sky lighting parameters when responding to the sky lighting pause update event in the graphical user interface.

[0128] In an optional embodiment, before the above-mentioned step of responding to the sky lighting switching event, the method further includes: responding to a control instruction for the controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to perform a first game behavior that meets a first preset condition; controlling the triggering of the sky lighting switching event; before the above-mentioned step of responding to the sky lighting pause update event, the method further includes: responding to a control instruction for the controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to perform a second game behavior that meets a second preset condition; controlling the triggering of the sky lighting pause update event.

[0129] In an optional embodiment, the first game behavior of the first preset condition is to control the controlled virtual object to move to the target area in the game scene; the second game behavior of the second preset condition is to control the controlled virtual object to separate from the target area in the game scene.

[0130] In an optional embodiment, the graphical user interface further displays a switch control and a pause control; the sky lighting switch event includes triggering the switch control; and the sky lighting pause update event includes triggering the pause control.

[0131] In an optional embodiment, the above-mentioned lighting switching parameters include lighting switching duration; the above-mentioned step of updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters based on the lighting switching parameters, and dynamically displaying in the graphical user interface the sky lighting effect of the dynamically changing game scene rendered in the process of updating the sky lighting parameters, includes: determining, according to the lighting switching duration, the change parameters of the sky lighting parameters corresponding to the game scene per unit time in the process of updating the current sky lighting parameters corresponding to the game scene to the target sky lighting parameters; dynamically updating the sky lighting parameters corresponding to the game scene in chronological order according to the change parameters of the sky lighting parameters corresponding to the unit time, the current sky lighting parameters and the target sky lighting parameters; and dynamically displaying in the graphical user interface the sky lighting effect of the dynamically changing game scene rendered based on the dynamically updated sky lighting parameters.

[0132] In an optional embodiment, the above-mentioned step of determining the change parameter of the sky lighting parameter corresponding to unit time in the process of updating the current sky lighting parameter corresponding to the game scene to the target sky lighting parameter based on the lighting switching duration includes: multiplying the lighting switching duration by the specified number of frames to obtain the target number of unit time for updating the sky lighting parameter in the process of updating the current sky lighting parameter corresponding to the game scene to the target sky lighting parameter; wherein the specified number of frames is used to indicate the number of times the sky lighting parameter is updated per second; and determining the result of dividing one by the target number as the change parameter of the sky lighting parameter corresponding to unit time.

[0133] In an optional embodiment, the above-mentioned step of dynamically updating the sky lighting parameters corresponding to the game scene in chronological order based on the change parameters of the sky lighting parameters corresponding to the unit time, the current sky lighting parameters and the target sky lighting parameters includes: determining the subtraction result of the target sky lighting parameters and the current sky lighting parameters; multiplying the change parameters of the sky lighting parameters corresponding to the unit time by the subtraction result to obtain the parameter change corresponding to the unit time; updating the sky lighting parameters corresponding to the current unit time to the sum of the sky lighting parameters corresponding to the previous unit time of the current unit time and the parameter change in chronological order; wherein, in the process of updating the sky lighting parameters, the sky lighting parameters corresponding to the first unit time when the sky lighting parameters start to be updated are the current sky lighting parameters, and the sky lighting parameters corresponding to the last unit time are the target sky lighting parameters.

[0134] In an optional embodiment, the above-mentioned sky lighting parameters include at least one sub-lighting parameter; the above-mentioned step of dynamically updating the sky lighting parameters corresponding to the game scene in chronological order according to the change parameters of the sky lighting parameters corresponding to the unit time, the current sky lighting parameters and the target sky lighting parameters includes: for each sub-lighting parameter in the sky lighting parameters, performing the following operations: determining the subtraction result of the sub-lighting parameter in the target sky lighting parameters and the sub-lighting parameter in the current sky lighting parameters; multiplying the change parameter of the sky lighting parameter corresponding to the unit time by the subtraction result to obtain the parameter change of the sub-lighting parameter corresponding to the unit time; updating the sub-lighting parameter corresponding to the current unit time to the sum of the sub-lighting parameter corresponding to the previous unit time of the current unit time and the parameter change of the sub-lighting parameter in chronological order; wherein, in the process of updating the sub-lighting parameters, the sub-lighting parameter corresponding to the first unit time when the sub-lighting parameters start to be updated is the sub-lighting parameter in the current sky lighting parameters, and the sub-lighting parameter corresponding to the last unit time is the sub-lighting parameter in the target sky lighting parameters.

[0135] In an optional embodiment, the target sky lighting parameters and lighting switching parameters corresponding to the above-mentioned sky lighting switching event are determined in the following manner: displaying a game editing scene and an editing window in a graphical user interface; wherein the editing window includes a plurality of editable components; in response to a selection operation on the target editable component, controlling the generation of a virtual object corresponding to the target editable component in the game editing scene; wherein the virtual object is configured to be displayed with preset display parameters, and the target editable component is a component among the plurality of editable components; in response to an editing operation on the target editable component, determining the sky lighting switching event, target sky lighting parameters and lighting switching parameters corresponding to the target editable component.

[0136] In an optional embodiment, a setting control is also displayed in the above-mentioned graphical user interface; in response to an editing operation on a target editable component, the step of determining the sky lighting switching event, target sky lighting parameters and lighting switching parameters corresponding to the target editable component includes: in response to a triggering operation on the setting control, displaying a parameter setting panel corresponding to the target editable component in the editing window; wherein the parameter setting panel includes a plurality of editable controls; the editable controls are used to set the sky lighting switching event, target sky lighting parameters and lighting switching parameters corresponding to the target editable component; in response to an event setting operation on the parameter setting panel, determining the sky lighting switching event corresponding to the target editable component; in response to a parameter setting operation on the parameter setting panel, determining the target sky lighting parameters and lighting switching parameters corresponding to the target editable component.

[0137] In an optional embodiment, the above-mentioned parameter setting panel includes: a first editable control for setting a sky lighting switching event; a step of determining a sky lighting switching event corresponding to a target editable component in response to an event setting operation on the parameter setting panel, comprising: responding to a first input operation on the first editable control, and determining a sky lighting switching event corresponding to the target editable component according to the first input operation.

[0138] In an optional embodiment, the above-mentioned parameter setting panel includes: a second editable control for setting a sky lighting pause update event; the above-mentioned method also includes: responding to a second input operation for the second editable control, and determining the sky lighting pause update event corresponding to the target editable component according to the second input operation.

[0139] In an optional embodiment, the above-mentioned lighting switching parameters include lighting switching duration; the above-mentioned step of responding to the parameter setting operation on the parameter setting panel and determining the target sky lighting parameters and lighting switching parameters corresponding to the target editable component includes: responding to the input operation of the editable control corresponding to the lighting switching duration in the parameter setting panel, and determining the input value corresponding to the input operation as the lighting switching duration corresponding to the target editable component; responding to the setting operation of the editable control corresponding to the sky lighting parameter in the parameter setting panel, and determining the target sky lighting parameter corresponding to the target editable component according to the setting content of the setting operation.

[0140] In an optional embodiment, the parameter setting panel further includes a lighting switch preview control; the method further includes: responding to a trigger operation on the lighting switch preview control, displaying lighting switch parameters corresponding to the target editable component in a graphical user interface, and rendering the dynamically changing sky lighting effect of the game scene in the process of updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters.

[0141] Furthermore, the electronic device shown in FIG6 further includes a bus 102 and a communication interface 103 , and the processor 101 , the communication interface 103 and the memory 100 are connected via the bus 102 .

[0142] Memory 100 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Communication between the system network element and at least one other network element is achieved through at least one communication interface 103 (which may be wired or wireless), and may utilize the Internet, a wide area network, a local area network, a metropolitan area network, etc. Bus 102 may be an ISA bus, a PCI bus, or an EISA bus. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, FIG6 shows only one bidirectional arrow, but this does not imply that there is only one bus or only one type of bus.

[0143] The processor 101 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 101 or by instructions in the form of software. The above-mentioned processor 101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as a random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or register. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100 and, in conjunction with its hardware, completes the steps of the method of the aforementioned embodiment.

[0144] The embodiments of the present disclosure also provide a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by the processor, the computer-executable instructions prompt the processor to implement the sky lighting switching method in the above-mentioned game. The specific implementation can be found in the method embodiment, which will not be repeated here.

[0145] Specifically, a graphical user interface is provided through a terminal device; the graphical user interface displays a scene screen of a part of the game scene and a sky lighting effect corresponding to the game scene; wherein the sky lighting effect is a lighting effect generated according to the sky lighting parameters; the sky lighting switching method in the game includes: responding to a sky lighting switching event, determining the target sky lighting parameters and lighting switching parameters corresponding to the sky lighting switching event; based on the lighting switching parameters, updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters, and dynamically displaying in the graphical user interface the sky lighting effect of the dynamically changing game scene rendered in the process of updating the sky lighting parameters; wherein, the process of updating the sky lighting parameters is the process of updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters.

[0146] In the sky lighting switching method in the above-mentioned game, players can trigger the sky lighting switching event to switch the sky lighting effect corresponding to the game scene in the game level, making the switching of the sky lighting effect controllable, which helps to improve the player's gaming experience and gaming freedom.

[0147] In an optional embodiment, the process of updating the sky lighting parameters continues for a preset time period.

[0148] In an optional embodiment, before the above-mentioned step of responding to a sky lighting switching event and determining the target sky lighting parameters and lighting switching parameters corresponding to the sky lighting switching event, the above-mentioned method also includes: responding to a game start instruction and controlling the graphical user interface to display a game scene corresponding to the game match.

[0149] In an optional embodiment, the above-mentioned game scene includes a preset light source, the sky lighting parameter is the attribute information corresponding to the preset light source, and the sky lighting effect is the lighting effect formed by rendering the game scene according to the sky lighting parameters of the preset light source.

[0150] In an optional embodiment, the preset light source includes parallel light.

[0151] In an optional embodiment, the above-mentioned sky lighting parameters include at least one of the following sub-lighting parameters: lighting intensity, lighting color, lighting yaw angle and lighting pitch angle; wherein the lighting yaw angle is used to indicate the angle of parallel light in the horizontal direction; the lighting pitch angle is used to indicate the angle of parallel light in the vertical direction.

[0152] In an optional embodiment, the above-mentioned game scene includes multiple virtual objects; the above-mentioned method also includes: in the process of updating the sky lighting parameters, dynamically displaying the lighting yaw angle and lighting pitch angle in the dynamically updated sky lighting parameters in the graphical user interface, and rendering the shadow effect of the virtual object.

[0153] In an optional embodiment, the above method also includes: in the process of updating the sky lighting parameters, responding to the sky lighting pause update event, pausing the process of updating the sky lighting parameters, and continuously displaying the sky lighting effect of the game scene rendered according to the corresponding sky lighting parameters when responding to the sky lighting pause update event in the graphical user interface.

[0154] In an optional embodiment, before the above-mentioned step of responding to the sky lighting switching event, the method further includes: responding to a control instruction for the controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to perform a first game behavior that meets a first preset condition; controlling the triggering of the sky lighting switching event; before the above-mentioned step of responding to the sky lighting pause update event, the method further includes: responding to a control instruction for the controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to perform a second game behavior that meets a second preset condition; controlling the triggering of the sky lighting pause update event.

[0155] In an optional embodiment, the first game behavior of the first preset condition is to control the controlled virtual object to move to the target area in the game scene; the second game behavior of the second preset condition is to control the controlled virtual object to separate from the target area in the game scene.

[0156] In an optional embodiment, the graphical user interface further displays a switch control and a pause control; the sky lighting switch event includes triggering the switch control; and the sky lighting pause update event includes triggering the pause control.

[0157] In an optional embodiment, the above-mentioned lighting switching parameters include lighting switching duration; the above-mentioned step of updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters based on the lighting switching parameters, and dynamically displaying in the graphical user interface the sky lighting effect of the dynamically changing game scene rendered in the process of updating the sky lighting parameters, includes: determining, according to the lighting switching duration, the change parameters of the sky lighting parameters corresponding to the game scene per unit time in the process of updating the current sky lighting parameters corresponding to the game scene to the target sky lighting parameters; dynamically updating the sky lighting parameters corresponding to the game scene in chronological order according to the change parameters of the sky lighting parameters corresponding to the unit time, the current sky lighting parameters and the target sky lighting parameters; and dynamically displaying in the graphical user interface the sky lighting effect of the dynamically changing game scene rendered based on the dynamically updated sky lighting parameters.

[0158] In an optional embodiment, the above-mentioned step of determining the change parameter of the sky lighting parameter corresponding to unit time in the process of updating the current sky lighting parameter corresponding to the game scene to the target sky lighting parameter based on the lighting switching duration includes: multiplying the lighting switching duration by the specified number of frames to obtain the target number of unit time for updating the sky lighting parameter in the process of updating the current sky lighting parameter corresponding to the game scene to the target sky lighting parameter; wherein the specified number of frames is used to indicate the number of times the sky lighting parameter is updated per second; and determining the result of dividing one by the target number as the change parameter of the sky lighting parameter corresponding to unit time.

[0159] In an optional embodiment, the above-mentioned step of dynamically updating the sky lighting parameters corresponding to the game scene in chronological order based on the change parameters of the sky lighting parameters corresponding to the unit time, the current sky lighting parameters and the target sky lighting parameters includes: determining the subtraction result of the target sky lighting parameters and the current sky lighting parameters; multiplying the change parameters of the sky lighting parameters corresponding to the unit time by the subtraction result to obtain the parameter change corresponding to the unit time; updating the sky lighting parameters corresponding to the current unit time to the sum of the sky lighting parameters corresponding to the previous unit time of the current unit time and the parameter change in chronological order; wherein, in the process of updating the sky lighting parameters, the sky lighting parameters corresponding to the first unit time when the sky lighting parameters start to be updated are the current sky lighting parameters, and the sky lighting parameters corresponding to the last unit time are the target sky lighting parameters.

[0160] In an optional embodiment, the above-mentioned sky lighting parameters include at least one sub-lighting parameter; the above-mentioned step of dynamically updating the sky lighting parameters corresponding to the game scene in chronological order according to the change parameters of the sky lighting parameters corresponding to the unit time, the current sky lighting parameters and the target sky lighting parameters includes: for each sub-lighting parameter in the sky lighting parameters, performing the following operations: determining the subtraction result of the sub-lighting parameter in the target sky lighting parameters and the sub-lighting parameter in the current sky lighting parameters; multiplying the change parameter of the sky lighting parameter corresponding to the unit time by the subtraction result to obtain the parameter change of the sub-lighting parameter corresponding to the unit time; updating the sub-lighting parameter corresponding to the current unit time to the sum of the sub-lighting parameter corresponding to the previous unit time of the current unit time and the parameter change of the sub-lighting parameter in chronological order; wherein, in the process of updating the sub-lighting parameters, the sub-lighting parameter corresponding to the first unit time when the sub-lighting parameters start to be updated is the sub-lighting parameter in the current sky lighting parameters, and the sub-lighting parameter corresponding to the last unit time is the sub-lighting parameter in the target sky lighting parameters.

[0161] In an optional embodiment, the target sky lighting parameters and lighting switching parameters corresponding to the above-mentioned sky lighting switching event are determined in the following manner: displaying a game editing scene and an editing window in a graphical user interface; wherein the editing window includes a plurality of editable components; in response to a selection operation on the target editable component, controlling the generation of a virtual object corresponding to the target editable component in the game editing scene; wherein the virtual object is configured to be displayed with preset display parameters, and the target editable component is a component among the plurality of editable components; in response to an editing operation on the target editable component, determining the sky lighting switching event, target sky lighting parameters and lighting switching parameters corresponding to the target editable component.

[0162] In an optional embodiment, a setting control is also displayed in the above-mentioned graphical user interface; in response to an editing operation on a target editable component, the step of determining the sky lighting switching event, target sky lighting parameters and lighting switching parameters corresponding to the target editable component includes: in response to a triggering operation on the setting control, displaying a parameter setting panel corresponding to the target editable component in the editing window; wherein the parameter setting panel includes a plurality of editable controls; the editable controls are used to set the sky lighting switching event, target sky lighting parameters and lighting switching parameters corresponding to the target editable component; in response to an event setting operation on the parameter setting panel, determining the sky lighting switching event corresponding to the target editable component; in response to a parameter setting operation on the parameter setting panel, determining the target sky lighting parameters and lighting switching parameters corresponding to the target editable component.

[0163] In an optional embodiment, the above-mentioned parameter setting panel includes: a first editable control for setting a sky lighting switching event; a step of determining a sky lighting switching event corresponding to a target editable component in response to an event setting operation on the parameter setting panel, comprising: responding to a first input operation on the first editable control, and determining a sky lighting switching event corresponding to the target editable component according to the first input operation.

[0164] In an optional embodiment, the above-mentioned parameter setting panel includes: a second editable control for setting a sky lighting pause update event; the above-mentioned method also includes: responding to a second input operation for the second editable control, and determining the sky lighting pause update event corresponding to the target editable component according to the second input operation.

[0165] In an optional embodiment, the above-mentioned lighting switching parameters include lighting switching duration; the above-mentioned step of responding to the parameter setting operation on the parameter setting panel and determining the target sky lighting parameters and lighting switching parameters corresponding to the target editable component includes: responding to the input operation of the editable control corresponding to the lighting switching duration in the parameter setting panel, and determining the input value corresponding to the input operation as the lighting switching duration corresponding to the target editable component; responding to the setting operation of the editable control corresponding to the sky lighting parameter in the parameter setting panel, and determining the target sky lighting parameter corresponding to the target editable component according to the setting content of the setting operation.

[0166] In an optional embodiment, the parameter setting panel further includes a lighting switch preview control; the method further includes: responding to a trigger operation on the lighting switch preview control, displaying lighting switch parameters corresponding to the target editable component in a graphical user interface, and rendering the dynamically changing sky lighting effect of the game scene in the process of updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters.

[0167] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a terminal device, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0168] In the description of this disclosure, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate the description of this disclosure and simplify the description. They are not intended to indicate or imply that the devices or components referred to must have a specific orientation, be constructed, or operate in a specific orientation. Therefore, they should not be construed as limitations on this disclosure. Furthermore, the terms "first," "second," and "third" are provided for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0169] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The scope of protection of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-described embodiments within the technical scope disclosed in the present disclosure, or replace some of the technical features therein with equivalents. Such modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure shall be subject to the scope of protection of the claims.

Claims

1. A method for switching sky lighting in a game, providing a graphical user interface through a terminal device; the graphical user interface displays a scene screen of a part of the game scene and the sky lighting effect corresponding to the game scene; wherein, The sky lighting effect is a lighting effect generated according to sky lighting parameters; the method comprises: In response to a sky lighting switching event, determining a target sky lighting parameter and a lighting switching parameter corresponding to the sky lighting switching event; Based on the lighting switching parameters, the sky lighting parameters corresponding to the game scene are updated from the current sky lighting parameters to the target sky lighting parameters, and the dynamically changing sky lighting effect of the game scene rendered in the process of updating the sky lighting parameters is dynamically displayed in the graphical user interface; wherein, the process of updating the sky lighting parameters is the process of updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters.

2. The method according to claim 1, wherein: The process of updating the sky lighting parameters continues for a preset time period.

3. The method according to claim 1, wherein: Before the step of responding to a sky lighting switching event and determining a target sky lighting parameter and a lighting switching parameter corresponding to the sky lighting switching event, the method further includes: In response to a game start instruction, the graphical user interface is controlled to display a game scene corresponding to the game match.

4. The method according to claim 1, wherein: The game scene includes a preset light source, the sky lighting parameter is attribute information corresponding to the preset light source, and the sky lighting effect is a lighting effect formed by rendering the game scene according to the sky lighting parameter of the preset light source.

5. The method according to claim 4, wherein: The preset light source includes parallel light.

6. The method according to claim 5, wherein: The sky lighting parameters include at least one of the following sub-lighting parameters: lighting intensity, lighting color, lighting yaw angle and lighting pitch angle; wherein the lighting yaw angle is used to indicate the angle of the parallel light in the horizontal direction; and the lighting pitch angle is used to indicate the angle of the parallel light in the vertical direction.

7. The method according to claim 6, wherein: The game scene includes a plurality of virtual objects; the method further includes: In the process of updating the sky lighting parameters, the shadow effect of the virtual object rendered based on the lighting yaw angle and lighting pitch angle in the dynamically updated sky lighting parameters is dynamically displayed in the graphical user interface.

8. The method according to claim 1, wherein: The method further comprises: During the process of updating the sky lighting parameters, in response to a sky lighting update pause event, the process of updating the sky lighting parameters is paused, and the sky lighting effect of the game scene rendered according to the sky lighting parameters corresponding to the sky lighting update pause event is continuously displayed in the graphical user interface.

9. The method according to claim 8, wherein: Before the step of responding to the sky lighting switching event, the method further includes: responding to a control instruction for the controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to execute a first game behavior that meets a first preset condition; Control triggering the sky lighting switching event; Before the step of responding to the sky lighting pause update event, the method further includes: responding to a control instruction for the controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to perform a second game behavior that meets a second preset condition; Controls triggering of the skylight pause update event.

10. The method according to claim 9, wherein: The first game behavior of the first preset condition is to control the controlled virtual object to move to the target area in the game scene; the second game behavior of the second preset condition is to control the controlled virtual object to separate from the target area in the game scene.

11. The method according to claim 8, wherein: The graphical user interface also displays a switch control and a pause control; the sky lighting switch event includes triggering the switch control; the sky lighting pause update event includes triggering the pause control.

12. The method according to claim 1, wherein: The lighting switching parameters include lighting switching duration; The step of updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters based on the lighting switching parameters, and dynamically displaying the sky lighting effect of the game scene rendered in the process of updating the sky lighting parameters in the graphical user interface includes: Determining, according to the lighting switching duration, a change parameter of the sky lighting parameter corresponding to a unit time in the process of updating the current sky lighting parameter corresponding to the game scene to the target sky lighting parameter; Dynamically updating the sky lighting parameter corresponding to the game scene in chronological order according to the change parameter of the sky lighting parameter corresponding to the unit time, the current sky lighting parameter and the target sky lighting parameter; The sky lighting effect of the game scene that is dynamically changed and rendered based on the dynamically updated sky lighting parameters is dynamically displayed in the graphical user interface.

13. The method according to claim 12, wherein: The step of determining, according to the lighting switching duration, a change parameter of the sky lighting parameter corresponding to a unit time in the process of updating the current sky lighting parameter corresponding to the game scene to the target sky lighting parameter, comprises: Multiplying the lighting switching duration by the specified frame number to obtain the target number of unit time for updating the sky lighting parameter in the process of updating the current sky lighting parameter corresponding to the game scene to the target sky lighting parameter; wherein the specified frame number is used to indicate the number of times the sky lighting parameter is updated per second; The result of dividing one by the target quantity is determined as a change parameter of the sky illumination parameter corresponding to the unit time.

14. The method according to claim 13, wherein: The step of dynamically updating the sky lighting parameter corresponding to the game scene in chronological order according to the change parameter of the sky lighting parameter corresponding to the unit time, the current sky lighting parameter and the target sky lighting parameter comprises: Determining a subtraction result of the target sky lighting parameter and the current sky lighting parameter; Multiplying the subtraction result by the change parameter of the sky illumination parameter corresponding to the unit time to obtain the parameter change amount corresponding to the unit time; In chronological order, the sky lighting parameter corresponding to the current unit time is updated to the sum of the sky lighting parameter corresponding to the previous unit time of the current unit time and the parameter change; wherein, in the process of updating the sky lighting parameter, the sky lighting parameter corresponding to the first unit time when the sky lighting parameter starts to be updated is the current sky lighting parameter, and the sky lighting parameter corresponding to the last unit time is the target sky lighting parameter.

15. The method according to claim 13, wherein: The sky lighting parameter includes at least one sub-lighting parameter; The step of dynamically updating the sky lighting parameter corresponding to the game scene in chronological order according to the change parameter of the sky lighting parameter corresponding to the unit time, the current sky lighting parameter and the target sky lighting parameter comprises: For each of the sub-lighting parameters in the skylight parameters, perform the following operations: Determine the subtraction result of the sub-lighting parameter in the target sky lighting parameter and the sub-lighting parameter in the current sky lighting parameter; Multiplying the subtraction result by the change parameter of the sky illumination parameter corresponding to the unit time to obtain the parameter change amount of the sub-illumination parameter corresponding to the unit time; In chronological order, the sub-lighting parameter corresponding to the current unit time is updated to the sum of the sub-lighting parameter corresponding to the previous unit time of the current unit time and the parameter change of the sub-lighting parameter; wherein, in the process of updating the sub-lighting parameter, the sub-lighting parameter corresponding to the first unit time when the sub-lighting parameter starts to be updated is the sub-lighting parameter in the current sky lighting parameter, and the sub-lighting parameter corresponding to the last unit time is the sub-lighting parameter in the target sky lighting parameter.

16. The method according to claim 3, wherein: The target sky lighting parameters and lighting switching parameters corresponding to the sky lighting switching event are determined in the following manner: Displaying a game editing scene and an editing window in the graphical user interface; wherein the editing window includes a plurality of editable components; In response to a selection operation on a target editable component, control generating a virtual object corresponding to the target editable component in the game editing scene; wherein the virtual object is configured to be displayed with preset display parameters, and the target editable component is a component among the multiple editable components; In response to an editing operation on the target editable component, a sky lighting switching event, a target sky lighting parameter, and a lighting switching parameter corresponding to the target editable component are determined.

17. The method according to claim 16, wherein: The graphical user interface also displays a setting control; The step of determining, in response to an editing operation on the target editable component, a sky lighting switching event, a target sky lighting parameter, and a lighting switching parameter corresponding to the target editable component comprises: In response to a trigger operation on the setting control, a parameter setting panel corresponding to the target editable component is displayed in the editing window; wherein the parameter setting panel includes a plurality of editable controls; the editable controls are used to set a sky lighting switching event, a target sky lighting parameter, and a lighting switching parameter corresponding to the target editable component; In response to an event setting operation on the parameter setting panel, determining a sky lighting switching event corresponding to the target editable component; In response to a parameter setting operation on the parameter setting panel, a target sky lighting parameter and a lighting switching parameter corresponding to the target editable component are determined.

18. The method according to claim 17, wherein: The parameter setting panel includes: a first editable control for setting a sky lighting switching event; The step of determining the sky lighting switching event corresponding to the target editable component in response to the event setting operation on the parameter setting panel includes: In response to a first input operation directed to the first editable control, a sky lighting switching event corresponding to the target editable component is determined according to the first input operation.

19. The method according to claim 17, wherein: The parameter setting panel includes: a second editable control for setting a skylight pause update event; the method further includes: In response to a second input operation directed to the second editable control, a sky lighting pause update event corresponding to the target editable component is determined according to the second input operation.

20. The method according to claim 17, wherein: The lighting switching parameters include lighting switching duration; The step of determining the target sky lighting parameters and lighting switching parameters corresponding to the target editable component in response to the parameter setting operation on the parameter setting panel includes: In response to an input operation on an editable control corresponding to the lighting switching duration in the parameter setting panel, an input value corresponding to the input operation is determined as the lighting switching duration corresponding to the target editable component; In response to a setting operation of an editable control corresponding to a sky lighting parameter in the parameter setting panel, a target sky lighting parameter corresponding to the target editable component is determined according to a setting content of the setting operation.

21. The method according to claim 17, wherein: The parameter setting panel also includes a lighting switch preview control; the method also includes: In response to a triggering operation on the lighting switch preview control, the lighting switching parameters corresponding to the target editable component are displayed in the graphical user interface, and in the process of updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters, the dynamically changing sky lighting effect of the game scene is rendered.

22. A sky lighting switching device in a game, providing a graphical user interface through a terminal device; the graphical user interface displays a scene screen of a part of the game scene and the sky lighting effect corresponding to the game scene; wherein, The sky lighting effect is a lighting effect generated according to sky lighting parameters; the device comprises: A parameter determination module, configured to respond to a sky lighting switching event and determine a target sky lighting parameter and a lighting switching parameter corresponding to the sky lighting switching event; A parameter updating module is configured to update the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters based on the lighting switching parameters, and dynamically display in the graphical user interface the sky lighting effect of the game scene that is rendered during the process of updating the sky lighting parameters; wherein the process of updating the sky lighting parameters is the process of updating the sky lighting parameters corresponding to the game scene from the current sky lighting parameters to the target sky lighting parameters.

23. An electronic device, comprising a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the sky lighting switching method in the game described in any one of claims 1 to 21.

24. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the sky lighting switching method in the game described in any one of claims 1 to 21.