Skip to content

Commit

Permalink
deploy: fe9e2ef
Browse files Browse the repository at this point in the history
  • Loading branch information
mrDIMAS committed Nov 25, 2024
1 parent c582c11 commit ee82eed
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
14 changes: 11 additions & 3 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -3467,9 +3467,17 @@ <h3 id="orthographic"><a class="header" href="#orthographic">Orthographic</a></h
size by multiplying vertical size with aspect ratio.</p>
<p>Here is a simple example of how to create a camera with orthographic projection:</p>
<pre><pre class="playground"><code class="language-rust no_run"><span class="boring">#![allow(unused)]
</span>
<span class="boring">fn main() {
</span><span class="boring">}</span></code></pre></pre>
</span><span class="boring">fn main() {
</span>fn create_orthographic_camera(graph: &amp;mut Graph) -&gt; Handle&lt;Node&gt; {
CameraBuilder::new(BaseBuilder::new())
.with_projection(Projection::Orthographic(OrthographicProjection {
vertical_size: 5.0,
z_near: 0.025,
z_far: 1024.0,
}))
.build(graph)
}
<span class="boring">}</span></code></pre></pre>
<h2 id="performance-5"><a class="header" href="#performance-5">Performance</a></h2>
<p>Each camera forces engine to re-render scene one more time, which can be very resource-intensive (both CPU and GPU)
operation.</p>
Expand Down
14 changes: 11 additions & 3 deletions scene/camera_node.html
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,17 @@ <h3 id="orthographic"><a class="header" href="#orthographic">Orthographic</a></h
size by multiplying vertical size with aspect ratio.</p>
<p>Here is a simple example of how to create a camera with orthographic projection:</p>
<pre><pre class="playground"><code class="language-rust no_run"><span class="boring">#![allow(unused)]
</span>
<span class="boring">fn main() {
</span><span class="boring">}</span></code></pre></pre>
</span><span class="boring">fn main() {
</span>fn create_orthographic_camera(graph: &amp;mut Graph) -&gt; Handle&lt;Node&gt; {
CameraBuilder::new(BaseBuilder::new())
.with_projection(Projection::Orthographic(OrthographicProjection {
vertical_size: 5.0,
z_near: 0.025,
z_far: 1024.0,
}))
.build(graph)
}
<span class="boring">}</span></code></pre></pre>
<h2 id="performance"><a class="header" href="#performance">Performance</a></h2>
<p>Each camera forces engine to re-render scene one more time, which can be very resource-intensive (both CPU and GPU)
operation.</p>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit ee82eed

Please sign in to comment.