ncannasse / hxsl

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

texture flags as parameters #7

Closed profelis closed 11 years ago

profelis commented 11 years ago

Something like

var uv:Float2;

function fragment(data:TextureFlags, tex:Texture2D)
{
  out = tex.get(uv, data);
}
ncannasse commented 11 years ago

It's possible in hxsl v2 with the following:

tex.get(uv,mipmap=,wrap=,filter=,...)

I'm currently working on a full rewrite of v2, will document that when done.

profelis commented 11 years ago

Great news. I see you progress. Real If blocks is good idea. Runtime compiler will be very useful. Thanks!