CPC G06T 15/60 (2013.01) [A63F 13/52 (2014.09); G06T 15/04 (2013.01); G06T 15/06 (2013.01); G06T 15/506 (2013.01); G06T 2215/12 (2013.01)] | 20 Claims |
1. An image rendering method, performed by a terminal, the method comprising:
obtaining a first shadow map and a second shadow map of a target virtual object, a resolution of the first shadow map being less than a resolution of the second shadow map;
determining a first texel range of each texel and a central point in the first shadow map, the first texel range being set based on a transition distance of a shadow edge and the transition distance being used for indicating a shadow edge of the target virtual object in the first shadow map;
performing, based on the central point, scaling processing on the first texel range by using a scaling coefficient to obtain a second texel range, the scaling coefficient being obtained based on a ratio of the resolution of the first shadow map to the resolution of the second shadow map; and
performing shadow rendering on the target virtual object according to the second texel range.
|