<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Cam%3A%3AsetDofMaxNearInFocusDistanceBlendLevel</id>
	<title>Cam::setDofMaxNearInFocusDistanceBlendLevel - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Cam%3A%3AsetDofMaxNearInFocusDistanceBlendLevel"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Cam::setDofMaxNearInFocusDistanceBlendLevel&amp;action=history"/>
	<updated>2026-07-25T02:15:26Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Cam::setDofMaxNearInFocusDistanceBlendLevel&amp;diff=516&amp;oldid=prev</id>
		<title>imported&gt;Shr0x в 22:12, 2 ноября 2024</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Cam::setDofMaxNearInFocusDistanceBlendLevel&amp;diff=516&amp;oldid=prev"/>
		<updated>2024-11-02T22:12:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ClientsideJsFunction}}&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
&lt;br /&gt;
This function sets the blend level for the maximum near focus distance in the camera&amp;#039;s depth of field (DOF) settings, providing smoother transitions for objects near the camera. Adjusting this parameter allows you to refine the near-focus blur effect, useful in creating a cinematic depth of field look.&lt;br /&gt;
&lt;br /&gt;
== Required Params ==&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;camera:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} — The camera handle.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;p1:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} — Blend level for near focus; typical range is from 0 to 1.&lt;br /&gt;
&lt;br /&gt;
== Return value ==&lt;br /&gt;
*{{RageType|void}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.game.cam.setDofMaxNearInFocusDistanceBlendLevel(camera, p1);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// Create a new camera and set DOF blend level for near focus&lt;br /&gt;
const camera = mp.cameras.new(&amp;quot;default&amp;quot;, new mp.Vector3(0, 0, 10), new mp.Vector3(0, 0, 0), 40);&lt;br /&gt;
camera.setActive(true);&lt;br /&gt;
mp.game.cam.setDofMaxNearInFocusDistanceBlendLevel(camera.handle, 0.5); // Set blend level to 0.5 for smooth near-focus transition&lt;br /&gt;
mp.game.cam.renderScriptCams(true, false, 0, true, false);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Cam_functions_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:Camera]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Shr0x</name></author>
	</entry>
</feed>