* update physics * update input * update * update code sharing in getting-help.md * Export Compliance * update on file i/o * pi / 4 * inputs * forum url * read only user * html5 gamepad * sdk api update * update * image properties * update editor * defold sdk update * animation updates * animation fix * run as admin * update bob * update about AndroidX support * software render * linux-faq.md update * 4.28.2021 updates * Basis Universal format * sound & mesh * gamepad event mapping * admob url * Minor edit to building blocks intro text * update gamepad & ios * project settings * libffi version * scaling * image compression * update gamepads * increase memory * caching assets * update 2021/10/6 * update 2021/10/16 blend-modes.md * update 2021/11/12 * allow dynamic transforms update * Bundle update * update faq * bullet & bob * script properties update * editor-styling * build server url * editor templates * spine extension update * Fix typo in the "optimizations" word in Chinese docs * Update to material.md - Constants buffers
@@ -149,7 +149,7 @@ Filter Min/Mag
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. 新建常量缓存
2. 设置 `tint` 常量为白色