You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
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:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user