You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/Terrain/Code/Source/TerrainRenderer
Ken Pruiksma e8b7bba0f2
Adding support for blending the terain detail material with the macro material. (#7557)
* Adding support for blending the terain detail material with the macro material. Also includes several bug fixes
- The detail materail manager wasn't querying for default terrain region materials when it initializes, so it was missing some creation events that it would later get destruction events for and explode.
- Change the way the default material weights against other surface weights to avoid some discontinuities
- Fixed an issue where a default material id wouldn't initialize as invalid.

Signed-off-by: Ken Pruiksma <pruiksma@amazon.com>

* Several improvements and bug fixes
- Adding explicit creation / destruction events for material regions.
- Material regions will no longer try to "hide" when they don't have any materials
- Default detail materials will now only be used in areas where there are no other material assignments
- Fixed a bug where materials might not show up on surfaces when they were assigned to multiple regions or surface tags.

Signed-off-by: Ken Pruiksma <pruiksma@amazon.com>

* Simplified loop that assigns materials based on surface tags. Slightly simplified shader code regarding detail material id coordinates.

Signed-off-by: Ken Pruiksma <pruiksma@amazon.com>

* Fixes from PR review

Signed-off-by: Ken Pruiksma <pruiksma@amazon.com>

* Making sure region changed doesn't get announced in the case where the old and new regions are both invalid.

Signed-off-by: Ken Pruiksma <pruiksma@amazon.com>
4 years ago
..
Components Adding support for blending the terain detail material with the macro material. (#7557) 4 years ago
EditorComponents Added missing doc links. (#5841) 4 years ago
Passes LYN-8551 Terrain: Renderer: Create compute pass for clipmaps (#7116) 4 years ago
Aabb2i.cpp Clipmap bounds class (#7134) 4 years ago
Aabb2i.h Clipmap bounds class (#7134) 4 years ago
BindlessImageArrayHandler.cpp Updated all array_view uses with the C++20 span. (#7157) 4 years ago
BindlessImageArrayHandler.h Terrain Feature Processor separated into several classes. Macro materials abstracted from meshes. (#6350) 4 years ago
ClipmapBounds.cpp Clipmap bounds class (#7134) 4 years ago
ClipmapBounds.h TerrainDetailMaterialManager to use ClipmapBounds for its detail mateiral id texture. (#7182) 4 years ago
TerrainAreaMaterialRequestBus.h Adding support for blending the terain detail material with the macro material. (#7557) 4 years ago
TerrainDetailMaterialManager.cpp Adding support for blending the terain detail material with the macro material. (#7557) 4 years ago
TerrainDetailMaterialManager.h Adding support for blending the terain detail material with the macro material. (#7557) 4 years ago
TerrainFeatureProcessor.cpp LYN-8551 Terrain: Renderer: Create compute pass for clipmaps (#7116) 4 years ago
TerrainFeatureProcessor.h Terrain Feature Processor separated into several classes. Macro materials abstracted from meshes. (#6350) 4 years ago
TerrainMacroMaterialBus.cpp Terrain Feature Processor separated into several classes. Macro materials abstracted from meshes. (#6350) 4 years ago
TerrainMacroMaterialBus.h Terrain Feature Processor separated into several classes. Macro materials abstracted from meshes. (#6350) 4 years ago
TerrainMacroMaterialManager.cpp Terrain Feature Processor separated into several classes. Macro materials abstracted from meshes. (#6350) 4 years ago
TerrainMacroMaterialManager.h Terrain Feature Processor separated into several classes. Macro materials abstracted from meshes. (#6350) 4 years ago
TerrainMeshManager.cpp Making terrain query resolution a single float instead of a Vector2 (#7186) 4 years ago
TerrainMeshManager.h Terrain Feature Processor separated into several classes. Macro materials abstracted from meshes. (#6350) 4 years ago
Vector2i.cpp Clipmap bounds class (#7134) 4 years ago
Vector2i.h Clipmap bounds class (#7134) 4 years ago