Depth of field

Depth of field: near big far

The method implemented in the program The distance of the perspective element from the line of sight (the smaller the distance between the object and the eye, the more obvious the effect of the near and far distance)
perspective: 1200px; (used in the parent element)
transform: perspective (1200px) (in the child element Use)

If both settings are in conflict, it is recommended to set only the parent element. The usual value is between 900 and 1200.
If your line of sight is far enough from the object, you will basically not feel the size of near or far.
Perspective: 500px ; 900-1200
depth of field perspective:
perspective-origin:
middle: center;
upper left corner: left top;
(same as 2D change the origin of deformation)

Published 27 original articles · praised 0 · visits 384

Guess you like

Origin blog.csdn.net/Y_SSM/article/details/105398130