|
|
@ -228,12 +228,13 @@ public class Technique implements Savable { |
|
|
|
|
|
|
|
|
|
|
|
// register the world bound uniforms
|
|
|
|
// register the world bound uniforms
|
|
|
|
worldBindUniforms.clear(); |
|
|
|
worldBindUniforms.clear(); |
|
|
|
|
|
|
|
if (def.getWorldBindings() != null) { |
|
|
|
for (UniformBinding binding : def.getWorldBindings()) { |
|
|
|
for (UniformBinding binding : def.getWorldBindings()) { |
|
|
|
Uniform uniform = shader.getUniform("g_" + binding.name()); |
|
|
|
Uniform uniform = shader.getUniform("g_" + binding.name()); |
|
|
|
uniform.setBinding(binding); |
|
|
|
uniform.setBinding(binding); |
|
|
|
if (uniform != null) { |
|
|
|
if (uniform != null) { |
|
|
|
worldBindUniforms.add(uniform); |
|
|
|
worldBindUniforms.add(uniform); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|