Use fill() to fill an entire image instead of setting pixels individually.
This commit is contained in:
parent
c09c4e0154
commit
c9f5d88f3a
6 changed files with 9 additions and 43 deletions
|
|
@ -775,11 +775,7 @@ LightmapperRD::BakeError LightmapperRD::bake(BakeQuality p_quality, bool p_use_d
|
|||
} else {
|
||||
panorama_tex.instantiate();
|
||||
panorama_tex->create(8, 8, false, Image::FORMAT_RGBAF);
|
||||
for (int i = 0; i < 8; i++) {
|
||||
for (int j = 0; j < 8; j++) {
|
||||
panorama_tex->set_pixel(i, j, Color(0, 0, 0, 1));
|
||||
}
|
||||
}
|
||||
panorama_tex->fill(Color(0, 0, 0, 1));
|
||||
}
|
||||
|
||||
RD::TextureFormat tfp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue