Closed profelis closed 11 years ago
+1. Should be more programable.
In h3d Nicolas use setters for shader parameters https://github.com/ncannasse/h3d/blob/master/h3d/impl/Macros.hx#L104
The h3d model is now part of hxsl v2 : each parameter is assignable / stored in the shader instance, the copied in the vertex/fragment vars when necessary. I'll try upgrading the samples and documentation soon.
Very useful for batch, then one texture and one one shader render many times.