瀏覽代碼

Removed unused uniform.

Branimir Karadžić 11 年之前
父節點
當前提交
36b3ccabfa

+ 0 - 1
examples/09-hdr/common.sh

@@ -6,7 +6,6 @@
 #include "../common/common.sh"
 
 uniform vec4 u_offset[16];
-uniform vec4 u_weight[16];
 uniform vec4 u_tonemap;
 
 float reinhard(float _x)

+ 0 - 2
examples/09-hdr/hdr.cpp

@@ -462,7 +462,6 @@ int _main_(int /*_argc*/, char** /*_argv*/)
 	bgfx::UniformHandle u_mtx       = bgfx::createUniform("u_mtx",      bgfx::UniformType::Uniform4x4fv);
 	bgfx::UniformHandle u_tonemap   = bgfx::createUniform("u_tonemap",  bgfx::UniformType::Uniform4fv);
 	bgfx::UniformHandle u_offset    = bgfx::createUniform("u_offset",   bgfx::UniformType::Uniform4fv, 16);
-	bgfx::UniformHandle u_weight    = bgfx::createUniform("u_weight",   bgfx::UniformType::Uniform4fv, 16);
 
 	bgfx::ProgramHandle skyProgram     = loadProgram("vs_hdr_skybox",  "fs_hdr_skybox");
 	bgfx::ProgramHandle lumProgram     = loadProgram("vs_hdr_lum",     "fs_hdr_lum");
@@ -772,7 +771,6 @@ int _main_(int /*_argc*/, char** /*_argv*/)
 	bgfx::destroyUniform(u_mtx);
 	bgfx::destroyUniform(u_tonemap);
 	bgfx::destroyUniform(u_offset);
-	bgfx::destroyUniform(u_weight);
 
 	// Shutdown bgfx.
 	bgfx::shutdown();

二進制
examples/runtime/shaders/dx11/fs_hdr_bright.bin


二進制
examples/runtime/shaders/dx11/fs_hdr_lum.bin


二進制
examples/runtime/shaders/dx11/fs_hdr_lumavg.bin


二進制
examples/runtime/shaders/dx11/fs_hdr_mesh.bin


二進制
examples/runtime/shaders/dx11/fs_hdr_skybox.bin


二進制
examples/runtime/shaders/dx11/fs_hdr_tonemap.bin