terrain_blending_opengl_port_from_lukas_code

This commit is contained in:
Anis A. Hireche 2014-11-27 00:42:35 +01:00 committed by LuisAntonRebollo
parent d01b48c93e
commit a954daa43f
28 changed files with 248 additions and 240 deletions

View file

@ -65,7 +65,8 @@ TerrainMaterial::TerrainMaterial()
mMacroSize( 200.0f ),
mMacroStrength( 0.7f ),
mMacroDistance( 500.0f ),
mParallaxScale( 0.0f )
mParallaxScale(0.0f),
mBlendDepth(0.4f)
{
}
@ -97,6 +98,9 @@ void TerrainMaterial::initPersistFields()
addField( "parallaxScale", TypeF32, Offset( mParallaxScale, TerrainMaterial ), "Used to scale the height from the normal map to give some self "
"occlusion effect (aka parallax) to the terrain material" );
addField("blendDepth", TypeF32, Offset(mBlendDepth, TerrainMaterial), "Depth for blending the textures using the new blending method by Lukas Joergensen."
"Higher numbers = larger blend radius.");
Parent::initPersistFields();
// Gotta call this at least once or it won't get created!