Ver Fonte

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 há 3 anos atrás
pai
commit
6972ba2e85
1 ficheiros alterados com 1 adições e 1 exclusões
  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