mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
terrain_blending_opengl_port_from_lukas_code
This commit is contained in:
parent
d01b48c93e
commit
a954daa43f
28 changed files with 248 additions and 240 deletions
|
|
@ -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!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue