You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Vladimír Vondruš 3497985526 Shaders: update DistanceFieldVector test files with fixed SDFs. 3 years ago
..
README.md Shaders: rendering tests for all remaining builtin shaders. 7 years ago
alpha-mask1.0.tga Shaders: rendering tests for Phong shader. 7 years ago
alpha-texture.tga Shaders: rendering tests for Phong shader. 7 years ago
ambient-texture.tga Shaders: rendering tests for Phong shader. 7 years ago
checkerboard.svg Math: utilities for flipping BC1/3/4/5 blocks. 3 years ago
diffuse-alpha-texture.tga Shaders: rendering tests for Phong shader. 7 years ago
diffuse-texture.tga Shaders: rendering tests for Phong shader. 7 years ago
normal-texture.tga Shaders: rendering tests for Phong shader. 7 years ago
skinning-default.tga Shaders: skinning support in FlatGL, MeshVisualizerGL and PhongGL. 3 years ago
skinning-instanced.tga Shaders: skinning support in FlatGL, MeshVisualizerGL and PhongGL. 3 years ago
skinning-multi.tga Shaders: skinning support in FlatGL, MeshVisualizerGL and PhongGL. 3 years ago
skinning.tga Shaders: skinning support in FlatGL, MeshVisualizerGL and PhongGL. 3 years ago
specular-texture.tga Shaders: rendering tests for Phong shader. 7 years ago
vector-distancefield.tga Shaders: update DistanceFieldVector test files with fixed SDFs. 3 years ago
vector.tga Shaders: rendering tests for all remaining builtin shaders. 7 years ago

README.md

Common shader test files

The *-texture.tga files are exported quadrants from checkerboard.svg with various layers enabled, saved either as three-channel or four-channel PNG of 128x128 pixels and then converted to TGA via magnum-imageconverter (so the shader tests don't need any external plugins) --- if everything is correct, the RGB files will be 48 kB and the RGBA ones 64 kB.

The vector.tga file is exported from magnum/doc/generated/vector.svg as 128x128, converted to a single-channel format via ImageMagick:

convert vector.png -flatten -colorspace Gray vector-r.png

and then to a single-channel (16 kB) TGA via magnum-imageconverter. Then, this file is converted to a SDF via

magnum-distancefieldconverter --output-size "64 64" --radius 16 vector.tga vector-distancefield.tga