lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Call this once:

function Test()

prog:Bind();

prog:SetVertexShaderParam3f("eyePos", 1, 1, 1);

prog:SetVertexShaderParam4f("texMove", 1, 1, 1, 1);

prog:SetSampler("frameBuffer", 6);

prog:SetSampler("normalMap", 1);

prog:SetSampler("distortionMap", 2);

prog:SetFragmentShaderParam1f("screenWidth", 800);

prog:SetFragmentShaderParam1f("screenHeight", 600);

prog:SetFragmentShaderParam1f("etaRatio", 0.1);

prog:Unbind();

end

Call this 10000 times

Test();

Brian