
43. A Subset Approach to Using OpenGL and OpenGL ES 631
vec2 wrap_repeat(vec2 coords )
{
return fract ( coords);
}
vec2 wrap_mirrored_repeat(vec2 coords )
{
return mix (fract (coords ), 1.0 - fract(coords), floor ( mod( coords, 2.0) ));
}
Listing 43.8. Simulating GL REPEAT and GL MIRRORED REPEAT.
43.3.7 Image Formats and Types
OpenGL ES 2.0 provides a small selection of image formats and types. There is no
support for packed INT formats or for mechanisms to automatically reverse the color
components. The only Truecolor image format that is available by default is RGB(A),
with the components in R,G,B,(A) order in memory. The GL
EXT texture
format BGRA8888