Added source uffizi light probe and conversion to runtime asset.

This commit is contained in:
Branimir Karadžić 2018-06-30 15:46:23 -07:00
parent 1e2cea71d3
commit 32780829c2
5 changed files with 9 additions and 5 deletions

View File

@ -168,7 +168,7 @@ public:
// Create vertex stream declaration.
PosColorTexCoord0Vertex::init();
m_uffizi = loadTexture("textures/uffizi.dds"
m_uffizi = loadTexture("textures/uffizi.ktx"
, 0
| BGFX_TEXTURE_U_CLAMP
| BGFX_TEXTURE_V_CLAMP

View File

@ -7,7 +7,8 @@ build $textures/texture_compression_bc7.ktx: texturec_bc7 $pwd/texture_compres
build $textures/texture_compression_etc1.ktx: texturec_etc1 $pwd/texture_compression.png
build $textures/texture_compression_etc2.ktx: texturec_etc2 $pwd/texture_compression.png
build $textures/parallax-d.ktx: texturec_diffuse $pwd/parallax-d.png
build $textures/parallax-n.ktx: texturec_normal $pwd/parallax-n.png
build $textures/parallax-h.ktx: texturec_height $pwd/parallax-h.png
build $textures/lightmap.ktx: texturec_height $pwd/../sky/lightmap.png
build $textures/parallax-d.ktx: texturec_diffuse $pwd/parallax-d.png
build $textures/parallax-n.ktx: texturec_normal $pwd/parallax-n.png
build $textures/parallax-h.ktx: texturec_height $pwd/parallax-h.png
build $textures/lightmap.ktx: texturec_height $pwd/../sky/lightmap.png
build $textures/uffizi.ktx: texturec_equirect $pwd/uffizi-large.exr

Binary file not shown.

View File

@ -41,6 +41,9 @@ rule texturec_normal
rule texturec_height
command = texturec -f $in -o $out -t r8
rule texturec_equirect
command = texturec -f $in -o $out --max 512 -t rgba16f --equirect
pwd = ../examples/assets/meshes
subninja ../examples/assets/meshes/meshes.ninja