add 'fill_image' script function, rename 'offset' combine mode to 'lightmap'

This commit is contained in:
GenevensiS
2026-04-12 07:30:11 +02:00
parent d49cfda407
commit fa3f2e950d
7 changed files with 191 additions and 135 deletions
+13
View File
@@ -188,6 +188,19 @@ bool SetCombineImage::operator == (const GeneratedImage& that) const {
&& image_combine == that2->image_combine;
}
// ----------------------------------------------------------------------------- : FillImage
Image FillImage::generate(const Options& opt) {
Image img = image->generate(opt);
fill_image(img, color);
return img;
}
bool FillImage::operator == (const GeneratedImage& that) const {
const FillImage* that2 = dynamic_cast<const FillImage*>(&that);
return that2 && *image == *that2->image
&& color == that2->color;
}
// ----------------------------------------------------------------------------- : SaturateImage
Image SaturateImage::generate(const Options& opt) {