Back to photostream

Fragmentarium Screenshot (multitexturing)

Development is progressing slowly, but steady: there is now support for textures in Fragmentarium:

 

Simply define a uniform sampler together with a 'file' extension:

 

uniform sampler2D texture; file[Examples/texture2.jpg]

 

The texture can then be accessed using: texture2D(texture,position).xyz

 

There is support for multi-textures - something which turned out to be somewhat tricky because Qt's OpenGL wrapper does not support this extension.

 

Btw, the source code is now located at: syntopia.github.com/Fragmentarium/

1,428 views
0 faves
0 comments
Uploaded on January 6, 2011