ncannasse / hxsl

Haxe Shader Language, a high level 3D shader language for Haxe
86 stars 10 forks source link

separate init methods for vertex and fragment shader #4

Closed profelis closed 11 years ago

profelis commented 11 years ago

Very useful for batch, then one texture and one one shader render many times.

dwzzz commented 11 years ago

+1. Should be more programable.

profelis commented 11 years ago

In h3d Nicolas use setters for shader parameters https://github.com/ncannasse/h3d/blob/master/h3d/impl/Macros.hx#L104

ncannasse commented 11 years ago

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.