In my shader i am trying to define col but I keep getting syntax errors. Instead of using
lowp vec4 col = texture2D(texture,vTexCoord)* vColor; ``` I want to uselowp col = vec4(1,1,1,1); ``` Or something to the same effect
In my shader i am trying to define col but I keep getting syntax errors. Instead of using
lowp vec4 col = texture2D(texture,vTexCoord)* vColor; ``` I want to uselowp col = vec4(1,1,1,1); ``` Or something to the same effect
@Igntaz I tried using
lowp vec4 col = vec4(1,1,1,1); ``` But it just says that col hasn't been declared
Try
lowp vec4 col = vec4(1.,1.,1.,1.);
In the shader code then there’s no automatic conversion between floats and ints, so 1
and 1.
are different.
Thanks it works now