It's almost like an unreported error or it just takes so long that it's still running while I'm looking at it. I am just playing with things right now
var texture = ImageTexture.new()
texture.create(1024, 1024, Image.FORMAT_BPTC_RGBA, 0)
var img = Image.new()
img.create(1024, 1024, false, Image.FORMAT_BPTC_RGBA)
texture.set_data(img)
img.lock()
random_pic(img)
img.unlock()
texture.create_from_image(img)
$RenPass.material.set_shader_param("OverTex", texture)
func random_pic(var img):
var color = false
for y in range(128):
for x in range(128):
color = false
if rng.randf() < .5:
color = true
for y1 in range(8):
for x1 in range(8):
if color:
img.set_pixel(x * 8 + x1, y * 8 + y1, Color(1.0, 1.0, 1.0))
else:
img.set_pixel(x * 8 + x1, y * 8 + y1, Color(0.0, 0.0, 0.0))