| CPC G09G 3/007 (2013.01) [G09G 2300/0452 (2013.01); G09G 2320/0233 (2013.01); G09G 2320/0626 (2013.01)] | 15 Claims |

|
1. A method for image rendering, applied to a terminal, comprising:
acquiring at least two target environment brightnesses by performing interpolation on first environment brightness of the terminal in a first environment and second environment brightness of the terminal in a second environment in response to detecting that the terminal switches from the first environment to the second environment;
acquiring at least two target lightnesses according to the at least two target environment brightnesses;
rendering an image frame to be displayed on the terminal in sequence according to the at least two target lightnesses;
wherein the rendering the image frame to be displayed on the terminal in sequence according to the at least two target lightnesses comprises:
acquiring, by using a shader of the terminal, at least two target colors of each pixel point under the at least two target lightnesses, according to each target lightness and an original color of the each pixel point in the image frame to be displayed on the terminal;
rendering the image frame to be displayed on the terminal in sequence according to the at least two target colors.
|