mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
cleanup resources
This commit is contained in:
parent
052cc47ee9
commit
6481cf87fc
7 changed files with 7 additions and 4 deletions
|
@ -169,6 +169,11 @@ Ogre::MaterialPtr Water::createMaterial()
|
||||||
MaterialPtr mat = MaterialManager::getSingleton().create("Water", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
|
MaterialPtr mat = MaterialManager::getSingleton().create("Water", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
|
||||||
mat->removeAllTechniques();
|
mat->removeAllTechniques();
|
||||||
|
|
||||||
|
// shader technique
|
||||||
|
Technique* tech = mat->createTechnique();
|
||||||
|
Pass* pass = tech->createPass();
|
||||||
|
|
||||||
|
|
||||||
// fallback technique without shaders
|
// fallback technique without shaders
|
||||||
// also used for minimap (because it can't have reflecting water)
|
// also used for minimap (because it can't have reflecting water)
|
||||||
Technique* old = mat->createTechnique();
|
Technique* old = mat->createTechnique();
|
||||||
|
|
|
@ -4,8 +4,6 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/water/caustic_0.png "${OpenMW_BINARY_
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/water/GlassFP.cg "${OpenMW_BINARY_DIR}/resources/water/GlassFP.cg" COPYONLY)
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/water/GlassFP.cg "${OpenMW_BINARY_DIR}/resources/water/GlassFP.cg" COPYONLY)
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/water/GlassVP.cg "${OpenMW_BINARY_DIR}/resources/water/GlassVP.cg" COPYONLY)
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/water/GlassVP.cg "${OpenMW_BINARY_DIR}/resources/water/GlassVP.cg" COPYONLY)
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/water/perlinvolume.dds "${OpenMW_BINARY_DIR}/resources/water/perlinvolume.dds" COPYONLY)
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/water/perlinvolume.dds "${OpenMW_BINARY_DIR}/resources/water/perlinvolume.dds" COPYONLY)
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/water/Water02.jpg "${OpenMW_BINARY_DIR}/resources/water/Water02.jpg" COPYONLY)
|
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/water/water.compositor "${OpenMW_BINARY_DIR}/resources/water/water.compositor" COPYONLY)
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/water/water.compositor "${OpenMW_BINARY_DIR}/resources/water/water.compositor" COPYONLY)
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/water/waves2.dds "${OpenMW_BINARY_DIR}/resources/water/waves2.dds" COPYONLY)
|
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/water/water.material "${OpenMW_BINARY_DIR}/resources/water/water.material" COPYONLY)
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/water/water.material "${OpenMW_BINARY_DIR}/resources/water/water.material" COPYONLY)
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/water/WaterNormal1.tga "${OpenMW_BINARY_DIR}/resources/water/WaterNormal1.tga" COPYONLY)
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/water/WaterNormal2.tga "${OpenMW_BINARY_DIR}/resources/water/WaterNormal2.tga" COPYONLY)
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 227 KiB |
Binary file not shown.
Before Width: | Height: | Size: 192 KiB |
BIN
files/water/WaterNormal2.tga
Normal file
BIN
files/water/WaterNormal2.tga
Normal file
Binary file not shown.
After Width: | Height: | Size: 192 KiB |
|
@ -45,7 +45,7 @@ material Water/Compositor
|
||||||
|
|
||||||
texture_unit
|
texture_unit
|
||||||
{
|
{
|
||||||
texture WaterNormal1.tga 2d
|
texture WaterNormal2.tga 2d
|
||||||
tex_coord_set 1
|
tex_coord_set 1
|
||||||
//tex_address_mode clamp
|
//tex_address_mode clamp
|
||||||
filtering linear linear linear
|
filtering linear linear linear
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue