You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.
And 255*255 is kind of enough for single tile set (if not it can use to other channels)
//Fragment shader#version110uniformsampler2D ColorTable; //256 x 1 pixelsuniformsampler2D MyIndexTexture;
varyingvec2 TexCoord0;
void main()
{
//What color do we want to index?vec4 myindex =texture2D(MyIndexTexture, TexCoord0);
//Do a dependency texture readvec4 texel =texture2D(ColorTable, myindex.xy);
gl_FragColor= texel; //Output the color
}```
The text was updated successfully, but these errors were encountered:
And 255*255 is kind of enough for single tile set (if not it can use to other channels)
The text was updated successfully, but these errors were encountered: