Go to advanced search

by devMiyax
Sun Mar 01, 2020 11:54 am
Forum: OpenGLES
Topic: texelFetch does not have enough precision.
Replies: 6
Views: 1090

texelFetch does not have enough precision.

I have shader code following " vec4 txindex = texelFetch( s_texture, ivec2(int(v_texcoord.x),int(v_texcoord.y)) ,0 );\n" " vec4 txcol = texelFetch( s_color, ivec2( ( int(txindex.g*65280.0) | int(txindex.r*255.0)) ,0 ) , 0 );\n" it seems txindex does not have enough precision, the seccond texelFetch ...

Go to advanced search