I am trying to draw a model with custom shader. But when I write :
model.set_constant("#model", "tint", vmath.vector4(LED.WIDTH, LED.HEIGHT, LED.WIDTH/LED.HEIGHT, 0))
I get error:
ERROR:GAMESYS: 'game:/go#model' has no constant named 'tint'
I add tint to fragment constants in material.Also i have in shader:
uniform lowp vec4 tint;
If i change material from my material to model material, setting tint work.
Changing fragment program to default model fp fix it.
What i am doing wrong?