Skip to content

Commit 47764af

Browse files
SQUASH
Co-authored-by: A Thousand Ships <[email protected]>
1 parent d5a1ee4 commit 47764af

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

tutorials/shaders/compute_shaders.rst

+7-8
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ Includes Database
384384

385385
The feature is experimental.
386386

387-
Godot provides some shader includes through ``ShaderIncludeDB`` class. Include
387+
Godot provides some shader includes through the ``ShaderIncludeDB`` class. The include
388388
operation is done automatically by Godot. Shader includes are **not** files in
389389
our system.
390390

@@ -435,9 +435,9 @@ circle is smoothed.
435435
imageStore(screen, uv, color);
436436
}
437437
438-
The example includes ``godot/scene_data_inc.glsl``, which defines ``SceneData``
439-
data structure. ``SceneData`` needs ``MAX_VIEWS`` for some of its' members.
440-
Uniform ``SceneDataBlock`` correspondence to buffer got from
438+
The example includes ``godot/scene_data_inc.glsl``, which defines the ``SceneData``
439+
data structure. ``SceneData`` needs ``MAX_VIEWS`` for some of its members.
440+
The ``SceneDataBlock`` uniform corresponds to the buffer got from
441441
``p_render_data.get_render_scene_data()``. In ``_render_callback``, you can
442442
bind scene data to a uniform.
443443

@@ -450,8 +450,7 @@ bind scene data to a uniform.
450450
uniform.binding = 0;
451451
uniform.add_id(scene_data_buffers);
452452

453-
Shader uses ``SceneDataBlock.data`` members ``viewport_size`` and ``time``
454-
counter. Member ``viewport`` is currently the viewport's size. It is used to
455-
calculate the centre of the screen. Counter ``time`` is an analogue of time
456-
since the start of the game. It is used to make pulsating animation.
453+
The shader uses the ``SceneDataBlock.data`` members ``viewport_size`` and ``time``. The ``viewport`` member is the viewport's current size. It is used to
454+
calculate the center of the screen. The ``time`` counter represents the time
455+
since the start of the game. It is used to make a pulsating animation.
457456

0 commit comments

Comments
 (0)