Implement global and per instance shader uniforms.
Adds two keywords to shader language for uniforms: -'global' -'instance' This allows them to reference values outside the material.
This commit is contained in:
parent
30ab5c9baa
commit
0e1c66d9fc
49 changed files with 3124 additions and 69 deletions
|
|
@ -342,7 +342,7 @@ MainLoop *test() {
|
|||
Set<String> types;
|
||||
types.insert("spatial");
|
||||
|
||||
Error err = sl.compile(code, dt, rm, types);
|
||||
Error err = sl.compile(code, dt, rm, types, NULL);
|
||||
|
||||
if (err) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue