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/Atom/Asset/ImageProcessingAtom/Code
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
..
Include/Atom/ImageProcessing Moved the ImageProcessingDefines to the Include folder and added it to the header only target 4 years ago
Source Adding support for blending the terain detail material with the macro material. (#7557) 4 years ago
Tests Moved the ImageProcessingDefines to the Include folder and added it to the header only target 4 years ago
CMakeLists.txt Templates restricted (#6498) 4 years ago
imageprocessing_files.cmake Moved the ImageProcessingDefines to the Include folder and added it to the header only target 4 years ago
imageprocessing_tests_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago
imageprocessingatom_headers_files.cmake Moved the ImageProcessingDefines to the Include folder and added it to the header only target 4 years ago
imageprocessingatom_shared_files.cmake Shorten copyright headers by splitting into 2 lines (#2213) 4 years ago