+ shader = material.shader
+ if shader.endswith(".glsl"):
+ shader += ".shader"
+ st.sub.append(Statement("shader", shader))
+
+ if material.uniforms:
+ ss = Statement("uniforms")
+ for u in material.uniforms:
+ ss.sub.append(Statement("uniform", u.name, *u.values[:u.size]))
+ st.sub.append(ss)