testing: Bug fix: Wrong uniform variables

This commit is contained in:
Hajime Hoshi 2020-06-30 01:49:40 +09:00
parent 8c5f8c03b7
commit f636cdf5f7

View File

@ -303,9 +303,6 @@ func ShaderProgramImages(imageNum int) shaderir.Program {
for i := 0; i < imageNum; i++ {
p.Uniforms = append(p.Uniforms, shaderir.Type{Main: shaderir.Texture2D})
if i > 0 {
p.Uniforms = append(p.Uniforms, shaderir.Type{Main: shaderir.Vec4})
}
}
// In the fragment shader, local variables are: