Welcome!
Monthly Archives: June 2008
GLSL support in Intel graphics drivers
A user from oZone3D.Net forum asked me some info about the GLSL support of Intel graphics chips. It’s wellknown (sorry Intel) that Intel has a bad OpenGL support in its Windows drivers and even if Intel’s graphics drivers support OpenGL … Continue reading
Posted in Drivers, GLSL, Programming
Tagged glsl, glsl support, graphics driver, intel, lack of support, OpenGL
Leave a comment
GLSL float to RGBA8 encoder
Packing a [0-1] float value into a 4D vector where each component will be a 8-bits integer: vec4 packFloatToVec4i(const float value) { const vec4 bitSh = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0); const vec4 bitMsk = vec4(0.0, 1.0/256.0, 1.0/256.0, 1.0/256.0); vec4 res … Continue reading
Better, smaller and faster random number generator
I found this cool random generator on rgba’s website. rgba is a wellknown demoscene group specialized in 4k prods. This random generator is used in their prods: static unsigned int mirand = 1; float sfrand( void ) { unsigned int … Continue reading