Преглед на файлове

Update to material.md - Constants buffers (#252)

* Update blend-modes.md

Adding blend mode "Screen" definition. Please review.

* Update blend-modes.md

Adding blend mode "Screen" definition. Please review.

* Update blend-modes.md

small indentation fix

* Update blend-modes.md

Removed double wording "the the" in both Multiply and Screen definitions.

* Update to material.md - Constants buffers

render.draw(self.my_pred, self.constants) -- <3>

will give warning:
WARNING:RENDER: This interface for render.draw() is deprecated.

updated to reflect interface change.
Agustin преди 3 години
родител
ревизия
6972ba2e85
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      docs/en/manuals/material.md

+ 1 - 1
docs/en/manuals/material.md

@@ -149,7 +149,7 @@ When the rendering pipeline draws, it pulls constant values from a default syste
 self.constants = render.constant_buffer() -- <1>
 self.constants.tint = vmath.vector4(1, 0, 0, 1) -- <2>
 ...
-render.draw(self.my_pred, self.constants) -- <3>
+render.draw(self.my_pred, {constants = self.constants}) -- <3>
 ```
 1. Create a new constants buffer
 2. Set the `tint` constant to bright red